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

时空回头望月三线开花指标 公式 源码[其他软件公式]

指标代码分析及使用参考建议:

根据给出的代码,分析指标如下:

H1: EMA(CLOSE,3)为3日指数移动平均线。
H2: EMA(H1,20)为H1的20日指数移动平均线。
DRAWICON(CROSS(H1,H2)AND CLOSE<EMA(CLOSE,60), LOW,1)表示当H1上穿H2且收盘价低于60日指数移动平均线时,在最低价处画一个图标。
STICKLINE(H1>H2, H1, H2, 1, 0.8), COLORRED表示当H1大于H2时,在H1和H2之间画一条红色的垂直线。
STICKLINE(H1<H2, H1, H2, 1, 0.8), COLORGREEN表示当H1小于H2时,在H1和H2之间画一条绿色的垂直线。
思路及操作建议:
根据以上指标的解释和代码内容,可以得出以下简要的思路和操作建议:

当H1上穿H2且收盘价低于60日均线时,暗示卖压较强,可能是一个卖出信号。
当H1大于H2时,表示近期股价走势较强劲,可能是一个买入信号。
当H1小于H2时,表示近期股价走势较弱,可能是一个卖出信号。
可以结合其他指标如MA5、MA10、MA20、MA30、MA60、MA120、MA250等指标进行综合分析,判断股票的走势和趋势。
需要注意的是,以上仅为指标分析的简要思路和操作建议,具体操作还需要结合个人的投资策略和风险承受能力进行综合考虑。
请注意,以上只是根据给出的代码进行的简要分析,具体的分析结果和操作建议可能需要根据更多的数据和指标进行进一步的研究和分析。建议在实际操作中,结合自己的投资经验和风险控制能力,制定合理的投资策略。

 

 

源码:

 

