eisiParticipant
Average
robertogozzi wrote that code. thank u again.
can anybody please help me this code turn into a screener. i want to see a signal ALL THE TIME. so if the indicator turns green in the screener it should be shown as a long signal all the time until it turns red (short). not only when it turns green. then again it should in the screener be shown as short until it turns again.
thank u in anvance
ONCE Red = 0
ONCE Green = 0
ONCE Blue = 0
ONCE Fade = 0
ONCE BBVal = 20 //20 BB periods
ONCE BBdev = 2.0 //2.0 BB Deviation
BBavg = Average[BBval,0](close) //BB mean (middle line) 0=sma
BollUP = BBavg + ((std[BBval](close)) * BBdev)//Bollinger Upper Band
BollDN = BBavg - ((std[BBval](close)) * BBdev)//Bollinger Lower Band
IF close >= BollUP THEN
Red = 0
Green = 255
Blue = 0
Fade = 32
ELSIF close <= BollDN THEN
Red = 255
Green = 0
Blue = 0
Fade = 32
ENDIF
BackgroundColor(Red,Green,Blue,Fade)
RETURN
There you go:
ONCE BBVal = 20 //20 BB periods
ONCE BBdev = 2.0 //2.0 BB Deviation
BBavg = Average[BBval,0](close) //BB mean (middle line) 0=sma
BollUP = BBavg + ((std[BBval](close)) * BBdev)//Bollinger Upper Band
BollDN = BBavg - ((std[BBval](close)) * BBdev)//Bollinger Lower Band
IF close >= BollUP THEN
Result = 1
ELSIF close <= BollDN THEN
Result = 2
ENDIF
SCREENER[Result] (Result AS "1=Up/2=Dn")