本帖最后由 九转妖 于 2023-12-18 15:12 编辑
副图公式源码:支持 手机/电脑
M:=6;N:=14;
GUP1:=(HIGH+LOW+CLOSE)/3;
GUP2:=VOL/REF(MA(VOL,5),1);
GUP3:=SUM(IF(GUP1>REF(GUP1,1),GUP1*VOL,0),N)/SUM(IF(GUP1<REF(GUP1,1),GUP1*VOL,0),N);
MFI:100-(100/(1+GUP3)),COLORWHITE;
MAMFI:MA(MFI,M),COLORYELLOW;
DRAWTEXT(CROSS(MAMFI,MFI) AND MAMFI>70 AND MAMFI<90,MAMFI,'卖'),COLORGREEN;
DRAWTEXT(CROSS(MFI,MAMFI) AND MFI<50 AND MFI>35 AND GUP2>3,MFI,'涨'),COLORRED;
DRAWTEXT(CROSS(MFI,MAMFI) AND MFI<40 AND MFI>10,MFI,'买'),COLORYELLOW;
选股公式源码
{选股公式一:买}
M:=6;N:=14;
GUP1:=(HIGH+LOW+CLOSE)/3,COLORWHITE;
GUP2:=VOL/REF(MA(VOL,5),1),COLORWHITE;
GUP3:=SUM(IF(GUP1>REF(GUP1,1),GUP1*VOL,0),N)/SUM(IF(GUP1<REF(GUP1,1),GUP1*VOL,0),N),COLORWHITE;
MFI:=100-(100/(1+GUP3)),COLORWHITE;
MAMFI:=MA(MFI,M),COLORYELLOW;
买:CROSS(MFI,MAMFI) AND MFI<40 AND MFI>10,COLORYELLOW;
{选股公式二:涨}
M:=6;N:=14;
GUP1:=(HIGH+LOW+CLOSE)/3;
GUP2:=VOL/REF(MA(VOL,5),1);
GUP3:=SUM(IF(GUP1>REF(GUP1,1),GUP1*VOL,0),N)/SUM(IF(GUP1<REF(GUP1,1),GUP1*VOL,0),N),COLORYELLOW;
MFI:=100-(100/(1+GUP3)),COLORWHITE,COLORYELLOW;
MAMFI:=MA(MFI,M),COLORYELLOW;
涨:CROSS(MFI,MAMFI) AND MFI<50 AND MFI>35 AND GUP2>3,COLORRED;
|