DPO:=CLOSE*2-REF(MA(CLOSE,20),10); TPV3:DPO;
MADPO:=MA(DPO,6);
STICKLINE(DPO>=MADPO,L*2,H*2,0,1),RGB(255,0,0);
STICKLINE(DPO>=MADPO,CLOSE*2,OPEN*2,8,1),RGB(255,0,0);
STICKLINE(DPO<MADPO,L*2,H*2,0,1),RGB(0,255,0);
STICKLINE(DPO<MADPO,CLOSE*2,OPEN*2,8,0),RGB(0,255,0);
//================================================
买线:=EMA(C*1.5,2);
TPV2:买线;
卖线:=EMA(SLOPE(C*1.5,21)*20+C*1.5,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(bu,LOW*1.5,' ̄'),ALIGN1,VALIGN0,Color208FFF,LINETHICK3;
DRAWTEXT(sel,HIGH*1.5,' ̄'),ALIGN1,VALIGN0,ColorFFFF00,LINETHICK3;
STICKLINE(买线>=卖线,LOW*1.5,HIGH*1.5,0.1,1),colorred;
STICKLINE(买线>=卖线,CLOSE*1.5,OPEN*1.5,8,1),colorred;
STICKLINE(买线<卖线,CLOSE*1.5,OPEN*1.5,8,0),color00ff00;
STICKLINE(买线<卖线,LOW*1.5,HIGH*1.5,0.1,1),color00ff00;
STICKLINE(CROSS(买线,卖线),OPEN*1.5,CLOSE*1.5,6,0),colorff00ff;
STICKLINE(CROSS(卖线,买线),OPEN*1.5,CLOSE*1.5,6,0),colorffff00;
//=================================================================
VRA1:MA(CLOSE,10);
VRA2:=MA(CLOSE,34);
STICKLINE(CLOSE>=VRA1,OPEN,HIGH,0,0),color0000ff;
STICKLINE(CLOSE>=VRA1,CLOSE,OPEN,8,1),color0000ff;
STICKLINE(CLOSE<VRA1,OPEN,HIGH,0,0),color0000ff;
STICKLINE(CLOSE<VRA1,CLOSE,VRA1,8,0),color00ff00;
DRAWTEXT(CROSS(CLOSE,VRA1),LOW,'B'),ALIGN1,VALIGN0,Color208FFF,LINETHICK1;
DRAWTEXT(CROSS(VRA1,CLOSE),HIGH,'▔'),ALIGN1,VALIGN0,ColorFFFF00,LINETHICK1;
|
