-2

i have RSI strategy which buys when oversold. is there a way to code that only submits buy order if stock is above 200 ma. i have taken two courses on pine script but can not work out how to do it.

  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Sep 06 '21 at 16:44

1 Answers1

0

look at this, done that few days back, similer to your question.

How to write the script to plot only the buy MACD signals when SMA 50 crossabove SMA 200

SafetyHammer
  • 391
  • 3
  • 5