以下是冲破云霄源码主图

XOPEN:=(REF(Open,1)+REF(Close,1))/2;
 XCLOSE:=(HIGH+LOW+CLOSE+OPEN)/4;
 XHIGH:=MAX(XOPEN,XCLOSE,high);
 XLOW:=MIN(XOPEN,XCLOSE,low);

STICKLINE(Xclose>Xopen,Xclose ,Xopen ,8 ,1 ),colorred;
 STICKLINE(Xclose<=Xopen,Xclose ,Xopen ,8 ,0 ),colorffff66;
 STICKLINE(Xclose>Xopen,Xhigh ,Xclose ,0.5 ,0 ),colorred;
 STICKLINE(Xclose>Xopen,Xopen ,Xlow ,0.5 ,0 ),colorred;
 STICKLINE(Xclose<=Xopen,Xopen ,Xhigh ,0.5 ,0 ),colorffff66;
 STICKLINE(Xclose<=Xopen,Xclose ,Xlow ,0.5 ,0 ),colorffff66;

蜡烛图

XOPEN:=(REF(Open,1)+REF(Close,1))/2;
 XCLOSE:=(HIGH+LOW+CLOSE+OPEN)/4;
 XHIGH:=MAX(XOPEN,XCLOSE,high);
 XLOW:=MIN(XOPEN,XCLOSE,low);

STICKLINE(Xclose>Xopen,Xclose ,Xopen ,8 ,1 ),colorred;
 STICKLINE(Xclose<=Xopen,Xclose ,Xopen ,8 ,0 ),colorffff66;
 STICKLINE(Xclose>Xopen,Xhigh ,Xclose ,0.5 ,0 ),colorred;
 STICKLINE(Xclose>Xopen,Xopen ,Xlow ,0.5 ,0 ),colorred;
 STICKLINE(Xclose<=Xopen,Xopen ,Xhigh ,0.5 ,0 ),colorffff66;
 STICKLINE(Xclose<=Xopen,Xclose ,Xlow ,0.5 ,0 ),colorffff66;
 

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