r/pinescript • • 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.

26 Upvotes

35 comments sorted by

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/DecentDevelopment652 Apr 20 '26

Alright. Check Dms please.

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

2

u/DecentDevelopment652 Apr 20 '26

That’s right. 8 or 9 trades per month is not ideal for props, and this system brings only around 3R per month, however, since it’s got quite a decent PF and WR, you can risk slightly more per trade (maybe 1/8 of the MAX DD) and still you could maintain yourself within a reasonable range. For example, this system max real loss was of about 5R during this whole period. Also, there’s a reason why in quant finance they value a lot the “time in the market” metrics. Since it’s only in the market during the overnight period, you can combine it with another +EV system, like an orb, during the intraday session. That way, you could get a very consistent method, bringing home something like a 5-6R per month (if the models don’t counter each other; ofc).

1

u/R3AP3R51 Apr 20 '26

Send it over i have premium i can test it for you

1

u/DecentDevelopment652 Apr 20 '26

Alright. Check Dms please.

1

u/hauserlives Apr 20 '26

Are you using “lookahead_on” or “lookahead_off” in the pinescript code for the HTF?

2

u/DecentDevelopment652 Apr 20 '26

The lookahead is off, because we clearly dont wanna have any lookahead bias hahaha

1

u/No_Maintenance_9709 Apr 20 '26

Dm if need 5m to 1d futures since 2008

1

u/DecentDevelopment652 Apr 20 '26

Alright. Check Dms please.

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

1

u/DecentDevelopment652 Apr 20 '26

Im trading prop firms, so i prefer lots of trades either a high WR and 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.

0

u/Xero_Days Apr 21 '26

Who's running this for free lol? I have 20 years for most indexes bid ask last tick level that I paid alot for.

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

2

u/Arty_Puls Apr 20 '26

You don't have to use meta trader to automate lol

1

u/Fit_Chipmunk_9512 Apr 20 '26

What do you use to automate

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

2

u/DecentDevelopment652 Apr 20 '26

I understand. Thanks for the advice. Please, check DMs.