我爱环境保护

通达信-神奇九转

发布:生态652022-4-7 10:07分类: 财经知识 标签: 通达信

{神奇九转}

{买入结构}

TA1:=C<REF(C,4);

TN1:=BARSLASTCOUNT(TA1);

TJ11:=TN1=9;

TJ13:=ISLASTBAR AND BETWEEN(TN1,5,8);

TY1:=(BACKSET(TJ11>0,9) OR BACKSET(TJ13>0,TN1))*TN1;

DRAWTEXT(TY1>0 AND (PERIOD=4 OR PERIOD=5 OR PERIOD=6),H*1.01,VAR2STR(TY1,0)),COLORLIGREEN;

DRAWTEXT(TN1=9 AND (PERIOD=4 OR PERIOD=5 OR PERIOD=6),H*1.01,'9'),COLORRED;


{卖出结构}

TA2:=C>REF(C,4);

TN2:=BARSLASTCOUNT(TA2);

TJ21:=TN2=9;

TJ23:=ISLASTBAR AND BETWEEN(TN2,5,8);

TY2:=(BACKSET(TJ21>0,9) OR BACKSET(TJ23>0,TN2))*TN2;

DRAWTEXT(TY2>0 AND (PERIOD=4 OR PERIOD=5 OR PERIOD=6),H*1.01,VAR2STR(TY2,0)),COLORFF00FF,DRAWABOVE;

DRAWTEXT(TN2=9 AND (PERIOD=4 OR PERIOD=5 OR PERIOD=6),H*1.01,'9'),COLORLIGREEN,DRAWABOVE;

扫描二维码

扫描二维码关注本站,了解更新资讯!