主力线:EMA((C-(LLV(L,25)))/((HHV(H,25))-(LLV(L,25)))*100,5)COLORRED,LINETHICK2;
机构线:3*SMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5,1)-2*SMA(SMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5,1),3,1),COLORLIBLUE,LINETHICK2;
数值1:=MA((V-REF(V,1))/REF(V,1),5);
数值2:=(C-MA(C,24))/MA(C,24)*100;
数值3:=数值2*(1+数值1);
数值4:=SMA(MAX(VOL-REF(V,1),0),6,1)/SMA(ABS(VOL-REF(V,1)),6,1)*100;
条件1:=数值3>REF(数值3,1) AND 主力线<REF(主力线,1) AND 数值4>REF(数值4,1);
条件2:=数值3>REF(数值3,1) AND 主力线<REF(主力线,1) AND 数值4<REF(数值4,1);
条件3:=条件1 OR 条件2;
条件4:=数值3<REF(数值3,1) AND 主力线<REF(主力线,1);
条件5:=条件3 OR 条件4;
条件6:=数值3>REF(数值3,1) AND 主力线>REF(主力线,1);
XG:=LAST(条件5,7,1) AND 条件6,COLORRED,STICK;
条件7:=CROSS(XG,条件5) AND 条件6<2.1 AND C>O;
DRAWTEXT_FIX(1,0.01,0.01,0,'理想论坛'),COLORRED;
STICKLINE(条件7,50,0,4,0),COLOR0000FF;
STICKLINE(条件7,50,0,3,0),COLOR6600FF;
STICKLINE(条件7,50,0,2,0),COLORFF00FF;
STICKLINE(条件7,50,0,1,0),COLORFF99FF;
STICKLINE(条件7,50,0,0.3,0),COLORFF3366,;
DRAWTEXT(条件7,53,'转折'),COLORWHITE;
低吸:IF(机构线<=8,30,0),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(低吸,8),33,'低吸'),COLORYELLOW;
NOTEXTA:90,DOTLINE,COLORLIRED;
NOTEXTB:50,DOTLINE,COLORYELLOW;
NOTEXTC:20,DOTLINE,COLORLIGRAY;
NOTEXTD:5,DOTLINE,COLORYELLOW;