-Pine is a specialized language used to write scripts that can take two very different forms: **studies** (a.k.a. **indicators**, as we will name them) or backtesting **strategies**. *Indicators* are used to show graphic information on a chart or in an indicator Pane. If you wish to write a MACD indicator in Pine, you do that by creating a script using the `study()` declaration statement at the beginning of the script. **Strategies** use the `strategy()` declaration statement and can display visual information on charts or Panes in the same way an indicator would, but they also contain additional Pine statements to simulate trades in order to run backtests.
0 commit comments