通达信仪表盘主图公式 源码
通达信仪表盘主图公式 源码
将全部图片放到T002的signals文件夹里面,然后在你的主图指标中写上以下代码就可以了:
{仪表盘}{全部仪表图放在T0002/SIGNALS文件夹里}
{设置均线}
范围高:=REFDATE(HHV(H,120),DATE)*1.05;
范围低:=REFDATE(LLV(L,120),DATE)*0.95;
均线5:=MA(C,5);
均线25:=MA(C,25);
均线75:=MA(C,75);
均线200:=IF((MA(C,200)<=范围高 AND MA(C,200)>=范围低) OR C>=MA(C,200),MA(C,200),DRAWNULL);
{设置仪表}
显示仪表盘1:=1;
{选择图片}
主升浪:=ISLASTBAR AND 均线5>均线25 AND 均线25>均线75 AND 均线75>IF(均线200=DRAWNULL,0,均线200);
主浪回调:=ISLASTBAR AND 均线25>均线5 AND 均线5>均线75 AND 均线75>IF(均线200=DRAWNULL,0,均线200);
主浪深调:=ISLASTBAR AND 均线25>均线75 AND 均线75>均线5 AND 均线5>IF(均线200=DRAWNULL,0,均线200);
初升浪:=ISLASTBAR AND IF(均线200=DRAWNULL,300,均线200)>MAX(均线25,均线75) AND 均线5>均线25 AND 均线25>均线75;
底部反弹:=ISLASTBAR AND IF(均线200=DRAWNULL,300,均线200)>均线75 AND 均线75>均线25 AND 均线5>均线25;
探底阶段:=ISLASTBAR AND IF(均线200=DRAWNULL,300,均线200)>均线75 AND 均线75>均线25 AND 均线25>均线5;
观望:=ISLASTBAR AND IF(均线200=DRAWNULL,均线25>均线75 AND C<均线75,均线75>均线200 AND C<均线200);
有牛:=ISLASTBAR AND IF(均线200=DRAWNULL,均线25<均线75 AND C>=均线75,均线75<均线200 AND C>=均线200);
放弃:=ISLASTBAR AND IF(均线200=DRAWNULL,均线25<均线75 AND C<均线75,均线75<均线200 AND C<均线200);
DRAWGBK(显示仪表盘1=1 AND 主升浪=0 AND 主浪回调=0 AND 主浪深调=0 AND 初升浪=0 AND 底部反弹=0 AND 探底阶段=0 AND 观望=0 AND 有牛=0 AND 放弃=0,0,0,0,"观望",0);
DRAWGBK(显示仪表盘1=1 AND 主升浪,0,0,0,"主升浪",0);
DRAWGBK(显示仪表盘1=1 AND 主浪回调,0,0,0,"主浪回调",0);
DRAWGBK(显示仪表盘1=1 AND 主浪深调,0,0,0,"主浪深调",0);
DRAWGBK(显示仪表盘1=1 AND 初升浪,0,0,0,"初升浪",0);
DRAWGBK(显示仪表盘1=1 AND 底部反弹,0,0,0,"底部反弹",0);
DRAWGBK(显示仪表盘1=1 AND 探底阶段,0,0,0,"探底阶段",0);
DRAWGBK(显示仪表盘1=1 AND 观望,0,0,0,"观望",0);
DRAWGBK(显示仪表盘1=1 AND 有牛,0,0,0,"有牛",0);
DRAWGBK(显示仪表盘1=1 AND 放弃,0,0,0,"放弃",0);
- 上一篇公式:抄底要慎重!有他万无一失!
- 下一篇公式:通达信RSI买入公式