TradingView
capissimo
20 aug 2019 23:40

Forecasting - Least Squares Regression 

Euro / U.S. DollarFOREX.com

Beskrivning

Tested on 5m TF with EURUSD. Settings should be modified appropriately for other TFs, lookbacks and securities. This indicator does not repaint.

Versionsinformation

Added repainting/non-repainting option.
Kommentarer
LuisJnr
While the entries aren´t repainting, the exits are. Could you explain why, please? Maybe I am just wrong
pale81
Great thing, thank you. My experience say if you have a profitability of 90% or something like this, it repaints and the backtest is not reliable.
regards
capissimo
@pale81, the only thing that may cause repainting here is the clause (abs(close-close[2])>syminfo.mintick*2). Try to rem this clause
capissimo
@capissimo, and use higher TFs
Mer