OPEN-SOURCE SCRIPT
Aggiornato FCPO Session-Based Momentum Scalper with ATR Volatility Filter

This strategy is a precision intraday momentum scalping system explicitly designed for futures markets with defined trading sessions (such as FCPO), but it can easily be adapted for any session-based asset like indices or commodities. The core philosophy of this script is to avoid low-probability zones and only capitalize on high-conviction momentum thrusts.
Core Logic & Technical Mechanics:
Price Action Momentum: The strategy relies heavily on candlestick anatomy rather than lagging indicators. It calculates the minimum body-to-range ratio and raw body size. An entry is triggered only when a candle closes with a highly dominant body, confirming directional institutional momentum.
ATR Volatility Window: A 14-period Average True Range (ATR) is utilized not for trailing stops, but as a Volatility Filter. The script requires the ATR to be within a specific "Floor" and "Ceiling". This prevents the system from entering trades during dead/flat markets (avoiding theta burn) and extreme whipsaw events.
Macro Context: A standard 200 Simple Moving Average (SMA) is plotted to provide the user with macro-trend context, while the strategy executes on micro-momentum.
Advanced Risk & Session Management:
Precision Time Exclusions: The script features highly customizable time filters. It blocks new entries during mathematically proven volatile periods, such as the final hour of trading on Fridays (profit-taking whipsaws) and the last 30 minutes of the daily session.
Smart EOD Liquidation: To eliminate overnight gap exposure, the strategy includes an automated End-Of-Day (EOD) force-exit mechanism that flattens all active positions 5 minutes before the daily session closes.
Dynamic Circuit Breakers: It includes an advanced money management module that automatically halts trading if a daily maximum trade limit is reached, or if the user hits their monthly profit/loss target threshold.
How to Use:
Designed optimally for the 5-minute and 15-minute timeframes.
Customize your specific market's Morning and Afternoon session hours in the settings.
Adjust the ATR limits depending on your asset's average daily range.
Disclaimer: This script is for educational and backtesting purposes. Past performance is not indicative of future results. Always practice proper risk management.
Tips Tambahan:
Core Logic & Technical Mechanics:
Price Action Momentum: The strategy relies heavily on candlestick anatomy rather than lagging indicators. It calculates the minimum body-to-range ratio and raw body size. An entry is triggered only when a candle closes with a highly dominant body, confirming directional institutional momentum.
ATR Volatility Window: A 14-period Average True Range (ATR) is utilized not for trailing stops, but as a Volatility Filter. The script requires the ATR to be within a specific "Floor" and "Ceiling". This prevents the system from entering trades during dead/flat markets (avoiding theta burn) and extreme whipsaw events.
Macro Context: A standard 200 Simple Moving Average (SMA) is plotted to provide the user with macro-trend context, while the strategy executes on micro-momentum.
Advanced Risk & Session Management:
Precision Time Exclusions: The script features highly customizable time filters. It blocks new entries during mathematically proven volatile periods, such as the final hour of trading on Fridays (profit-taking whipsaws) and the last 30 minutes of the daily session.
Smart EOD Liquidation: To eliminate overnight gap exposure, the strategy includes an automated End-Of-Day (EOD) force-exit mechanism that flattens all active positions 5 minutes before the daily session closes.
Dynamic Circuit Breakers: It includes an advanced money management module that automatically halts trading if a daily maximum trade limit is reached, or if the user hits their monthly profit/loss target threshold.
How to Use:
Designed optimally for the 5-minute and 15-minute timeframes.
Customize your specific market's Morning and Afternoon session hours in the settings.
Adjust the ATR limits depending on your asset's average daily range.
Disclaimer: This script is for educational and backtesting purposes. Past performance is not indicative of future results. Always practice proper risk management.
Tips Tambahan:
Note di rilascio
ADD TRENDLINEScript open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.