以下是通达信亏损4万后扭亏为盈的指标附图源码

BIAS1:=MA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13),3)*100,COLORWHITE;
 BIAS3:=MA((CLOSE-MA(CLOSE,27))/MA(CLOSE,27),3)*100,COLORFF00FF,LINETHICK2;
操作区:IF(BIAS3<0,BIAS3,0),COLORRED,LINETHICK2;
观望区:IF(BIAS3>0,BIAS3,0),COLORGREEN,LINETHICK2;
 VAR1:=IF(DATE>=1990601,0,1);
 VAR2:=TROUGHBARS(3,15,1)<10;
 VAR3:=PEAKBARS(3,15,1)<10;
 VAR4:=IF(VAR2=1,50,0);
 VAR5:=IF(VAR3=1,50,0);
 TJ1:=观望区<REF(观望区,1) OR 观望区-REF(观望区,1)<REF(观望区,1)-REF(观望区,2);
 TJ2:=操作区>REF(操作区,1);
顶: IF(TJ1 AND VAR5=50,15,0),STICK,LINETHICK1,COLORGREEN;
底: IF(TJ2 AND VAR4=50,10,0),STICK,LINETHICK1,COLORRED;
 DRAWICON(TJ1 AND VAR5=50,-2,2);
 DRAWICON(TJ2 AND VAR4=50,11,1);

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