同花顺明天逢低买公式
本指标有未来函数
源码
N:=5;
M:=3;
DIFF : EMA(CLOSE,n) -EMA(CLOSE,m),LAYER0;
DEA :EMA(DIFF,6),LAYER0;
主升 : DIFF>0 AND DIFF>DEA,COLOR0000FF,POINTDOT,LINETHICK0;
FILLRGN(DIFF,DEA,主升,RGB(250,0,0));
VarA:=LLV(LOW,35);
VarB:=HHV(HIGH,30);
VarC:=EMA((CLOSE-VarA)/(VarB-VarA)*4,4)*25;
VAR11:=9999999999999;
VAR21:=LLV(LOW,60);
VAR31:=HHV(HIGH,60);
VAR41:=EMA((CLOSE-VAR21)/(VAR31-VAR21)*100,5);
VAR5:=EMA(0.667*REF(VAR41,1)+0.333*VAR41,2);
VAR6:=OPEN=1.06 AND CLOSE/OPEN>1.12 AND HIGH/ CROSS(VAR41,VAR5) AND VAR41<13;
明天逢低买:VarC<10 AND 100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))>97,colorblue;
STICKLINE(DIFF>DEA ,DIFF,DEA ,8,1),colorred;
STICKLINE(DIFF<DEA ,DIFF,DEA ,8,1),colorwhite;
尖顶买入:ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2),colorred,LINETHICK1;
尖顶卖出:ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2),colorwhite,LINETHICK1;
DRAWTEXT(尖顶买入=1,1,'↗'),colorred;
DRAWTEXT(尖顶卖出=1,1,'↘'),colorwhite;
A:=V*100/CAPITAL;
小快牛:=MA(A,180);
DIFF0:=(EMA(DCLOSE,6)-EMA(DCLOSE,9))*100;
DEA0:=EMA(DIFF0,3);
MACD0:=2*(DIFF0-DEA0);
快牛: (MACD0>REF(MACD0,1)*2.5 AND MACD0>9),COLORFF00FF;
STICKLINE(快牛,00,1,1.2,0),colormagenta;
DRAWTEXT(快牛,0.5,'↑'),colormagenta;