简洁趋势线通达信公式 主图指标源码[通达信公式]
可以看出上方的卖出指标是由多个指标组合而成的,主要包括乖离率、RSI、MA、散户、庄家等因素,随着这些因素交织而生成买卖点信号。而下方的买入指标则主要包括趋势线、MACD、老鼠仓等因素,同时也关注了流通市值、速动比率等基本面因素。
基于该分析,我们可以结合当前的市场走势和个股具体情况,采取适当的投资策略。例如,在买入信号出现时,可以适当买入该股票;而在卖出信号出现时,则可以考虑减仓或者卖出该股票。同时也需要注意,并非所有信号都是准确的,需要根据实时市场变化进行判断和调整。
MA5:MA(C,5);
MA10:MA(C,10);
MA30:MA(C,30);
MA60:MA(C,60);
MA20:MA(C,24),NODRAW;
MA120:MA(C,120);
MA240:MA(C,240);
{卖出------------------------}
cxh55:=EMA(EMA(EMA(C,8),13),62);
cxh56:=((REF(H,1) + REF(L,1)) / 2);
cxh57:=(MA(C,20) + (2 * STD(C,20)));
cxh58:=((SMA(MAX((C - REF(C,1)),0),7,1) / SMA(ABS((C - REF(C,1))),7,1)) * 100);
卖出1:=FILTER(CROSS(79,cxh58),4);
MA21:=REF(C,1);
AZX:=((SMA(MAX((C - MA21),0),6,1) / SMA(ABS((C - MA21)),6,1)) * 100);
卖出2:=CROSS(84,AZX),COLORFF00FF;
卖出3:=CROSS(90,RSI);
卖出:=卖出1 OR 卖出2 OR 卖出3;
{买入------------------------}
QQ2:=(C-LLV(L, 18))/(HHV(H, 18)-LLV(L, 18))*100;
QQ3:=SMA(QQ2, 9, 1);
QQ4:=SMA(QQ3, 3, 1);
长趋势:=3*QQ3-2*QQ4;
趋势线:=EMA(QQ3, 3);
金叉:= CROSS(长趋势,趋势线);
AAAA1:=AMOUNT/V;
BBB1:=L<AAAA1*0.9;
CCC1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
DDD1:=L<MA(CLOSE,5)*0.921;
EEE1:=V<MA(VOL,5)*1.5;
老鼠仓:=BBB1 AND CCC1 AND DDD1 AND EEE1;
X1:=(CLOSE+LOW+H)/3;
BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;
cxh1:=(MA(C,80)-MA(C,13)/3);
cxh2:=( MA((C-cxh1)/cxh1,1));
Vcxh3:=(C-LLV(L,28))/(HHV(H,28)-LLV(L,28))*100;
Vcxh4:=SMA(Vcxh3,4,1);
MMA:=EMA(cxh2,12)*0.7;
MMB:=EMA(cxh2,3);
快到底:=IF(LLV(MMB-MMA,12)>0,0,-20);
DIFF:=( EMA(C,12) - EMA(C,26))*100;
DEA:=EMA(DIFF,9);
MACD:= 2*(DIFF-DEA);
抄底:=IF(快到底<0 AND CROSS(MACD,0) AND Vcxh4<18,1,0);
Acxh2:=(2*C+H+L)/4;
Acxh3:=IF(YEAR>=2099 AND MONTH>2,0,1);
Acxh4:=LLV(L,5);
Acxh5:=HHV(H,4);
散户:= EMA((Acxh2-Acxh4)/(Acxh5-Acxh4)*100,4)*Acxh3;
庄家:= EMA(0.667*REF(散户,1)+0.333*散户,2)*Acxh3;
试买:=(((CROSS(散户,庄家) AND 散户<50 AND 29<散户)) NOT 大雪)
OR (CROSS(散户,庄家) AND 散户<30 ) OR 抄底;
AA05:=MA(CLOSE,5);
五日乖离率:=(CLOSE-AA05)/AA05*100;
BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
AA10:=MA(CLOSE,10);
AA20:=MA(CLOSE,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;
AA30:=MA(CLOSE,30);
DRAWICON(老鼠仓 OR 金叉,(L - (L * 0.01)),1);
DRAWICON(卖出,(H * 1.002),2);
买线:=EMA(CLOSE,4);
卖线:=EMA(SLOPE(CLOSE,20)*10+C,35);
DRAWICON(CROSS(买线,卖线),(L - (L * 0.01)),7);
DRAWICON(CROSS(卖线,买线),(H * 1.002),8);
STICKLINE(C>=O,H,C,0,0),COLOR225588;
STICKLINE(C>=O,H,C,0,0),COLOR66CCFF;
STICKLINE(C>=O,O,L,0,0),COLOR225588;
STICKLINE(C>=O,O,L,0,0),COLOR66CCFF;
STICKLINE(C>O,C,O,3.4,0),COLOR225588;
STICKLINE(C>O,C,O,3.0,0),COLOR226699;
STICKLINE(C>O,C,O,2.4,0),COLOR3377AA;
STICKLINE(C>O,C,O,2.0,0),COLOR3388BB;
STICKLINE(C>O,C,O,1.6,0),COLOR4499CC;
STICKLINE(C>O,C,O,1.2,0),COLOR44AADD;
STICKLINE(C>O,C,O,0.6,0),COLOR55BBEE;
STICKLINE(C>O,C,O,0.1,0),COLOR66CCFF;
STICKLINE(C<=O,H,C,0,0),COLOR888800;
STICKLINE(C<=O,H,C,0,0),COLORFFFF00;
STICKLINE(C<=O,O,L,0,0),COLOR888800;
STICKLINE(C<=O,O,L,0,0),COLORFFFF00;
STICKLINE(C<=O,C,O,3.4,0),COLOR888800;
STICKLINE(C<=O,C,O,3.0,0),COLOR999900;
STICKLINE(C<=O,C,O,2.4,0),COLORAAAA00;
STICKLINE(C<=O,C,O,2.0,0),COLORBBBB00;
STICKLINE(C<=O,C,O,1.6,0),COLORCCCC00;
STICKLINE(C<=O,C,O,1.2,0),COLORDDDD00;
STICKLINE(C<=O,C,O,0.6,0),COLOREEEE00;
STICKLINE(C<=O,C,O,0.1,0),COLORFFFF00;
DRAWTEXT_FIX(1,0.00,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.04,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.08,0,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.10,100,0,'总:'),COLORWHITE;{总市值}
DRAWNUMBER_FIX(1,0.11,100,0,CONST(FINANCE(41)/100000000)),COLORWHITE;
DRAWTEXT_FIX(1,0.15,100,0,'流:'),COLORWHITE;{流通市值}
DRAWNUMBER_FIX(1,0.16,100,0,CONST(FINANCE(40)/100000000)),COLORWHITE;
DRAWTEXT_FIX(1,0.20,100,0,'现流:'),COLOR00FFFF;{经营性现金流}
DRAWNUMBER_FIX(1,0.22,100,0,CONST(FINANCE(25)/1000000000)),COLOR00FFFF;
DRAWTEXT_FIX(1,0.25,100,0,'流比:'),COLOR00FFFF;{流动比率值>1.5<2.5较为合理,低于1说明偿债能力欠佳。}
DRAWNUMBER_FIX(1,0.27,100,0,CONST(FINANCE(11)/FINANCE(15))),COLOR00FFFF;
DRAWTEXT_FIX(1,0.29,100,0,'速比:'),COLOR00FFFF;{速动比率}
DRAWNUMBER_FIX(1,0.32,100,0,CONST((FINANCE(11)-FINANCE(27))/FINANCE(15))),COLOR00FFFF;
DRAWTEXT_FIX(1,0.35,100,0,'毛:'),COLORGREEN;{毛利率}
DRAWNUMBER_FIX(1,0.36,100,0,CONST((FINANCE(20)-FINANCE(21))/FINANCE(20)*100)),COLORGREEN;
DRAWTEXT_FIX(1,0.39,100,0,'净:'),COLORGREEN;{净利率}
DRAWNUMBER_FIX(1,0.40,100,0,CONST(FINANCE(30)/FINANCE(20)*100)),COLORGREEN;
DRAWTEXT_FIX(1,0.43,100,0,'销:'),COLORGREEN;{市销率}
DRAWNUMBER_FIX(1,0.44,100,0,CONST(FINANCE(20)/FINANCE(1))),COLORGREEN;
DRAWTEXT_FIX(1,0.47,100,0,'应收:'),COLORGREEN;
DRAWNUMBER_FIX(1,0.49,100,0,CONST(FINANCE(22)/100000000)),COLORGREEN;
DRAWTEXT_FIX(1,0.53,100,0,'存货:'),COLORGREEN;
DRAWNUMBER_FIX(1,0.55,100,0,CONST(FINANCE(27)/100000000)),COLORGREEN;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容