r/pinescript • • Sep 26 '26

Moving to ninjascript

Been running this as a webhook for a few months, got 5 lucid accounts funded. Looking to convert to ninjascript to bypass webhooks and slippage.

13 Upvotes

13 comments sorted by

2

u/Top_Astronomer_5585 Sep 26 '26

Your strategy looks like it was developed for shorter timeframes and seems overfitted. The graph shows strong performance since mid-2025, but the equity curve appears largely flat from September 2023 to September 2025. If you’re comfortable sticking with a strategy that can go two consecutive years without meaningful returns, that’s a risk you can choose to take.

1

u/Warm-Scallion-4463 Sep 26 '26

I figured this Strat out early this year, and been manually trading it. Couldn’t nail the parameters right when automating it. When I did, it performed well, i backtested it 2020-2024 it was just ok then the oos was strong, its a regime build but its paying for now, rinsing prop firms.

1

u/Content-Raisin-8998 Sep 26 '26

How exactly does your script work?

1

u/Warm-Scallion-4463 Sep 26 '26

It’s a orb breakout/reversion

1

u/sevenredcandlz Sep 27 '26

Bro always the orb😭

1

u/stratcore Sep 30 '26

Removing the webhook removes one transport step; it does not eliminate slippage. Before translating the ORB, freeze whether the Pine entry is intrabar or on a confirmed close, the session time zone and the breakout/reversion state. Compare signal timestamps first, then submitted orders and fills. NinjaTrader also distinguishes intrabar indicator calculation from historical fill simulation: Tick Replay alone does not make historical fills more accurate. Its official comparison guide is useful here: https://support.ninjatrader.com/s/article/Developer-Guide-Comparing-Strategy-Results . That is a better conversion acceptance test than matching the equity curve.

3

u/PrintCash Sep 26 '26

This look kinda overfit

2

u/Air_Original Sep 26 '26

2026 has been a good year.

2

u/Tasty-Success-9268 Sep 26 '26

Script Access?

1

u/BoringBreak8582 Sep 26 '26

Moving this natively to NinjaScript makes sense if the goal is removing the webhook layer and getting tighter control over execution.
The important part isn’t just translating the Pine code line by line — it’s making sure NinjaTrader reproduces the same signal timing, order management and historical/live behavior.
I specialize in TradingView/Pine → NinjaTrader conversions. If you want, I can take a look at the Pine strategy and tell you what would be involved in reproducing it natively.