BBIBOLL

P

popo

New member
Hallo all
I'm a new usethinkscript, I have an indicator I would like possibly converted to thinkscript .Thank you so much.
code:

Code:
CV:=CLOSE;
BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,COLORFFAEC9;
UPR:BBIBOLL+M*STD(BBIBOLL,N),COLORFFC90E;
DWN:BBIBOLL-M*STD(BBIBOLL,N),COLOR0CAEE6;
MA1:MA(CLOSE, M1);
MA2:MA(CLOSE, M2);
MA3:MA(CLOSE, M3);
MA4:MA(CLOSE, M4);
EMA5:EMA(CLOSE,P5),COLOR22C57E;
VAR0:=IF((HIGH OR LOW),CLOSE*VOL,(CLOSE*2+HIGH+LOW)/4*VOL);
VAR1:=SUM(VAR0,89)/SUM(VOL,89);
VAR2:=IF(COUNT(VAR0>0,2)>=2,MA(CLOSE,89)*(1+(MA(VAR0,89)/REF(MA(VAR0,89),1)-1)/21),MA(CLOSE,89));
VAR3:=IF(COUNT(ABS(CLOSE-VAR1)>21,8)>=1 AND COUNT(CLOSE/REF(CLOSE,1)<0.8,8)<1 AND COUNT(VAR0>0,2)>=2,10,0);
VAR4:=IF(CLOSE>=VAR1 AND COUNT(VAR0>0,2)>=2,VAR1*1.001,IF(VAR0<0.1 AND COUNT(VAR0>0,2)<1.5,MA(CLOSE,89),VAR1*0.999));
VAR5:=IF(VAR3>0,VAR2,VAR4);
VAR6:=MA(CLOSE,89);
BS:IF(VAR5/REF(VAR5,1)>1.1 OR VAR5/REF(VAR5,1)<0.9,VAR6,VAR5);
 
Top