以下是优化过的一目均衡表源码

AA:=(HHV(HIGH,120)-LLV(LOW,120))/30;
 VAR1:=(2*CLOSE+HIGH+LOW)/4;
转换线:(HHV(HIGH,9)+LLV(LOW,9))/2;
基准线:(HHV(HIGH,26)+LLV(LOW,26))/2;
先行带A:(转换线+基准线)/2;
先行带B:(HHV(HIGH,52)+LLV(LOW,52))/2;
 STICKLINE(先行带A>先行带B,先行带A,先行带B,0.1,-1),COLORLIRED;
 STICKLINE(先行带A<先行带B,先行带A,先行带B,0.1,-1),COLORLICYAN;
延迟线:REFX(CLOSE,26);
 TL11:=REF(转换线,1)=REF(基准线,1) AND 转换线>基准线;
DRAWTEXT(CROSS(转换线,基准线) AND VAR1<MIN(先行带A,先行带B),MIN(基准线,LOW)*0.995,’▲’),COLORRED;
 DRAWTEXT(CROSS(转换线,基准线) AND RANGE(VAR1,MIN(先行带A,先行带B),MAX(先行带A,先行带B)),LOW*0.995,’▲▲’),COLORRED;
 DRAWTEXT(CROSS(转换线,基准线) AND VAR1>MAX(先行带A,先行带B),L*0.95,’▲▲▲’),COLORRED;
 DRAWTEXT(TL11 AND VAR1>MAX(先行带A,先行带B),L*0.95,’▲▲▲’),COLORRED;

DRAWTEXT(CROSS(基准线,转换线) AND VAR1<MIN(先行带A,先行带B),MAX(基准线,HIGH)+AA*2,’▼▼▼’),COLORBLUE;
 DRAWTEXT(CROSS(基准线,转换线) AND RANGE(VAR1,MIN(先行带A,先行带B),MAX(先行带A,先行带B)),MAX(基准线,HIGH)+AA,’▼▼’),COLORBLUE;
 DRAWTEXT(CROSS(基准线,转换线) AND VAR1>MAX(先行带A,先行带B),MAX(基准线,HIGH)+AA,’▼’),COLORBLUE;

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