H1:EMA(CLOSE,3),linethick2,colorred;
H2:EMA(H1,20),linethick2,coloryellow;
DRAWICON(CROSS(H1,H2)AND CLOSE<EMA(CLOSE,60) ,LOW,1);
STICKLINE(H1>H2,H1,H2,1,0.8),COLORRED;
STICKLINE(H1<H2,H1,H2,1,0.8),COLORGREEN;{http://www.cxh99.com}
x1:=EMA(C,7);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(84,RSI) , HIGH,' 快跑 '),COLORYELLOW;
CXHA:=REF(CLOSE,1);
CXHB:=SMA(MAX(CLOSE-CXHA,0),6,1)/SMA(ABS(CLOSE-CXHA),6,1)*100;
DRAWTEXT(CROSS(75,CXHB),HIGH,'☆短出'),Color00FF00 ;
选股1:cross(h1,h2),LINETHICK0,COLORGREEN;{http://www.cxh99.com}
DRAWTEXT(cross(h1,h2),l,'☆加仓'),ALIGN0,coloryellow,linethick3;
选股2:cross(h2,h1),LINETHICK0,colorred;
DRAWTEXT(cross(h2,h1),l,'☆止损'),ALIGN0,colorred,linethick3;

MA5:MA(CLOSE,5),linethick1;
MA10:MA(CLOSE,10),linethick1;
MA20:MA(CLOSE,20),Color0000FF,linethick1;
MA30:MA(CLOSE,30),ColorFFFF00,linethick1;
MA60:MA(CLOSE,60),ColorFF0000,linethick1;
MA120:MA(CLOSE,120),Color00FF00,linethick1;
MA250:MA(CLOSE,250),Colorgray,linethick1;
CXH1:=(O+L+H+C)/4;
stickline(1,CXH1,CXH1,6,0),ColorFF00FF;
拐点:=MA(C,3);

拐点1:=MA(C,3);
GD1:=ref(count(拐点<=ref(拐点,1),5)=5 ,1) and 拐点>ref(拐点,1),linethick2 ,colorred;

gd2:=ref(count(拐点1<=ref(拐点1,1),5)=5 ,1) and 拐点1>ref(拐点1,1),linethick2 ,colorred ;
DRAWICON(gd1,0.98*c,1);
DRAWICON(gd2,0.98*c,8);
{回头望月}
tt1:=BARSLAST(REF(CROSS(CLOSE,ma120),1)) and CROSS(ma20,ma120);
STICKLINE(TT1,ma120,ma120-0.09,4,0),Color00FF00;
DRAWTEXT(TT1,ma120-0.13,'望月'),Color00FF00;
{火车轨:}
火车轨:=ma120/REF(ma250,1)>1.03 and ma120>ma250 and ma120>REF(ma120,1) and ma250>REF(ma250,1);
STICKLINE(火车轨,ma120,ma120-0.035,4,0),colorffcccc;
STICKLINE(火车轨,ma250,ma250+0.035,4,0),colorffcccc;
{三线开花:}
STICKLINE(ma120<ma250 and CROSS(ma20,ma120) and CROSS(ma20,ma250),ma20,ma20-0.09,4,0),color00ff00;
DRAWTEXT(ma120<ma250 and CROSS(ma20,ma120) and CROSS(ma20,ma250),ma20-0.13,'三线开花'),color00ff00;
{二次握手}
fa:=BARSLAST(CROSS(ma10,ma5)) and CROSS(ma5,ma10);
fb:=fa and ma5>ma30 and ma10>ma30and ma10>REF(ma10,1);
STICKLINE(fb,LOW,LOW-0.09,4,0),colorwhite;
DRAWTEXT(fb,LOW-0.13,'握手'),colorwhite;
fa1:=BARSLAST(CROSS(ma60,ma20)) and CROSS(ma20,ma60);
fb1:=fa and ma20>ma120 and ma60>ma120and ma20>REF(ma20,1);
STICKLINE(fb,LOW,LOW-0.09,4,0),colorwhite;
DRAWTEXT(fb,LOW-0.13,'握手'),,Color00FF00;
CXHA:=AMOUNT/vOL/100;
CXHB:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
CXHC:=SUM(AMOUNT,7)/CXHA/100;
CXHD:=DMA(CXHB,VOL /CXHC);
CXHE:=(CLOSE-CXHD) /CXHD*100;
CXHF:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
CXHJ:=MA(CXHE,20)+STD(CXHE,20);
BIAS18:=(CLOSE-MA(CLOSE,18))/MA(CLOSE,18)*100;
K:=SMA(CXHF,3,1);
DRAWTEXT(REF(BIAS18,1)>=5 AND CROSS(CXHJ,CXHE) AND K>79 ,H+0.1,'先走一走'),,COLORY;
CXH31:=hhvbars(zig(3, 19)>ref(zig(3,19),1) and ref(zig(3,19), 1)<ref(zig(3,19), 2),0);
转折时间:CXH31+1,pointdot,colorff00ff,LINETHICK0;
时间窗:=0,colorwhite;
stickline(CXH31=2,l*0.95,l*0.98,8,0),color0000ff;
drawtext(CXH31=2,l*0.95,'3天'),coloryellow;
stickline(CXH31=4,h*1.05,h*1.02,8,0),color9966ff;
drawtext(CXH31=4,h*1.06,'5天'),coloryellow;
stickline(CXH31=7,l*0.95,l*0.98,8,0),color00ffff;
drawtext(CXH31=7,l*0.95,'8天'),coloryellow;
stickline(CXH31=12,h*1.05,h*1.02,8,0),colorff33ff;
drawtext(CXH31=12,h*1.06,'13天'),coloryellow;
stickline(CXH31=20,l*0.95,l*0.98,8,0),color0066ff;
drawtext(CXH31=20,l*0.95,'21天'),coloryellow;
stickline(CXH31=33,h*1.05,h*1.02,8,0),colorffff00;
drawtext(CXH31=33,h*1.06,'34天'),coloryellow;
stickline(CXH31=54,l*0.95,l*0.98,8,0),color006600;
drawtext(CXH31=54,l*0.95,'55天'),coloryellow;
stickline(CXH31=88,h*1.05,h*1.02,8,0),color00ff00;
drawtext(CXH31=88,h*1.06,'89天'),coloryellow;
stickline(CXH31=143,l*0.95,l*0.98,8,0),colorccffff;
drawtext(CXH31=143,l*0.95,'144天'),coloryellow;
stickline(CXH31=232 ,h*1.05,h*1.02,8,0),colorff0033;
drawtext(CXH31=232,h*1.06,'233天'),coloryellow;
stickline(CXH31=376,l*0.95,l*0.98,8,0),colorff9966;
drawtext(CXH31=376,l*0.95,'377天'),coloryellow;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));
GR2:=EMA(X1,13)>EMA(X1,21) AND EMA(X1,21)>EMA(X1,34)
AND EMA(X1,13)>REF(EMA(X1,13),1);
GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);
GR4:=H=HHV(H,GR1);
GR5:="MACD.MACD"(12,26,9)<REF("MACD.MACD"(12,26,9),1);
GR6:=GR2 AND GR3 AND GR4;
GR7:=GR2 AND GR3 AND GR4 AND GR5;
GR8:=GR6 AND GR7;
LC := REF(CLOSE,1);
RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
换手:=100*V/CAPITAL;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,'∠45上升'),COLORWHITE;
A1:=BARSLAST(ref(cross("macd.diff"(12,26,9),"macd.dea"(12,26,9)),1));
B1:=ref(c,A1+1)>c and ref("macd.diff"(12,26,9),A1+1)<"macd.diff"(12,26,9) and cross("macd.diff"(12,26,9),"macd.dea"(12,26,9));
DRAWTEXT(FILTER(B1>0,5),l-0.01,'M 底背'),COLORGREEN;{http://www.cxh99.com}
A2:=BARSLAST(ref(cross("kdj.k"(9,3,3),"kdj.d"(9,3,3)),1));
B2:=ref(c,A2+1)>c and ref("kdj.k"(9,3,3),A2+1)<"kdj.k"(9,3,3)and cross("kdj.k"(9,3,3),"kdj.d"(9,3,3));
DRAWTEXT(FILTER(B2>0,5),l-0.25,'K 底背'),COLORYELLOW;
A3:=BARSLAST(ref(cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=ref(c,A3+1)>c and ref("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) and cross("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
DRAWTEXT(FILTER(B3>0,5),l-0.4,'R 底背'),COLORffff00;
C1:=BARSLAST(ref(cross("macd.dea"(12,26,9),"macd.diff"(12,26,9)),1));
D1:=ref(c,C1+1)<c and ref("macd.diff"(12,26,9),C1+1)>"macd.diff"(12,26,9)and cross("macd.dea"(12,26,9),"macd.diff"(12,26,9));
DRAWTEXT(FILTER(D1>0,5),h+0.01,'M 顶背'),COLORRED;
C2:=BARSLAST(ref(cross("kdj.d"(9,3,3),"kdj.k"(9,3,3)),1));
D2:=ref(c,C2+1)<c and ref("kdj.k"(9,3,3),C2+1)>"kdj.k"(9,3,3)and cross("kdj.d"(9,3,3),"kdj.k"(9,3,3));
DRAWTEXT(FILTER(D2>0,5),h+0.25,'K 顶背'),COLOR0066FF;
C3:=BARSLAST(ref(cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=ref(c,C3+1)<c and ref("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24)and cross("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
DRAWTEXT(FILTER(D3>0,5),h+0.4,'R 顶背'),COLORff00ff;
e1:=BARSCOUNT(c);
ah:=hhv(h,200);
al:=llv(l,200);
b0:=(ah-al)/40;
kb1:=h+b0;
kb2:=l-b0;
stickline((e1+0)/34=FLOOR((e1+0)/34),kb2,kb2-3*b0,2,0),COLOryellow,LINETHICK3;
drawtext((e1+0)/34=FLOOR((e1+0)/34),kb2-2*b0,'时间窗'),COLORwhite;
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD));
 

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容