TriggerLevelRangeEA
- Experts
- Tristan Schiebel
- Versione: 3.0
- Attivazioni: 5
The TriggerLevel Strategy EA is a toolbox for calculating a horizontal trigger level based on two configurable price levels.
From these, it calculates a Trigger Range (between 0% and 100%), determines a Trigger Level in % (e.g., Fibonacci Extension 161%, Fibonacci Retracement 61%, -100%, etc.), and executes Buy/Sell trades in three possible modes: Wick, Limit, or Cross.
The EA works on all timeframes (typically M5) and was designed as a pure price-action system for indices, FX, and metals in intraday trading (e.g., DAX, EURUSD, XAUUSD, etc.).
It is highly suited for prop firms thanks to its strict money and trade management controls.
⚙️ Core Logic
Two selectable price levels (TriggerLevel1 / TriggerLevel2)
→ Define the two reference points of a trading range.
This range can be based on:
-
Time windows (OpenTime and CloseTime)
-
Open levels of specific candles
-
Intraday or weekly Open/High/Low/Close values
-
Various pivot levels, averages, or Min/Max prices
Range Calculation
→ The difference between the two levels forms the TriggerRange;
the higher level equals 100%, the lower equals 0%.
Trigger Level Calculation
→ Based on a configurable EntryMultiplier (%), which can be applied above, within, or below the range (e.g., Fibonacci Extension 161% or Fibo Retracement 61%).
💡 Trade Entry Logic
Usable across multiple timeframes:
-
Wick Sell: If the current candle spikes above the TriggerLevel but closes back below it
-
Wick Buy: If the current candle drops below the TriggerLevel but closes back above it
-
Limit Sell: If the previous candle closed below the TriggerLevel and the current candle touches it
-
Limit Buy: If the previous candle closed above the TriggerLevel and the current candle touches it
-
Cross Sell: If the current candle opens above the TriggerLevel and closes below it
-
Cross Buy: If the current candle opens below the TriggerLevel and closes above it
💼 Trade Management
-
Only one trade per direction active at a time
-
Maximum lot size configurable per symbol (ideal when multiple EAs run on the same asset — perfect for prop firms)
-
Friday close function to avoid weekend exposure
Lot Size Control
→ Based on an accepted loss amount per trade
→ maxLotSize limiter ensures strict capital discipline
Stop-Loss
→ Dynamic calculation as a percentage of the TriggerRange
→ Optional daily recalibration to avoid overnight drawdowns
Take-Profit
→ Computed as TPMultiplier × TriggerRange
→ Optional time-based exit available
Trailing Stop (optional)
→ Stepwise trailing mechanism:
-
When profit ≥ TrailingTriggerPercent of TP range → SL moves to TrailingSLPercent level
Equity-Based Protection (Daily Reset)
→ Daily protection via MaxEquityDrawdownPercent
→ SL dynamically adjusts to the intraday equity high-watermark, ideal for prop firm risk frameworks
🧭 Trigger Sources
Multiple TriggerSource modes determine where the EA takes its reference levels from, including:
-
Open/Close at two times (today or yesterday), weekly/previous weekly values
-
Close or Open of specific candles after OpenTime
-
High/Low of a defined range (today or yesterday)
-
Pivot levels: Traditional, DM, Woodie, Averages such as (Open + Close) / 2
🕒 Time & Session Control
-
Configurable trading hours and weekdays
-
Time offset parameter (e.g., +1 hour) for flexible calculations
-
Option to choose between yesterday or today for open/close reference times
-
Friday close function to prevent weekend exposure
-
Daily time-based exit option available
