jeudi 28 octobre 2021

Pine Script help if statements

I am having compiling errors with this if statement and plotshape any help would be appreciated.

//Produces Green and Red BUY an SELL signal triangles
if syminfo.ticker == "EURUSD"
     bullishSetup = crosslower
     bearishSetup = crossupper
     plotshape(bullishSetup ? 1 :na, style=shape.triangleup, color=color.green,  
       size=size.tiny, location=location.belowbar, title="Bullish Signal")
     plotshape(bearishSetup ? 1 :na, style=shape.triangledown, color=color.red, 
       size=size.tiny, location=location.abovebar, title="Bearish Signal")

Aucun commentaire:

Enregistrer un commentaire