龙听期货论坛's Archiver

龙听 发表于 2018-10-18 13:18

[转载]{金龙喜舞}

公式:
[code]
{金龙喜舞}

日时转换:=IF(PERIOD=5,120,240);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW;
强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;
[/code]


[img]http://p.qhlt.cn/filestores/2018/10/18/9958112c8515a92caf7ea555bee50710.png[/img]
[img]http://p.qhlt.cn/filestores/2018/10/18/f852d09adde08f9b7cf3c2327c0de952.png[/img]
[img]http://p.qhlt.cn/filestores/2018/10/18/f29a0001a2a40097819a109302a0f945.png[/img]
[img]http://p.qhlt.cn/filestores/2018/10/18/6a8931b0bbcfb98ad490d835767c098d.png[/img]
[img]http://p.qhlt.cn/filestores/2018/10/18/b85a73b9f302a4efbfc897530961b65e.png[/img]
[img]http://p.qhlt.cn/filestores/2018/10/18/166d9e565e17b2611a2a66d3a5c963d2.png[/img]
[img]http://p.qhlt.cn/filestores/2018/10/18/567858c4fdfe27f539b71f5eeff52607.png[/img]


一、用于tdx日图的金龙喜舞

[code]
日时转换1:=IF(PERIOD=5,120,240);
日时转换2:=IF(PERIOD=5,5,30);
日时转换3:=IF(PERIOD=5,15,60);
日时转换4:=IF(PERIOD=5,2,5);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,日时转换2);
VAR5:=EMA(VAR3,日时转换3);
VAR6:=EVERY(VAR1>REF(VAR1,1),日时转换4) AND
        EVERY(VAR4>REF(VAR4,1),日时转换4);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW,LINETHICK3;
强弱线:EMA(VAR1,日时转换1),COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
{DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};

EMA30:=EMA(C,30),COLORFFCCCC;
EMA60:=EMA(C,60),COLORFF00FF;
EMA90:=EMA(C,90),COLORYELLOW;
EMA120:=EMA(C,120),COLORFFCC66;
EMA250:=EMA(C,250),COLORBLUE;

A1:=(EMA30+EMA60+EMA90+EMA120)/4;
A2:=ABS(EMA30-A1)+ABS(EMA60-A1)+ABS(EMA90-A1)+ABS(EMA120-A1);
{B1:=(EMA60+EMA90+EMA120+EMA120)/4;
B2:=ABS(EMA60-B1)+ABS(EMA90-B1)+ABS(EMA120-B1)+ABS(EMA250-B1);}

均:=(EMA30+EMA60+EMA90+EMA120)/4;
AA:=A2/A1;
DRAWTEXT(AA>=0 AND AA<=0.03 AND 均>REF(均,1), 强弱线*0.9,'粘'),COLORYELLOW;
[/code]


二、用于tdx分时图的金龙喜舞

[code]
日时转换:=IF(PERIOD=5,120,240);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW,LINETHICK3;
强弱线:EMA(VAR1,日时转换),COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
{DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};
[/code]


[color=#323e32][font=simsun][size=14px]三、用于大智慧日图的金龙喜舞[/size][/font][/color]


[color=#323e32][font=simsun][size=14px][code]
日时转换1:=IF(DATATYPE=8,120,240);
日时转换2:=IF(DATATYPE=8,5,30);
日时转换3:=IF(DATATYPE=8,15,60);
日时转换4:=IF(DATATYPE=8,2,5);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,日时转换2);
VAR5:=EMA(VAR3,日时转换3);
VAR6:=all(VAR1>REF(VAR1,1),日时转换4) AND all(VAR4>REF(VAR4,1),日时转换4);
FILLRGN(VAR1,EMA(VAR1,60),VAR1>EMA(VAR1,60),RGB(150,30,30),VAR1<EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW,LINETHICK3;
强弱线:EMA(VAR1,日时转换1),COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),LINETHICK0,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),LINETHICK0,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),LINETHICK0,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,0),LINETHICK0,COLORRED;
止损区:IF(VAR1<强弱线,1,0),LINETHICK0,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(趋势关注=1,EMA(VAR1,60),'转折'),COLORWHITE;
{DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};

三、用于大智慧分时图的金龙喜舞
日时转换:=IF(DATATYPE=8,120,240);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=ALL(VAR1>REF(VAR1,1),5) AND ALL(VAR4>REF(VAR4,1),5);
FILLRGN(VAR1,EMA(VAR1,60),VAR1>EMA(VAR1,60),RGB(150,30,30),VAR1<EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW;
强弱线:EMA(VAR1,日时转换),COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),LINETHICK0,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),LINETHICK0,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),LINETHICK0,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,0),LINETHICK0,COLORRED;
止损区:IF(VAR1<强弱线,1,0),LINETHICK0,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,3,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,3,0),COLORYELLOW;
{DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;};
[/code]
[/size][/font][/color]


[color=#323e32][font=simsun][size=14px][code]
{金龙喜舞}

日时转换:=IF(PERIOD=5,120,240);
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=EVERY(VAR1>REF(VAR1,1),5) AND EVERY(VAR4>REF(VAR4,1),5);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW;
强弱线:EMA(VAR1,日时转换),POINTDOT,COLORWHITE;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60)) AND VAR6,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5) AND VAR6,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR3>VAR5 AND VAR6,1,0),NODRAW,COLORYELLOW;
强势区:IF(VAR1>强弱线,1,DRAWNULL),NODRAW,COLORRED;
止损区:IF(VAR1<强弱线,1,DRAWNULL),NODRAW,COLORGREEN;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;
[/code]
[/size][/font][/color]


[color=#323e32][font=simsun][size=14px][attach]4593[/attach]
[/size][/font][/color]

页: [1]