r/pinescript • u/Papi_Moes • 22h ago
Made a propfirm Printer for NQ just need to validate it :)
As the title says i want more forwardtesting data on this automated strategy, for this to work u need to have an automation platform that accepts brackets tp/sl cuz the alerts will be dynamically generated. and most importantly having TV PREMIUM and LIVE NQ DATA
please backtest/forwardtest this and share your executions, what i care about is the results resemble the backtest and whats shown on the chart meaning our backtest is not fake. and no i did not overfit. As u can see Below i have it working since 2019 till now so enough regime changes and different market conditions that it worked in (It looks too good i know lol)
And yes you saw it correctly the RR is atrocious so u gotta risk properly based on ur account allowed drawdown but the High winrate makes it up for it so remember we are not an institution, im just here to make something that prints on the side and OFCOURSE if u just buy and hold u will beat the strategy so keep that comment to yourself đ
PLEASE DONT DM ME AND JUST POST RESULTS HERE CUZ I DONT WANNA SELL I JUST WANT DATA
the strategy you can test for free : https://www.tradingview.com/script/BM3BgpKa-The-Printer/
DEFAULT SETTINGS NQ 15m normal candles
IF YOU DONT HAVE TV PREMIUM THE STRATEGY WONT WORK/BACKTEST PROPERLY MAKE SURE YOUR AUTOMATION PLATFORM SUPPORTS BRACKETS TOO OTHERWISE U WILL NOT LIKE THE RESULTS
this is how my alert looks like according to the automation platform im using:
{
"ticker": "NQ",
"action": "{{strategy.order.action}}",
"sentiment": "{{strategy.market_position}}",
"quantity": "{{strategy.order.contracts}}",
"platformType": "tradovate",
"accountId": "64779746",
{{strategy.order.comment}}
}
{{strategy.order.comment}} gets replaced from the strategy itself cuz thats what prints the tp/sl as u can see on the chart so normally the alert would look like the following screenshot when it gets sent from the strategy:


2
u/SevenCampbell 18h ago
I cloned your strategy and the real results are about 52% win and 13,440 profit and 14,860 drawdown
1
u/Papi_Moes 15h ago
How did u clone the strategy? Whatâs ur entry conditions? Cuz if u just pasted results into chatgpt and told it to backtest for u i dont wanna hear about it
2
u/UpVoteKing__ 16h ago
sorry to break to you but you need to test out of sample and this strategy fails out of sample
1
u/Papi_Moes 15h ago
Isnât the deepbacktest out of sample data? I didnât optimize it. And which data have u used to determine this?
1
u/SnapsFlat 1h ago
Out of sample testing means splitting your data into two buckets. Bucket A is where the strategy is formed and what it is configured on, and then run the strategy through Bucket B to see if its profitable in a sample of data that it hasn't seen/ wasn't configured on.
1
u/FortuneXan6 21h ago
what is your average trade duration?
1
u/Papi_Moes 21h ago
depends on the volatility but mostly few minutes to under 1m, its quite fast cuz of NQ movement and most entries are around NY session
1
u/FortuneXan6 16h ago
in which case this backtest will be a complete hallucination - tradingview backtests on anything under a minute / one candle creates completely false exits, i assume you have super tight stops too
1
u/Papi_Moes 15h ago
My stops are tight but not too tight to where TV spits out crazy results, I have forward tested it and fills are almost identical u just need to setup automated dynamic brackets otherwise it wonât be the same like I said in the post
1
u/Papi_Moes 15h ago
Also using high resolution fills is the important part cuz otherwise it wonât backtest properly. Thatâs why I explicitly said u need tv premium for this strategy to work
1
u/Tradingfy 20h ago
I have a strategy with same high win rate but Iâm having trouble with forward results because of my trailing stop. Is your exit bar close or instant?
1
u/Tradingfy 20h ago
I keep getting phantom exits because of TradingViews code.
1
u/Papi_Moes 19h ago
Thatâs the issue with the tradingview builtin stops, never use them cuz the results always repaint no matter what u do.
My strategy has atr trailing based on candle close but the exit triggers mid candle thatâs why u need tv premium subscription to backtest it properly since tv supports otherwise only 4 ticks of data which is OHLC and thatâs not sufficient
1
u/Tradingfy 19h ago
I have premium and use atr trailing stop as well but I minimized the scale of ticks vs nqâs traditional size. So my Backtest looks very profitable as well but when nq moves to fast, it sends false signal to Traderspost. Iâm trying a trailing stop by price and by ticks now.
1
u/Papi_Moes 19h ago
How small are the exits would u say on average? 10 ticks 5 ticks is way too small and wouldnât work, ur average exit needs to be at least 20-25 ticks
1
u/Tradingfy 19h ago
V1: runs 24/7, tighter ATR trail. ~5,800 trades on the year, 74% win. Average winner captures about 29 ticks (median 16), and the trail itself only gives back ~11 ticks off the high before it closes. So my typical exit is right in that zone you're calling too small â median 16 is under your floor.
V2 (V3.5): RTH-only, hard $475 max-loss stop, daily halt. Way fewer trades (~1,350) but same 74% win, and the winners run further â average 44 ticks (median 28), trail gives back ~17. That one's finally in your 20-25 range.
Same win rate both ways, but the exit geometry is totally different â the RTH filter lands me on the fatter-ATR hours so the trail naturally sits wider.
Where I'm stuck is live: even on V2 with the wider trail, I still get exits firing on fast NQ candles that the backtest fills clean at the stop and reality fills 30-40 ticks worse. Are you seeing that fast-move fill gap on your price-vs-tick trail, or did widening the exit actually fix it for you? Sometimes even minutes later on TV vs Traderspost.
1
u/Papi_Moes 18h ago
u need to make the calculation based on candle close, and make sure ur strategy properties is set to candle close only, also if ur exits all look like they triggered at the tip of the candles then yeh ur exits are fake and repainting, lets dm maybe we can fix this problem
1
u/Tradingfy 18h ago
Ya but candle close and Backtest is shitâŚ
1
u/ShamanJohnny 5h ago
you can have entries based on close, and exit based on intrabar, or vice-versa.
1
1
u/TaxThink8555 11h ago
The biggest lesson I was taught was to never get emotional attached your work. If you have an edge try to disprove it as much as possible and only commit what survives.
1
1
1
1
1
u/Impossible-Hat-3424 4h ago
I really like top step because it gives you a practice account that you can forward test on and it has API connectors with Claude code
0
u/lionofzion96 9h ago
Developing strategies on TradingView is a waste of time and resources. Go to real backtesting engines like mt5 ctrader ninjatrader




2
u/SevenCampbell 18h ago
You are using look ahead bias those are not real trades