I Coded His Strategy. #daytrading

DeltaTrend Trading · Intermediate ·🚀 Entrepreneurship & Startups ·4mo ago

About this lesson

Does the 8AM opening range breakout strategy actually work long-term, when implemented programmatically and executed perfectly? The answer is a resounding no. This video covers how to trade the 8AM ORB as described by @RP.Profits1 , how I implemented it programmatically, and how it performs in a 5-year backtest. We then simulate deployment of the strategy on a prop firm evaluation account to bootstrap statistics regarding pass likelihood, patterns of failure, etc. #openingrangebreakout #orbstrategy #quantitativefinance #quant #finance

Full Transcript

I coded this guy's 8 a.m. opening range breakout strategy in Pinescript to test if the strategy actually works. And here's what I found. In order to do this, I had to parse through some ambiguity in the YouTube videos where he explains his strategy. The first thing that's vague is how he defines the zone break. In this video here, he says that the day's trade direction is defined by which side of the zone price is on at 9:30 a.m. But in this video here, he says that we wait until 9:30 a.m. and then thereafter we look for a break. In pseudo code, those are two distinctly different actions that look like this, respectively. So, what we decide to do is set the daily trade direction at 9:30 a.m. if it's clear, or if we're still inside the zone, we wait for a break outside of that zone plus a certain average true range multiple to make sure there's a little bit of a gap there. I think this is unarguably a good faith implementation of what he was trying to say. With the risk protocol, we have the same thing again. In the first video, he says that we have a 10-point stop loss and we target 40 points. In the other video, he says that he places stops at five points and targets at 15 points always. So, what's the difference? I discovered that he places his stops a little bit differently if there's a session low or high within 5 to 10 points of the entry. So, what we do is something like this in pseudo code. When we're placing our stop loss, we look in a small range. And if we have a session high or low that hasn't been invalidated within that range, we place our stop there. Otherwise, we place it at the default eight points. And then we can target either a four or three RR. So, putting this all together and actually coding it in Pinescript, we get this here. The entire script is about 1,000 lines, and I added some other user inputs so we can be absolutely sure nobody's complaining that I'm doing this wrong. In some videos on TikTok, he requires a clean daily bias. So, if price has broken to both sides of the range before 9:30, he won't trade that range. If you believe that's how he trades, then you can toggle it. You can set the default stop-loss and the default RR multiple. And then you can set a stop-loss management mode. So, we can either keep stops static or what I saw in some YouTube videos, but not other YouTube videos, strangely, is moving the stop loss to break even. We do this when we've moved sufficiently into profit. So, I'll show you an example. In this trade here, we have the 8:00 to 8:15 a.m. candle. Zoom in here. We went down to the midpoint, entered a trade, and then we set our stop loss to break even. Once we moved into profit, the same distance as our stop is from entry. Also notice that on this trade our stop was set 9.1 points instead of eight points from entry because we used the London low to set the stops. Okay, so we cannot move our stop loss. We can move to break even or we can trail the stop loss like this. We enter and then our stop loss trails behind and eventually stops us out. Okay, so if we configure the strategy based on just what he says in these two YouTube videos, then we will have this. Don't require a clean daily bias. He never says anything about that. And then he moves stops to break even on a couple occasions and then he targets a one to three. In those videos he restricts his trading window to 9:00 to 11:00 Eastern Standard Time. And he mentions that ranges are invalid if they're greater than 20 points. Here's what the strategy performance looks like from Jan 1, 2020 to present day. We took 415 trades with 16%

Original Description

Does the 8AM opening range breakout strategy actually work long-term, when implemented programmatically and executed perfectly? The answer is a resounding no. This video covers how to trade the 8AM ORB as described by @RP.Profits1 , how I implemented it programmatically, and how it performs in a 5-year backtest. We then simulate deployment of the strategy on a prop firm evaluation account to bootstrap statistics regarding pass likelihood, patterns of failure, etc. #openingrangebreakout #orbstrategy #quantitativefinance #quant #finance
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
Media Interview
Learn how to prepare for a media interview as an entrepreneur with tips from Dr. Vaneeta Aggarwal's journey
Medium · Startup
📰
From air ambulances to fertility care: How one resignation gave birth to Wakamedics
Learn how a personal experience with childbirth and work inspired the creation of Wakamedics, a startup focused on fertility care and more
Techpoint Africa
📰
Hyperlocal Supply Chains Are Emerging As Hospitality’s Next Big Asset
Hyperlocal supply chains can help hospitality businesses build resilience and reduce volatility, making them a valuable asset
Forbes Innovation
📰
Why Transformation Programs Revert to Old Behaviour Within a Year
Learn why transformation programs often revert to old behavior within a year and what actually drives lasting change
Medium · AI
Up next
Watch this before applying for jobs as a developer.
Tech With Tim
Watch →