以下是同花顺钱龙凤凰线(新)公式

同花顺钱龙凤凰线(新)公式

源码

N:=1;

xopen:=(REF(O,N)+REF(C,N))/2;

xclose:=CLOSE;

xhigh:=MAX(HIGH,xopen);

xlow:=MIN(LOW,xopen);

vulality:=MA(xhigh-xlow,8);

凰线:MA(xclose,5)+vulality/2;

凤线:MA(xclose,5)-vulality/2;

凰线升:IF(凰线>REF(凰线,1),凰线,DRAWNULL),colorred,LINETHICK2;

凰线降:IF(凰线<REF(凰线,1),凰线,DRAWNULL),colorgreen,LINETHICK2;

凤线升:IF(凤线>REF(凤线,1),凤线,DRAWNULL),colormagenta,LINETHICK2;

凤线降:IF(凤线<REF(凤线,1),凤线,DRAWNULL),colorgreen,LINETHICK2;

bu:=CROSS(xclose,凰线);

sel:=CROSS(凤线,xclose);

var1:=BARSLAST(bu);

var2:=BARSLAST(sel);

DRAWICON(REF(var1,1)>var2 AND var1=0,凤线*0.99,1),align1,valign0;

DRAWICON(REF(var2,1)>var1 AND var2=0,凰线*1.01,2),align1,valign2;

STICKLINE(xclose>xopen AND var1<var2,xclose,xopen ,8,0 ),colorred;

STICKLINE(xclose>xopen AND var1<var2,xhigh,xclose ,0.5,0 ),colorred;

STICKLINE(xclose>xopen AND var1<var2,xopen,xlow ,0.5,0 ),colorred;

STICKLINE(xclose<=xopen AND var1<var2,xclose,xopen ,8,0 ),coloryellow;

STICKLINE(xclose<=xopen AND var1<var2,xhigh,xopen ,0.5,0 ),coloryellow;

STICKLINE(xclose<=xopen AND var1<var2,xclose,xlow ,0.5,0 ),coloryellow;

STICKLINE(xclose<=xopen AND var1>var2,xclose ,xopen ,8,0 ),colorgreen;

STICKLINE(xclose<=xopen AND var1>var2,xopen ,xhigh ,0.5,0 ),colorgreen;

STICKLINE(xclose<=xopen AND var1>var2,xclose,xlow ,0.5,0 ),colorgreen;

STICKLINE(xclose>xopen AND var1>var2,xclose ,xopen ,8,0 ),colormagenta;

STICKLINE(xclose>xopen AND var1>var2,xclose,xhigh ,0.5,0 ),colormagenta;

STICKLINE(xclose>xopen AND var1>var2,xopen,xlow ,0.5,0 ),colormagenta;
 

 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。