同花顺伏击牛熊主图源码分享




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,0),colorFF5B00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),colorFF6C00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),colorFF7B00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),colorFF9C00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),colorFFBE00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),colorFFCC00;

STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1.5,0),colorFFFF00;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,9,0),color070084;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),color0000A3;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),color0000B7;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),color0000CD;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),color0000E9;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),color0754E9;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),color076fF3;

STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),color079BF3;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;

STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),color0726CA;

STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),color0726CA;

STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),colorDE9100;

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