menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Technology News

>

5 Pine Scr...
source image

Medium

1M

read

81

img
dot

Image Credit: Medium

5 Pine Script Mistakes That Are Costing You Money (And How to Fix Them)

  • Running Pine Script on live charts can lead to costly mistakes such as repainted signals, missed entries, and erroneous trades.
  • The article highlights 5 common Pine Script mistakes and provides solutions to fix them.
  • One of the mistakes is using the close price for generating signals, which can result in false buy/sell signals. The fix is to use hl2 (average of high and low) or bar_index for more accurate signals.
  • Another mistake is lookahead bias, where the script relies on future data during backtesting. The fix is to use bar_index carefully and reference previous bars to avoid this issue.

Read Full Article

like

4 Likes

For uninterrupted reading, download the app