您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

自用实用防空警报副图指标 公式 源码[其他软件公式]

指标公式代码分析及使用说明:

 

根据给出的代码,分析指标可以得到以下指标思路和操作建议:

1. 指标思路:
   - 涨:以EMA(qw6,10)为基准线,当价格在该线上方时表示为涨势。
   - 跌:以EMA(涨,4)为基准线,当价格在该线上方时表示为跌势。
   - 多线:当涨线与跌线相交,并且跌线小于-10时,表示多头趋势形成的机会。
   - 空线:当跌线穿过80时,表示空头趋势形成的机会。

2. 操作建议:
   - 买入信号:在满足以下条件时可以考虑买入:
     - 当多线指标大于0时,表示看涨信号。
     - 当出现跌线与80相交的情况时,可以适当开仓。

   - 卖出信号:在满足以下条件时可以考虑卖出:
     - 当跌线与涨线相交,并且跌线小于-10时,表示多头趋势结束,可以平仓。
     - 当涨线大于REF(涨,1)时,表示空头趋势形成,可以适当平仓。

   - 加仓信号:当RSI指标("RSI#WEEK"(12,12,12))与("RSI#WEEK"(55,55,55))相交且RSI指标小于等于60,可以考虑加仓。

   - 减仓信号:当CXH45指标小于20且满足一定条件时,表示市场出现超卖信号,可以适当减仓。

以上是根据给出代码分析得出的指标思路和操作建议,请注意及时调整和根据其他指标进行综合分析。投资有风险,请谨

源码:

 

CXHTIME:=IF(YEAR>=2050 AND MONTH>=11 AND DAY>=07,0,1);
CXHDTIME:=IF(YEAR=2050 AND MONTH=11 AND DAY=06,1,0);
DRAWTEXT(CXHDTIME,115,''),COLOR008000;
DRAWTEXT(CXHDTIME,100,''),COLOR008000;
DRAWTEXT(CXHDTIME,85,''),COLOR008000;
DRAWTEXT(CXHDTIME,70,''),COLOR008000;
DRAWTEXT(CXHDTIME,45,''),COLOR008000;
qw1:=(HIGH+LOW+CLOSE*2)/4*CXHTIME;
qw3:=EMA(qw1,10)*CXHTIME;
qw4:=STD(qw1,10)*CXHTIME;
qw5:=(qw1-qw3)*100/qw4*CXHTIME;
qw6:=EMA(qw5,5)*CXHTIME;
rk7:=EMA(qw6,10)*CXHTIME;
涨:EMA(qw6,10)+100/2-5,linethick1,colorred;
跌:EMA(涨,4),linethick1,colorFFFF34;
多线:IF(cross(涨,跌) and 跌<-10,30,0),linethick1,COLORFF00FF;
空线:IF(cross(跌,80),70,100),color0099ff,linethick1;
买1:ema(跌,4)*CXHTIME,colorwhite;
买2:ema(买1,4)*CXHTIME,COLORGREEN;{http://www.cxh99.com}
买m3:=ema(买2,4)*CXHTIME,coloryellow;
买m4:=ema(买m3,4)*CXHTIME,colorcc9900;
-10,pointdot,color888888,linethick2;
80,pointdot,color888888,linethick2;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),0,0 ),colorwhite;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),8,0 ),COLOR008800;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),7,0 ),COLOR009900;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),6,0 ),COLOR00AA00;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),5,0 ),COLOR00BB00;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),4,0 ),COLOR00CC00;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),3,0 ),COLOR00DD00;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),2,0 ),COLOR00EE00;
STICKLINE(涨<REF(涨,1)*CXHTIME,涨,MA(涨,3),1,0 ),COLOR00FF00;

STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),0,0) ,COLOR00BBFF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),8,0) ,COLOR0011FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),7,0) ,COLOR0022FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),6,0) ,COLOR0044FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),5,0) ,COLOR0066FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),4,0) ,COLOR0088FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),3,0) ,COLOR0099FF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),2,0) ,COLOR00AAFF;
STICKLINE(涨> REF(涨,1),涨,EMA(涨,3),1,0) ,COLOR00BBFF;
DRAWICON(多线,30,1),COLORFF00FF;
DRAWICON(cross(跌,80),70,2),COLORGREEN;{http://www.cxh99.com}
DRAWTEXT(cross(涨,跌) and 跌<20 and 跌>-10,40,'买入'),colorccff99;
DRAWTEXT(多线>0,-20,'看涨'),color0000ff;
CXH811:=SUMBARS(VOL,FINANCE(7)*100)*CXHTIME;
CXH822:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL)*CXHTIME;
CXH883:=(CLOSE-CXH822)/CXH822*100*CXHTIME;
CXH884:=HHV(CXH883,CXH811)*CXHTIME;
CXH885:=LLV(CXH883,CXH811)*CXHTIME;
CXH886:=(CXH883-CXH885)/(CXH884-CXH885)*100*CXHTIME;
K:=SMA(CXH886,3,1)*CXHTIME;
D:=SMA(K,3,1)*CXHTIME;
J:=3*K-2*D;
MA1:=MA(J,3)*CXHTIME,COLORGREEN;{http://www.cxh99.com}
STICKLINE(filter(J>MA1 AND J<=3,5)=1 and 跌<0,涨,涨+20,6,0),coloryellow;
DRAWTEXT(filter(J>MA1 AND J<=3,5)=1 and 跌<0,60,'考虑买进'),colorffffff;
CXH1:=MA(CLOSE,152);
CXH2:=MA(CLOSE,194);
CXH3:=CXH2+2*STD(CLOSE,170);
CXH4:=CXH1+2*STD(CLOSE,170);
顶:(CLOSE>CXH3)*13*10,colorblue,linethick2;
CXH6:=EMA(HHV(HIGH,500),21);
CXH7:=EMA(HHV(HIGH,250),21);
CXH8:=EMA(HHV(HIGH,90),21);
CXH9:=EMA(LLV(LOW,500),21);
CXHA:=EMA(LLV(LOW,250),21);
CXHB:=EMA(LLV(LOW,90),21);
CXHC:=EMA((CXH9*0.96+CXHA*0.96+CXHB*0.96+CXH6*0.558+CXH7*0.558+CXH8*0.558)/6,21);
CXHD:=EMA((CXH9*1.25+CXHA*1.23+CXHB*1.2+CXH6*0.55+CXH7*0.55+CXH8*0.65)/6,21);
CXHE:=EMA((CXH9*1.3+CXHA*1.3+CXHB*1.3+CXH6*0.68+CXH7*0.68+CXH8*0.68)/6,21);
CXHF:=EMA((CXHC*3+CXHD*2+CXHE)/6*1.738,21);
CXH10:=REF(LOW,1);
CXH11:=SMA(ABS(LOW-CXH10),3,1)/SMA(MAX(LOW-CXH10,0),3,1)*100;
CXH12:=EMA(IF(CLOSE*1.35<=CXHF,CXH11*10,CXH11/10),3);
CXH13:=LLV(LOW,30);
CXH14:=HHV(CXH12,30);
CXH15:=IF(MA(CLOSE,58),1,0);
CXH16:=EMA(IF(LOW<=CXH13,(CXH12+CXH14*2)/2,0),3)/618*CXH15;
CXH17:=IF(CXH16>50,50,CXH16)/3.82*6;
CXH18:=HHV(HIGH,30);
CXH19:=LLV(LOW,30);
NL:=EMA((CLOSE-CXH19)/(CXH18-CXH19)*100,5)/8*10,coloryellow,linethick2;
CXH1A:=(EMA(AMOUNT,5)/EMA(VOL,5)/100-EMA(AMOUNT,125)/EMA(VOL,125)/100)/(EMA(AMOUNT,5)/EMA(VOL,5)/100)<-0.4;
CXH1B:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
CXH1C:=SMA(CXH1B,3,1);
CXH1D:=SMA(CXH1C,3,1);
CXH1E:=(-100)*(HHV(HIGH,52)-CLOSE)/(HHV(HIGH,52)-LLV(LOW,52));
CXH1F:=COUNT(CXH1A,5)>=1 AND (CXH1E<-99.9 OR CXH1D<15 AND CXH1C<12);
CXH20:=VOL/FINANCE(7);
CXH21:=100*WINNER(CLOSE);
CXH22:=MA(CXH21,3);
CXH23:=MA(CXH20,34);
CXH24:=CXH22<CXH23*100 AND CXH21<CXH20;
CXH25:=SUM(IF(CLOSE>REF(CLOSE,1),1,0),0);
CXH26:=SUMBARS(VOL,CAPITAL);
CXH27:=IF(CLOSE>LLV(CLOSE,CXH26),1,-1)*IF(CXH25>LLV(CXH25,CXH26),1,-1);
CXH28:=COUNT(IF(CXH27=-1,1,0)=1,8)>2;
CXH29:=(CLOSE-DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100)))/DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100))*100<-18;
CXH2A:=(CLOSE-MIN(REF(CLOSE,5)*0.865,REF(CLOSE,21)*0.772))/CLOSE<0.01;
CXH2B:=CXH28 AND CXH29 AND CXH2A;
CXH2C:=VOL/CAPITAL>=0.02 AND VOL/CAPITAL<=0.2 AND OPEN=1.105;
CXH2D:=CXH2C AND COUNT(CXH2C,5)=1;
CXH2E:=CXH2B OR CXH2C;
CXH2F:=REF(CLOSE,1);
CXH30:=SMA(MAX(CLOSE-CXH2F,0),7,1)/SMA(ABS(CLOSE-CXH2F),7,1)*100;
CXH31:=SMA(MAX(CLOSE-CXH2F,0),13,1)/SMA(ABS(CLOSE-CXH2F),13,1)*100;
CXH32:=CXH30<20 AND CXH31<25;
CXH33:=CXH32;
CXH34:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);
CXH35:=IF(CLOSE>LLV(CLOSE,CXH26),1,-1);
CXH36:=IF(CXH34>LLV(CXH34,CXH26),1,-1);
CXH37:=CXH35*CXH36;
CXH38:=IF(CXH37=-1,1,0);
CXH39:=CXH38 AND CLOSE=LLV(CLOSE,120) AND CXH21<CXH20;
CXH3A:=IF(FILTER(CXH1F AND CXH24 AND CXH2E AND CXH33 AND CXH39>0,4),70,0);
DRAWTEXT(FILTER(CXH24 AND CXH2E AND CXH33 OR CXH33 AND CXH39,1),CXH2*4-13,'抄底'),colorred;
STICKLINE(IF(CXH24 AND CXH2E AND CXH33 OR CXH33 AND CXH39,35,0),0,CXH2*4-4,15,0);
CXH3B:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
CXH3C:=SMA(CXH3B,3,1);
CXH3D:=SMA(CXH3C,3,1);
CXH3E:=SMA(CXH3D,3,1);
CXH3F:=CROSS(CXH3D,CXH3E) AND CXH3D<20;
CXH40:=CROSS(CXH3E,CXH3D) AND CXH3D>80;
CXH41:=5;
DRAWTEXT(CROSS(CXH41,NL),30,'做底'),colorwhite;
CXH42:="RSI#WEEK"(12,12,12);
CXH43:="RSI#WEEK"(55,55,55);
CXH44:=REF(CLOSE,1);
CXH45:=SMA(MAX(CLOSE-CXH44,0),6,1)/SMA(ABS(CLOSE-CXH44),6,1)*100;
CXH46:=FILTER(CXH40,5)=1 AND BARSLAST(CROSS(CXH42,CXH43) AND CXH42<=60)>=20;
STICKLINE(CROSS(CXH42,CXH43) AND CXH42<=60,0,CXH2*15+5,3,0),colormagenta;
DRAWTEXT(CROSS(CXH42,CXH43) AND CXH42<=60,(CXH2*12+3)/1,'加仓'),colormagenta;
STICKLINE(CROSS(84,CXH45),0,CXH2*15+3,5,1),COLORGREEN;{http://www.cxh99.com}
STICKLINE(CXH46,CXH2*15+10,10,6,0.3),colorgreen ;
{IF(CROSS(84,CXH45),DRAWTEXT(CROSS(84,CXH45),80,'防空警报'),IF(CXH46,DRAWTEXT(CXH46,100,'减仓'),0)),colorgreen ,;}

DRAWTEXT(CROSS(84,CXH45),80,'防空警报'),colorgreen ,;
DRAWTEXT(CXH46,100,'减仓'),colorgreen ,;

 

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容