请老师帮忙把一个主图,两个附图指标,合并组合成一个三合一的通达信选股公式,就是三个指标都发出信号,先谢了!!!
第一个公式:出现三星(主图)
MA5:EMA(C,5);
MA13:EMA(C,13);
MA21:EMA(C,21);
向上:=COUNT(REF(EMA(C,3),1)<REF(EMA(C,3),2),5)=5 AND EMA(C,3)>REF(EMA(C,3),1);
DRAWTEXT(向上,L*0.993,'★'),COLOR00FF00;
BDD:=C=LLV(C,13);
N:=BARSLAST(BDD);
低:=IF(N,REF(C,N),REF(C,N));
启动:=C>低 AND REF(C=低,1);
DRAWTEXT(启动,L,'★'),COLORFF00FF;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(买=1,5),LOW*0.975,'★'),COLORYELLOW;
VAR2:=REF(EMA(DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.09),0.9),3),1);
DRAWTEXT(CROSS(CLOSE,VAR2),LOW*0.965,'★'),COLORRED;
TJ:=IF((C-REF(C,1))/REF(C,1)>0.025,1,0);
YL:=IF(C>REF(O,BARSLAST(TJ =1)),REF(O,BARSLAST(TJ =1)),0);
FT:=BARSLAST(YL);
YLX:=REF(YL,FT);
BT:=IF(C<OPEN AND REF(C,1)>REF(OPEN,1),REF(C,1),0);
XFT:=BARSLAST(BT);
XYLX:=REF(BT,XFT);
平台调下:=CROSS(XYLX,C);
平台突破:=CROSS(C,YLX);
DRAWTEXT(平台突破 ,L* 0.986, '★'),COLORFFFF00;
第二个公式:满足买入
A:=(3*C+L+O+H)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/210;
主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;
短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;
黄金线:(EMA(C,15)),POINTDOT,LINETHICK4,COLORYELLOW;
生命线:(MA(C,25)),LINETHICK2,COLORMAGENTA;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,15);
DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'买入'),COLOR00FFFF;
DRAWTEXT(CROSS(MA15,FF),(HIGH * 1.02),'卖出'),COLOR00FF00;
第三个公式:出现黄柱
MAA5:MA(C,5),COLORWHITE;
MAA10:MA(C,10),COLORGREEN;
MAA30:MA(C,30),COLORMAGENTA,LINETHICK2;
稳赢:IF(MAA10>MAA30,MAA10,MAA30),COLORYELLOW;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'进'),COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;