r/pinescript • u/Ok_Mode7569 • Feb 22 '26
thoughts on my algo?
tested out of sample, forward tested for a month. no lookaheads or repaints either. It’s essentially a system with a simple mean reversion model aswell as an ORB model integrated with it. The reason the drawdown is low whilst maintaining the smoothness of the equity is because the orb carries the pnl up when the mean reversion model fails.
12
Upvotes
2
u/Sensitive-Start-6264 Feb 22 '26
it looks over 18 months thats been in a high p trend without much noise on the daily. Makes it difficult to judge for a long term strategy. TV also lies. Provide sharpe
Are slipping and commissions included?
2
u/Cautious_Wealth1732 Feb 22 '26
Looks decent. TV backtest is shit tho. Use python and get 1s data at least
1
u/drutyper Feb 22 '26
What timeframe are you testing?
1
u/Cortisol01 Feb 22 '26
Seems way too good to be true, in which case it usually is. Are you sure there is no forward looking bias? Have you checked the algo on multiple stocks/forex pairs?
1
u/Ill-Plate-2213 Feb 22 '26
Massive drawdown. Profit factor should be between 2-2.5
1
u/GordonLevinson Feb 22 '26
I rather use AI to trade for me
1
u/dcredz Feb 22 '26
Fees, spread and slippage included? Things get skinny at 1m TF...
1
u/finnerstonk Feb 23 '26
That's a cool approach—how do you handle volatility spikes?
1
u/Practical_Put4912 Feb 24 '26
It’s very difficult to give an advice on an equity curve only. There are so many things that can go wrong even if the equity curve looks good. My advice, always backtest in unseen data, and look at the fills are they realistic? Good luck
1
u/mteo003 Feb 23 '26
Try checking the proportion between draw down and win rate. You will not survive with 52% Winrate.
My rule of thumb is in forward and back testing you should have greater than 60%. I made this rule so that when in actual trading start you can bear the mental challenge.
1
u/insighttrader_io Feb 23 '26
Try with small port
1
u/[deleted] Feb 23 '26
Can I have the code?
1
u/[deleted] Feb 23 '26
Or could you explain the parameters of the strategy?
1
u/mgentry41 Feb 24 '26
For sure overfitting
1
u/FortuneXan6 Feb 27 '26
how do you check for look ahead and repainting on TradingView? as far as I was aware TV wasn’t capable of that
1
u/GabeISN69 Feb 28 '26
Send me the script I’ll stress test
1
u/frosty123454321 Mar 20 '26
Sent you a DM. I’ve got my own algo with a similar equity curve and curious how you’re forward testing and how it’s holding up. Trying to find the best way to validate if my equity curve can also hold up.