EF:=MAX(HHV(CLOSE,N1)-LLV(CLOSE,N1),ABS(CLOSE-REF(CLOSE,N1)))/SUM(ABS(CLOSE-REF(CLOSE,1)),N1); EFMA:=EMA(EF,N1);
MER:=INTPART(N1-(EFMA-0.5)*N2);
LY:=SUM((CLOSE-REF(CLOSE,1))*VOL,MER);
LYSX:=EMA(LY,N1);
STICKLINE(LYSX >0 AND CLOSE<=OPEN,CLOSE,OPEN,3,0),colorred;
STICKLINE(LYSX >0 AND CLOSE<=OPEN,OPEN,HIGH,0,1),colorred;
STICKLINE(LYSX >0 AND CLOSE<=OPEN,CLOSE,LOW,0,1),colorred;
STICKLINE(LYSX >0 AND CLOSE>=OPEN,CLOSE,OPEN,3,1),colorred;
STICKLINE(LYSX >0 AND CLOSE>=OPEN,CLOSE,HIGH,0,1),colorred;
STICKLINE(LYSX >0 AND CLOSE>=OPEN,OPEN,LOW,0,1),colorred;
STICKLINE(LYSX<0 AND CLOSE<=OPEN,CLOSE,OPEN,3,0),colorgreen;
STICKLINE(LYSX<0 AND CLOSE<=OPEN,OPEN,HIGH,0,1),colorgreen;
STICKLINE(LYSX<0 AND CLOSE<=OPEN,CLOSE,LOW,0,1),colorgreen;
STICKLINE(LYSX<0 AND CLOSE>=OPEN,CLOSE,OPEN,3,1),colorgreen;
STICKLINE(LYSX<0 AND CLOSE>=OPEN,CLOSE,HIGH,0,1),colorgreen;
STICKLINE(LYSX<0 AND CLOSE>=OPEN,OPEN,LOW,0,1),colorgreen;
DRAWTEXT(CROSS(LYSX,0),L,'B'),COLORFF99FF;
DRAWTEXT(CROSS(0,LYSX),H,'S'),COLOR33FFCC;
|
