OPEN-SOURCE SCRIPT

5m ORB with Dynamic Position Size and Target

115
This script is based off of the 5 minute high and low (opening range) of the NY session, specifically developed for ES/MES. It marks the high and low of the first five minutes of trading, as well as marks profit targets if price breaks out high or low.

In settings you can configure the maximum capital to risk, high volatility target and regular volatility, and the ORB size in points that indicates if it is a high or normal volatility regime. I use a maximum risk of $500, normal volatility target of 1.5 RR, and a high volatility target of 1.0 RR. The maximum ORB range that I assume is normal volatility is 20 points, so below 20 points it targets 1.5 RR, above it targets 1.0 RR.

For illustrative purposes, I will outline my current strategy below. This is not financial advice, obviously.

When price breaks out of the 5 minute opening range, I enter in the direction of the move (break out of the high, I enter long; break down from low, I enter short). Stop loss is set at one tick outside of the opposite end of the range. I currently exit the full position at the target price, but will be playing around with leaving a runner for trend days.

Again, not financial advice. Be sure to paper trade before committing any real funds.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.