上收:=c;
上開:=o;
上高:=h;
上低:=l;
STICKLINE(上收>=上開,上開,上收,6,1 ),COLOR0000FF;
AA:=STICKLINE(上收>=上開,上收,上高,0.6,1 );
STICKLINE(上收>=上開,上開,上低,0.6,1 ),COLOR0000FF;
STICKLINE(上開>上收,上收,上開,6,0 ),COLORFFFF00;
BB:=STICKLINE(上開>上收,上收,上低,0.6,0 );
STICKLINE(上開>上收,上開,上高,0.6,0 ),COLORFFFF00;
JJ:=(上開+上高+上低)/3;
A:=EMA(JJ,4);
B:=REF(A,1);
智能黃金線:A,POINTDOT,COLORYELLOW;
B,POINTDOT,COLORYELLOW;
STICKLINE(A>B,A,B,5,0),COLORYELLOW;
STICKLINE(A<B,A,B,5,0),COLORBLUE;
選手:=MA(上收,5);
箱頂:MA(REF(HHV(上收,30),1),5),COLOR0000FF;
箱底:MA(REF(LLV(上收,30),1),5),COLOR00FF00;
Var1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=SMA(Var3,3,1);
DRAWTEXT(FILTER((CROSS(Var3,Var4) AND Var3<40),34),箱底,'逢低吸吶'),COLORf00ff0;
DRAWTEXT(FILTER((CROSS(Var4,Var3) AND Var4>75),34) ,箱頂*1.02,'逢高減磅'),COLORf0f000;
DRAWTEXT(Var3>=Var4 and DISPSTATUS=2,箱頂,'--中期好'),COLOR00FFFF;{持倉區(qū),中期向好!}
DRAWTEXT( Var3<Var4 and DISPSTATUS=2,箱頂,'--中期壞'),COLORf0f000;{空倉區(qū),中期走壞!}
DRAWTEXT( A>B and DISPSTATUS=2,箱底*1.02,'--短期好'),COLOR00FFFF;
DRAWTEXT(A<B and DISPSTATUS=2,箱底*1.02,'--短期壞'),COLORf0f000;
|