Convert an Indicator into Strategy in Pine – TradingView Tutorial #indicator #tradingview


steps of Convert an indicator into strategy :

we are trying to load default Bollinger Band indicator from Tradingview and convert it into strategy.

  • Signup to TradingView
  • Load the indicator on chart
  • Click on source code (curly brackets next to indicator title) to load the code into your pine editor.
  • Make copy of the script. Remove the indicator on chart and load your copy of the script from pine editor
  • Replace indicator call with strategy call
  • Define your entry/exit conditions for long and short
  • Add strategy.entry, strategy.exit, strategy.close calls based on the conditions to generate trades on chart

Useful references:


Signup at TradingView:

Pine Reference Manual

Sharing is caring!


DZ4Team is a Web development team, We offer all types of scripts, installing, supporting and hosting. Contact Us:

Leave a Reply