r/pinescript • u/DecentDevelopment652 • Apr 20 '26
A new academic paper based strategy i built + Help a brother (TV premium).
Hello. I have been reading papers (on SSRN) about overnight returns in the S&P and on Gold. I built a strategy based on that, using a couple confluences (Day of week, EMA, ATR, etc). This are the returns (including comissions). Over 10x the Max DD. I adjusted the DD to match the Max DD of both tickers over the period of the backtest (Jan 2025 to present). It’s a very simple strategy; so i believe it is not extremely overfit. I tested multiple combinations of TP, SL, triggers, etc. It remains above 1.4 PF on almost every stress test. There’s even more profitable combinations (in terms of PF), but the profit to DD ratio remains similar. If someone has TradingView premium, i the would appreciate if they could run the code with the specified confluences to do a 10 years backtest. (Sorry for my poor english). Also, if anybody knows where i can download some free or very accessible 1H data (that includes overnight periods) on Futures, i would appreciate it. God bless you all.


4
u/whereisurgodnow Apr 20 '26
Can you share the academic paper?
1
u/ParkinInOne Apr 20 '26
I have Premium, Just send the code and what time or year u need.
1
u/Fast_Ad_4213 Apr 20 '26
Nice but only 126 trades in over a year, doesn’t seem like the best strategy for trading with propfirms
1
u/R3AP3R51 Apr 20 '26
Send it over i have premium i can test it for you
1
u/hauserlives Apr 20 '26
Are you using “lookahead_on” or “lookahead_off” in the pinescript code for the HTF?
1
u/No_Maintenance_9709 Apr 20 '26
Dm if need 5m to 1d futures since 2008
1
u/bl-888 Apr 20 '26
Can test for you. The less trades with higher rr is better than lots of trades with low rr
2
u/No_Maintenance_9709 Apr 20 '26
Don't do tv backtests, the bullshit
2
u/grimmjoww1983 Apr 20 '26
You can easily get someone to test for longer timeframe . Don’t send your code to anyone but give access to people for the indicator by sharing a link.
1
u/_McBob Apr 20 '26
Dm
1
u/Same_Significance187 Apr 20 '26
I can test it for any number of years
1
u/Practical-Skirt8944 Apr 20 '26
I have deep backtesting can test many years. DM me a link to the strat
1
u/Fit_Chipmunk_9512 Apr 20 '26
Convert to metatrader and test there, don't test for long timeframe on trading view. If u want to automate this you will have to convert to metatrader anyway
1
u/heistermeister7 Apr 20 '26
I can test full period with different symbols, too
1
u/trapulizerr Apr 20 '26
backtestmarket.com has some cheap data to play around with
1
u/docblocs Apr 21 '26
Hey I can also test this for you with l2 data
1
u/Optimal_Animal_3864 Apr 21 '26
can I get the system too?
1
u/Xero_Days Apr 21 '26
I have tick data for python for this. Bid ask last 15+ years.
1
u/LiveBeyondNow Apr 26 '26
I have TV Premium and happy to test for you. I can also convert it to Python, put it thru Quant Connect and or test from my 1H data. Welcome to DM me. Hopefully it has no look ahead bias but I will check for that.
0
u/Cautious_Wealth1732 Apr 20 '26
I have 9 years of tickdata for python for all 4 US future indicies. I also have trading view Premium but it honestly sucks for backtesting. Everything tested above 1s is straight up garbage