Pine

Displaying Pine Script indicator overlaying the price or in a separate chart.

Depending on the type of your indicator, you might want to plot it on top of your price or in a separate pane. If your indicator has the same scale as your data, you might want it to display on top, for example, BB, SMA, or Ichimoku cloud. If the scale is completely different, you …

Displaying Pine Script indicator overlaying the price or in a separate chart. Read More »

The function ‘XXXX’ should be called on each calculation for consistency. It is recommended to extract the call from this scope

Ever come across the following warning message in Pine Script? It happens quite often for some developers. The function ‘XXX’ should be called on each calculation for consistency. It is recommended to extract the call from this scope. This is not an error per se but rather a warning, which means your script will still …

The function ‘XXXX’ should be called on each calculation for consistency. It is recommended to extract the call from this scope Read More »