伏击牛熊 通达信主图源码分享





MA5:MA(C,5);
MA6:=MA(C,6);
MA10:MA(C,10);
MA20:MA(C,20);A2:=REF(MA20,1);J1:=(MA20-A2)/A2*100;MJ1:=MA(J1,3);
MA30:MA(C,30);
MA60:MA(C,60);
MA120:MA(C,120);
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,9/3,0),COLORFF5B00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8/3,0),COLORFF6C00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7/3,0),COLORFF7B00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6/3,0),COLORFF9C00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5/3,0),COLORFFBE00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5/3,0),COLORFFCC00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5/3,0),COLORFFFF00;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,9/3,0),COLOR070084;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8/3,0),COLOR0000A3;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7/3,0),COLOR0000B7;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6/3,0),COLOR0000CD;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5/3,0),COLOR0000E9;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3/3,0),COLOR0754E9;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5/3,0),COLOR076FF3;
STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1/3,0),COLOR079BF3;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8/3,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7/3,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6/3,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5/3,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4/3,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3/3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2/3,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1/3,0) ,COLORFFBBFF;
STICKLINE((CLOSE > OPEN),OPEN,LOW,1/3,0),COLOR0726CA;
STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1/3,0),COLOR0726CA;
STICKLINE((OPEN > CLOSE),CLOSE,LOW,1/3,0),COLORDE9100;
STICKLINE((OPEN > CLOSE),OPEN,HIGH,1/3,0),COLORDE9100;
VAR01:=100*EMA(EMA((C-REF(C,1)),6),6)/EMA(EMA(ABS((C-REF(C,1))),6),6);
买:=LLV(VAR01,2)=LLV(VAR01,7) AND COUNT(VAR01<0,2) AND CROSS(VAR01,MA(VAR01,2));
DRAWTEXT(买,L, '▲买入'),COLORRED;
VAR02:=5;
VAR03:=MA(C,5);
VAR04:=(HIGH+LOW+CLOSE)/3;
VAR05:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VAR06:=SMA(IF(C>=REF(C,1),VAR05,-VAR05/100),2,1);
伏击:=REF(VAR06*1.01,1)-REF(VAR06,1)<0 AND C<O AND REF(VAR03,1)<VAR03;
今日:=VAR06-REF(VAR06,1)*0.99;
昨日:=REF(VAR06,1)-REF(VAR06,2) ;
风险:=今日<0 AND 昨日>0 AND 今日<=昨日*0.8 AND C>O AND REF(VAR03,1)<VAR03;
VAR07:=FILTER(风险,1);
DRAWTEXT(伏击,L*0.99,'伏击'),COLORYELLOW;
DRAWICON(伏击,L*0.9995,1);
DRAWTEXT(VAR07,H*1.01,'风险'),COLORGREEN;
DRAWICON(VAR07,H*0.9995,2);






来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图