IU Gap Fill Strategy

USER INPUTS
Percentage Difference for Valid Gap - Defines the minimum gap size in percentage terms for a valid trade setup. ( Default is 0.2 )
ATR Length - Sets the lookback period for the Average True Range (ATR) calculation. (default is 14 )
ATR Factor - Determines the multiplier for the trailing stop-loss, helping in risk management. ( Default is 2.00 )
LONG CONDITION
- A gap-up occurs, meaning the current session opens above the previous session’s close.
- The price initially dips below the previous session's close but then recovers and closes above it.
- The gap meets the valid percentage threshold set by the user.
- The bar is not the first or last bar of the session to avoid false signals.
SHORT CONDITION
- A gap-down occurs, meaning the current session opens below the previous session’s close.
- The price initially moves above the previous session’s close but then closes below it.
- The gap meets the valid percentage threshold set by the user.
- The bar is not the first or last bar of the session to avoid false signals.
LONG EXIT
An ATR-based trailing stop-loss is set below the entry price and dynamically adjusts upwards as the price moves in favor of the trade.
The position is closed when the trailing stop-loss is hit.
SHORT EXIT
An ATR-based trailing stop-loss is set above the entry price and dynamically adjusts downwards as the price moves in favor of the trade.
The position is closed when the trailing stop-loss is hit.
WHY IT IS UNIQUE
- Precision in Identifying Gaps - The strategy focuses on real price gaps rather than minor fluctuations.
- Dynamic Risk Management - Uses ATR-based trailing stop-loss to secure profits while allowing the trade to run.
- Versatility - Works on stocks, indices, forex, and any market that experiences session-based gaps.
- Optimized Entry Conditions - Ensures entries are taken only when the price attempts to fill the gap, reducing false signals.
HOW USERS CAN BENEFIT FROM IT
- Enhance Trade Timing - Captures high-probability trade setups based on market inefficiencies caused by gaps.
- Minimize Risk - The ATR trailing stop-loss helps protect gains and limit losses.
- Works in Different Market Conditions - Whether markets are trending or consolidating, the strategy adapts to potential gap fill opportunities.
- Fully Customizable - Users can fine-tune gap percentage, ATR settings, and stop-loss parameters to match their trading style.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.