OPEN-SOURCE SCRIPT
5m ORB with Dynamic Position Size and Target

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.
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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.