1.两条均线同时向上拐,均线均线通达信公式如何编写呢?
2.我想把两个附图公式和 MA2六条均线组合成一个主图指标!联合联合希望您能帮忙!启动启动闲庄游戏源码谢谢了!公式公式通达信!源码源码小鱼庄入源码
两条均线同时向上拐,设置分享生活APP源码通达信公式如何编写呢?
EMA(C,均线均线N1)>REF(EMA(C,N1),1) AND REF(EMA(C,N1),1) <=REF(EMA(C,N1),2) AND EMA(C,N2)>REF(EMA(C,N2),1) AND REF(EMA(C,N2),1) <=REF(EMA(C,N2),2) ;
其中的 N1代表第一条均线,例如5日均线
N2代表第二条均线,联合联合例如日均线
我想把两个附图公式和 MA2六条均线组合成一个主图指标!启动启动希望您能帮忙!公式公式谢谢了!源码源码通达信!设置
MA1:MA(CLOSE,均线均线源码曹毅讲话M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
VAR:=EMA(EMA(C,9),9);
控盘:=(VAR-REF(VAR,1))/REF(VAR,1)*;
VAR:=*WINNER(C*0.);
STICKLINE(VAR> AND COST()<CLOSE AND 控盘>0,O,C,1.5,0),COLORFFFF;
VAR1:=C-REF(C,1);
VAR2:=*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
M5:=EMA(C,5);
MA:=EMA(C,);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA,M5))+1),LLV(L,BARSLAST(CROSS
(MA,M5))+1),H=HHV(H,BARSLAST(CROSS(M5,MA))+1),HHV(H,BARSLAST(CROSS
(M5,MA))+1),0);
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(M5,MA))+1),HHV(H,BARSLAST(CROSS
(M5,MA))+1),L=LLV(L,BARSLAST(CROSS(MA,M5))+1),LLV(L,BARSLAST(CROSS
(MA,M5))+1),0);
BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
DRAWTEXT(BT,L*0.,'↑短牛'),COLORFF;
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,)*0.;
DRAWTEXT(TJ1,L*0.,'↑中牛'),COLORFFFF;
HR:=HHV(HIGH,);
HRY:=LLV(LOW,);
HRY:=HR*HRY;
HRY:=SQRT(HRY);
TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY;
DRAWTEXT(TJ2,L*0.,'↑大牛'),COLORFFFF;
ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);
DRAWTEXT(ST,H*1.,'↓卖'),COLORFF;
M1-M6为自定义均线参数,自设。联合联合
启动启动立下flag指标源码