Godfather Future Predictor EA
- Experts
- Afjal Hussain Swapan
- 버전: 12.1
- 활성화: 5
Godfather Future Predictor EA – Logic Description
This Expert Advisor combines two independent trading systems (Secret Profit VIP and Future Predictor Green) that can be enabled/disabled separately. Both systems trade on the same symbol but use different magic numbers, entry logic, and risk management.
1. Risk & Money Management
-
Lot size calculation – If UseManualLot = false , lot size is computed based on account balance, risk percentage ( Risk ), tick value, and symbol digit scaling ( D ).
Lot = Balance / 10 * Risk / (TickValue * 100 * D)
Clamped to symbol min/max lot. -
If manual lot is enabled, the fixed Lots value is used.
2. Green EA Logic (Dynamic Price Reference)
Purpose – Trade breakouts from a dynamic reference price, with optional timer reset.
-
Reference price ( GreenPrice ) is initially set to current Bid.
-
Timer ( GreenOpenTimer seconds) – after each reset, the reference price is frozen for that period.
-
Entry signals (calculated every tick during allowed hours):
-
GoBuyGreen = Bid ≥ GreenPrice + (PipsStep × Point)
-
GoSellGreen = Bid ≤ GreenPrice – (PipsStep × Point)
-
-
After the timer expires, GreenPrice is updated to current Bid and the timer restarts.
3. VIP EA Logic (Bar‑Based Reference)
Purpose – Trade when price moves a certain distance away from the last bar’s close.
-
Reference price ( VIPDPrice ) = Close[0] of the current (forming) bar.
-
Captured once per second ( VIPDTime ), not per tick.
-
Entry signals:
-
GoSellVIP = Close[0] ≤ VIPDPrice – (BarPips × Point)
-
GoBuyVIP = Close[0] ≥ VIPDPrice + (BarPips × Point)
-
4. Order Execution (Both Systems)
Each system follows the same pattern:
-
Initial entry – Only if no open position ( Count(-1, magic) == 0 ) and no historical order on the same bar ( CountBarHist(-1, magic) == 0 ).
Opens one market order (SELL or BUY) depending on the signal. -
Grid / add‑order logic – If the system already has a position in the same direction and the signal persists, it adds another order (same direction) provided:
-
Account order limit is not reached.
-
No order was opened on the current bar already ( CountBar(-1, magic) == 0 ).
For VIP EA, this grid behaviour is optional ( UseAddOrder ).
-
5. Position Management & Exit Rules
Green EA
-
Take profit – Closes all positions when total profit ≥ totalLots × GreenTakeProfit and at least 2 positions exist.
-
Stop loss – If total profit falls below (Balance / 100) × GreenStopLoss (negative), close all.
-
Trailing stop – Only when exactly 1 position exists and GreenTral != 0 .
Trailing start distance = GreenTralStart ; trailing step = GreenTral .
VIP EA
-
Take profit – Same as Green EA, but using VIPTakeProfit .
-
Stop loss – Same formula, using VIPStopLoss .
-
Trailing stop – Same as Green EA, but with VIPTral and VIPTralStart .
6. General Filters & Execution
-
Trading hours – Orders are only evaluated between TimeStart and TimeEnd (hour of the day).
-
Timer ( TimerSpeed ms) – calls OnTick() repeatedly, ensuring fast reaction.
-
Order selection – Helper functions ( Count , AllLots , ProfitAll , etc.) work separately per magic number.
-
No overlapping – The two systems never interfere because they use different magic numbers and independent signal flags.
