Gold Smc Apex Scalping h1
- Experts
- Chaibadee Dechtanankul
- Versione: 4.90
- Attivazioni: 10
Here is a breakdown of how the GOLD SMC APEX SCALPER (H1 BUY EDITION) operates specifically on the H1 (1-Hour) timeframe.
This Expert Advisor (EA) uses a hybrid approach, combining Smart Money Concepts (SMC) for entry zones with a Grid & Martingale system for trade execution and recovery.
1. Execution on the H1 Timeframe (The "New Bar" Rule)
-
Strict H1 Lock: The EA checks its environment during initialization ( OnInit ). If you attach it to any timeframe other than H1, it will trigger an alert and refuse to run.
-
Hourly Processing: To save CPU resources and avoid erratic tick-by-tick false signals, the core strategy logic only triggers once per hour when a new H1 candle opens (handled by the IsNewBar function).
2. Identifying the Trend (Market Structure / BOS)
When a new H1 candle opens, the EA evaluates the market structure to confirm a bullish trend:
-
It calculates the highest high and lowest low of the last 12 hours (defined by InpZigZagLen = 12 ).
- 🛑 End-of-Month Trading Halt: Do not trade during the last week of the month. During this period, major central banks, hedge funds, and institutional liquidity providers close their books and adjust their portfolios for the month. This institutional "profit-taking" creates highly erratic, unpredictable volatility and false breakouts that ignore standard technical analysis. To protect your profits and avoid unnecessary drawdowns, it is highly recommended to pause the EA during the final 5-7 days of every month.
Break of Structure (BOS): If the close of the most recently completed H1 candle is higher than the previous highest high, the EA confirms a Bullish Trend ( market_trend = 1 ).
-
If the price breaks below the previous lowest low, it resets the trend to neutral ( market_trend = 0 ) to prevent buying in a downtrend.
3. Locating the Bullish Order Block (Entry Zone)
Once a bullish trend is confirmed, the EA hunts for a "Bullish Order Block" (OB) to use as its buying zone:
-
It scans the last 20 H1 candles to find the last bearish candle (where the opening price was higher than the closing price) right before the upward breakout.
-
The highest ( ob_top ) and lowest ( ob_bottom ) prices of this specific bearish candle become the designated zone for the EA to place its pending orders.
4. The "Smart Grid" Execution (Scaling In)
Instead of placing a single trade at the Order Block, the EA deploys a strategic grid of pending orders inside it:
-
Order Distribution: It deletes any old pending orders and splits the entry into 20 different Buy Limit orders ( InpGridLevels = 20 ), distributed evenly between the top and bottom of the Order Block.
-
Martingale Multiplier: As the price drops deeper into the Order Block, the size of each subsequent Buy Limit order increases by a factor of 1.3 ( InpLotMultiplier = 1.3 ). This ensures that if the price reverses from the bottom of the block, the heavier bottom trades will quickly pull the average entry price down.
5. Smart Recovery System (Exit Strategy)
The EA does not rely heavily on individual Take Profit targets. Instead, it uses a "Basket Profit" approach:
-
Every time the price moves (on every tick), the CheckSmartRecovery function calculates the total combined profit of all open Buy orders.
-
If the total floating profit reaches $15.00 ( InpBasketProfit = 15.0 ), the EA instantly closes all active trades to secure the profit and deletes all remaining un-triggered Buy Limit orders.
6. Time and Session Filters
-
The EA is programmed to only open new grid formations during specific hours. By default, it operates between 06:18 and 22:00 ( InpStartHour1 to InpEndHour1 ). If a valid Order Block forms outside these hours, the EA will ignore it.
Summary of the flow: Wait for a new H1 candle -> Look for price to break previous highs -> Find the bearish candle that started the move -> Lay a trap of 20 Buy Limit orders inside that candle -> Wait for price to retrace into the trap -> Close everything once the total profit hits $15.
🛑 End-of-Month Trading Halt: Do not trade during the last week of the month. During this period, major central banks, hedge funds, and institutional liquidity providers close their books and adjust their portfolios for the month. This institutional "profit-taking" creates highly erratic, unpredictable volatility and false breakouts that ignore standard technical analysis. To protect your profits and avoid unnecessary drawdowns, it is highly recommended to pause the EA during the final 5-7 days of every month.