0

in this I got error. I would choose if dispaly "arrows" or background color. But I got error on first plotshape. Do u have the solution?

    'display_mode = input.string(title="Display Mode ?", defval="PlotSignals", options=["PlotSignals", "Color Only"]) 

if (display_mode == "PlotSignals")
plotshape(longsignal, style=shape.triangleup, location=location.belowbar, color=color.yellow, size=size.small, text='BUY', textcolor=color.new(color.white, 0))      //plotting up arrow when buy/long conditions met 
plotshape(shortsignal, style=shape.triangledown, location=location.abovebar, color=color.orange, size=size.small, text='SELL', textcolor=color.new(color.white, 0))  //plotting down arrow when sell/short conditions met

backgroundcolor = color(na)
if (display_mode == "Color Only")
  if ma1 > averagedV
    backgroundcolor := color.green
  else
    backgroundcolor := color.red
bgcolor(backgroundcolor, transp = 90)'
Dominique
  • 16,450
  • 15
  • 56
  • 112

0 Answers0