1.图片保存的格式必须为:BMP
2.图片保存到T002--signals 文件夹中
3.图片名只能是:半仓,满仓,上穿3线,减仓----等等,图片名的前后不能有任何字母与数字
{主图仪表图}
LC:=REF(C,1);
M5:MA(C,5);
M10:MA(C,10);
M20:MA(C,20);
M30:MA(C,30),COLORFFAA00;
M60:MA(C,60),COLOR00FF00;
M120:=MA(C,120),COLORFFCC00;
满仓:=IF(ISLASTBAR AND (C>M5 OR M5>=REF(M5,1)) AND C>M10 AND (M5>=M10 OR (M5>=M20 AND M5>=REF(M5,1)))
AND M5>M20 AND M10>M20 AND M20>M60 AND M30>M120 AND M10>=REF(M10,1) AND M20>=REF(M20,1)
AND M60>=REF(M60,1) AND M120>=REF(M120,1),1,0);
大半仓:=ISLASTBAR AND (C>M10 OR (C>M5 AND M10>=REF(M10,1))) AND M5>=M20 AND (M10>=M20 OR M10>=REF(M10,1)) AND M20>=M60
AND (M10>=REF(M10,1) OR (C>M5 AND M5>=REF(M5,1))) AND M20>=REF(M20,1) AND M60>=REF(M60,1);
上升回调:=ISLASTBAR AND C<M5 AND M5<M10 AND M5>M20 AND M10>M20 AND M20>M60 AND M5<=REF(M5,1) AND
M10<REF(M10,1) AND M20>=REF(M20,1) AND M60>=REF(M60,1);
减仓:=ISLASTBAR AND C<LC AND M5<REF(M5,1) AND M10<REF(M10,1) AND M5<M20 AND M10<M20 AND M20>=REF(M20,1);
半仓:=ISLASTBAR AND C>M5 AND M5>M10 AND M10>M20 AND M20>=M30 AND M5>=REF(M5,1) AND M10>=REF(M10,1)
AND M20>=REF(M20,1) AND M30>=REF(M30,1) AND M30>=M60 AND M60<=REF(M60,1);
反弹:=ISLASTBAR AND C>M5 AND C>M10 AND M5>M20 AND M60>M20 AND M20>=REF(M20,1) AND M60<REF(M60,1);
探底阶段:=ISLASTBAR AND C<M5 AND M5<M10 AND M10<M20 AND M20<M60 AND M5<REF(M5,1) AND M10<REF(M10,1)
AND M20<REF(M20,1) AND M60<REF(M60,1);
小半仓:=ISLASTBAR AND C>=LC AND C>=M5 AND M5>=M10 AND M10>=M20 AND M5>=REF(M5,1) AND M10>=REF(M10,1) AND
M20>=REF(M20,1) AND M20<M60 AND M60<=REF(M60,1);
关注:=ISLASTBAR AND C>LC AND C>M5 AND C>M20 AND M5>M10 AND M5>REF(M5,1) AND M10>REF(M10,1) AND M20<=REF(M20,1) AND
M20<=M60;
空仓:=ISLASTBAR AND (M5<M20 OR M10<M20) AND M20<M60 AND M5<=REF(M5,1) AND M10<=REF(M10,1) AND M20<REF(M20,1);
上穿3线:=IF(ISLASTBAR AND C>MAX(M5,MAX(M10,MIN(M20,M30))) AND LC<=(MIN(REF(M5,1),MIN(REF(M10,1),MAX(REF(M20,1),REF(M30,1))))),1,0);
下破3线:=IF(ISLASTBAR AND C<MIN(M5,MIN(M10,MAX(M20,M30))) AND LC>=(MAX(REF(M5,1),MAX(REF(M10,1),MIN(REF(M20,1),REF(M30,1))))),1,0);
观望:=ISLASTBAR AND 满仓=0 AND 大半仓=0 AND 上升回调=0 AND 减仓=0 AND 半仓=0 AND 反弹=0 AND 探底阶段=0
AND 小半仓=0 AND 关注=0 AND 空仓=0 AND 上穿3线=0 AND 下破3线=0;
DRAWGBK(满仓 AND 上穿3线=0,0,0,0,'满仓',0),COLORFF00FF;
DRAWGBK(大半仓 AND (满仓=0 AND BARSCOUNT(C)>60),0,0,0,'大半仓',0),COLORFF00FF;
DRAWGBK(上升回调,0,0,0,'上升回调',0),COLORFF8080;
DRAWGBK(减仓,0,0,0,'减仓',0),COLOR009500;
DRAWGBK(半仓,0,0,0,'半仓',0),COLOR00FFFF;
DRAWGBK(反弹,0,0,0,'反弹',0),COLORFFFF00;
DRAWGBK(探底阶段,0,0,0,'探底阶段',0);
DRAWGBK(观望,0,0,0,'观望',0),COLORFFFF00;
DRAWGBK(小半仓,0,0,0,'小半仓',0),COLOR00FFFF;
DRAWGBK(关注,0,0,0,'关注',0),COLOR00BF00;
DRAWGBK(空仓 AND 下破3线=0,0,0,0,'空仓',0),COLOR00BF00;
DRAWGBK(上穿3线=1,0,0,0,'上穿3线',0),COLOR00BF00;
DRAWGBK(下破3线=1,0,0,0,'下破3线',0),COLOR00BF00; |