OPEN-SOURCE SCRIPT
Position Size Calculator (For Breakout/Pullback Immediate Entry)

This is a trading script designed specifically for swing traders who use the Low of the Day (LOD) as their stop loss — a strategy employed by legendary traders such as Oliver Kell, Maggie, and many other professional market operators.
The core purpose of this script is to deliver instant and accurate share quantity calculations at the exact moment of a breakout or pullback entry. It eliminates time-consuming manual calculations, allowing you to execute your orders quickly and avoid missing the optimal entry price as the stock price often surges within minutes.
The script is self-explanatory. Shares to buy = Risk per Trade / Difference to LOD. If it shows "BAD", it means either Difference to LOD > half of ATR or 5%
The core purpose of this script is to deliver instant and accurate share quantity calculations at the exact moment of a breakout or pullback entry. It eliminates time-consuming manual calculations, allowing you to execute your orders quickly and avoid missing the optimal entry price as the stock price often surges within minutes.
The script is self-explanatory. Shares to buy = Risk per Trade / Difference to LOD. If it shows "BAD", it means either Difference to LOD > half of ATR or 5%
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 cualquier 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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga 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 cualquier 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 u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.