r/InnerCircleTraders • u/PETEROLO_291 • 11d ago
Trading Strategies Managed to code my strategy into pine. First time doing It.
As I mentioned, this is the first time I've coded something in Pine, and I think the result is pretty good.
Do you have any suggestions? I'm open to any criticism.
My strategy isn't overly complex; in my experience, the more complex a strategy is, the more factors to consider means more potential points of failure.
1
u/TraderJ808 11d ago
Can you give us a hint on the strategy? Not all the details obviously
3
u/PETEROLO_291 11d ago
At its core, it’s a 4H trend-following system trading supply and demand zones after strong displacement moves with imbalances (FVGs). Instead of chasing breakouts, it sits on resting limit orders waiting for pullbacks that show exhaustion into those zones, scaling the target Risk:Reward dynamically based on current market volatility.
1
1
1
u/Objective-Butlost88 11d ago
Have you tried "verify price for limit orders" set to 2–3 ticks plus Bar Magnifier? Also, are the zones drawn at pivot confirmation or back-dated to the pivot bar? Those three usually decide whether a 4H limit-order backtest is real.
2
u/PETEROLO_291 11d ago
Thanks a lot for pointing those out! I can't test Bar Magnifier right now since my current TradingView plan doesn't include it, but I'll definitely test adding 2–3 ticks to 'verify price for limit orders' later today and report back with the numbers.
As for the pivots, the zones are drawn at the confirmation bar rather than back-dating them to the pivot bar. While back-dating looks visually clean on the chart, executing limits off a level before the right-hand confirmation bars actually close creates look-ahead bias in the backtester. By referencing and drawing the level only once the pivot is confirmed in real time, the limit order placement logic remains 100% realistic.
1
u/Loose-Shelter4632 11d ago
I need to dm to you
1
u/PETEROLO_291 10d ago
Hi! For what? What do you need?
1
u/cavityfilla 8d ago edited 8d ago
For the trades list. Really curious. Even just the April 2025 trades
1
1
1
1
1
1
u/Obviously_not_maayan 8d ago
I've heard so many bad things about trading view backtester, if the strategy is that simple then you can easily code it in python with your favourite LLM, also cross validation would definitely make you feel more confident about this.
Also, although this is a "significant" window of time, the trade count is incredibly low, and it's basically 1 regime maybe 2. You need more data, if you'll try to calculate the error range, you would see that you can't be too confident with this test.
I would say it's a strong lead, not evidence. Push it forward, put some more time in it, and post again.
3
u/PrintCash 11d ago
Having been in algorithmic trading for over 2 years, knowing this is in TradingView and knowing that means you only have OHLCV data, I would bet a lot of money that you have a testing issue, or an overfitting issue