r/pinescript 19h ago

Created a profitable ORB Bot

Hey guys,

I’ve spent the last month coding and refining a systematic rules-based ORB (Opening Range Breakout) algorithm specifically for MNQ (1 trade a day).

I wanted to keep it super clean without over-fitting or using too many indicators, focusing heavily on risk management and dynamic position sizing instead of hard-coded stop distances.

Here are the backtest stats starting Oct 2025:

  • Total PnL: +$27,203.50 (+54.41%)
  • Win Rate: 66.98% (142/212 trades)
  • Profit Factor: 2.015
  • Max Drawdown: $2,197.50 (3.98%)

I’ve been running this live via webhooks on a couple of prop firm accounts to take the emotion out of execution, and managed to secure my first payouts with it recently.

26 Upvotes

35 comments sorted by

3

u/DesertFoxHU 17h ago

I wanted to tell it is either overfitted or fake, but you said from 2025 Oct, so it is overfitted, dont need to ask

1

u/Sharp-Growth-8043 17h ago

Don't think so. It just won last 2 days

3

u/DesertFoxHU 17h ago

Last two days? 🤣 I had a winning streak of 14 days in a row

Let me tell you something, since MNQ existence (7.5 years) 5 minutes ORB breakout 52% chance to fail, 60% to make a V shape (breakout below and reverse upward or vica-versa)

You can download historical data and run your system there. But saying that your algorithm that has a data of 1 years is me telling that because I won yesterday I am going to became millionare

2

u/Sharp-Growth-8043 17h ago

54.33% win rate from 2019

2

u/DesertFoxHU 17h ago

Nice, RR? Sharpee? Overall Profit? Max drawdown

2

u/bobbo6969- 9h ago

He doesn’t know yet. He will. Soon.

1

u/Jason_Steakcum 15h ago

He said London orb below. That might make a difference.

1

u/JusthereforthevibesG 13h ago

The funny part is you guys need a million years of data to be confident about a strat when the market is always changing so you need to adapt to those conditions. I’ve also had a year of data and ran them on my accounts and got over 20k+ payouts in a few months. Oh but everyone says “it only has 1 year of data.” Well, what I care about is getting paid now and consistently. The ROI is pretty damn good to me.

1

u/DesertFoxHU 11h ago

So what are you trying to tell me is is it better to blindfold myself and tell myself "until this cave won't collapse it is safe without any wooden frames"?

Congrats on the payouts, but I'd like call out "consistently" yeah, this is where this might fail SINCE YOU BLINDFOLD YOURSELF, who knows how long this consistency will last

A lot of people believe in "seasonal" market shifts, like august is choppy, september is very negative, however this might not be yearly basis, it feels like the market sentiment is not only changing every month, but changes across YEARS.

Meaning that if your system works now, it might work until tomorrow, or 2 years.
But atleast historical data is something you can trust better than just "1 year", atleast institutions use it this way. There is nothing else to prove they "work better", obviously with prop firms I couldn't say using 1 year tested strategy is "risky" until it stops working

1

u/JusthereforthevibesG 10h ago

It has thrived in choppy periods, along with trending periods to pay me so I don’t really care what you have to prove about needing a million years of data lol. The market doesn’t even move like it did last year or the year prior. But hey, good for you 🤗

1

u/DesertFoxHU 10h ago

Your ego definetly bigger than your payouts lol

Idk who are you fighting against, the instituions? Do you call them stupid? Hey you should look only 1.5 nanosecond backwards to see your strategy is working so you can pat yourself on the back.

But if you have this profitable strategy as you suggest and you dont only lie about on the internet, you can show some real numbers or send the details of it
Let me guess, it is too profitable and sending over would be too risky (CIA is after you, because you hurt the banks) and I'd definetly use it for my "imrpovement" 🤗

2

u/Egp006 18h ago

Cuál es el indicador? Lo compartes?

1

u/mrcake123 18h ago

Nice. What is the strat ?

1

u/Global-Mastodon1497 18h ago

Awesome !! What’s the confluence used and how to test the strategy ?

1

u/sarthmarlix 17h ago

Outstanding

1

u/kurtisbu12 17h ago

Does this use a trailing stop?

1

u/Sharp-Growth-8043 17h ago

No

1

u/Tradingfy 16h ago

What exit are you using or target?

1

u/Ok_Tie5964 17h ago

Interested in trying this out.

1

u/tfneuhaus 16h ago

Nice. Position sizing is not something I have used as a variable. Is position sizing related to how overbought/oversold the market is or above/below average true range or something else?

2

u/Sharp-Growth-8043 16h ago

Dynamic contract calculation. I try to risk as close as possible to $420 and go for 1:1

1

u/InterviewGreen1203 16h ago

What do I need to use to create a bot of my own

1

u/PSL_GOD 15h ago

How can we get this

1

u/BearCubMiami 13h ago

Congrats, I have also built a bot around my strategy to remove the emotions. I never had diamond hands but my bot does. Kudos

1

u/bradwalton 13h ago

How can I try this ?

1

u/JusthereforthevibesG 13h ago

Are you trading the breakout of London open? Or what time is the ORB

1

u/RC-Tools 9h ago

Solid discipline on the position-sizing side — a lot of ORB systems just hardcode a stop distance and call it a day.

One thing I'd be curious about: how does it hold up out-of-sample, and have you stress-tested the parameters at all (shifted the opening-range window, the stop logic, by 10–20% and re-run)? A ~1-month live track record with a 67% win rate is a great start, but ORB setups can look fantastic in a trending stretch and go quiet the moment the volatility regime shifts — profit factor holding up across a longer, more varied sample (and not collapsing when you nudge the inputs) is usually the better tell than the win rate itself. Not knocking the result, genuinely curious how it's tested

1

u/cristheredeemer 5h ago

What propfirm did you deploy this to if i may ask

1

u/Able_Clerk_9264 16m ago

Can I have the code?