Spezifikation
strategy is attached.
The EA is a multi-directional, indicator-based trading system designed primarily around an initial signal entry followed by controlled martingale/grid management. It can manage BUY and SELL baskets independently and includes indicator filtering, volatility protection, basket-level profit management, drawdown controls, hedge protection, dynamic loss-reduction closing, manual-trade integration, and an on-chart management panel.
1. Trading Direction
The EA has a direction input with three operating modes:
BUY ONLY — only BUY initial trades and their associated BUY martingale sequence are allowed.
SELL ONLY — only SELL initial trades and their associated SELL martingale sequence are allowed.
BUY + SELL — both directions can operate independently when their respective entry conditions are satisfied.
A BUY basket and SELL basket can therefore exist simultaneously when both-direction trading is enabled.
2. Initial Trade Entry
The first position of a new sequence is the Initial Trade, also considered Trade Number 1 of that sequence.
The initial lot size is specified directly in the EA inputs.
For example:
Initial Lot Size = 0.10 ( editabel)
means a newly generated initial BUY or SELL position starts with 0.10 lots. ( its for example)
The initial trade is generated from the selected custom signal indicator and its configured timeframe(s).
The EA supports multiple initial-entry timeframes. Each timeframe can individually be enabled or disabled.
For example:
Use Timeframe 1 = true
Timeframe 1 = M15
Use Timeframe 2 = true
Timeframe 2 = H1
Use Timeframe 3 = false
Timeframe 3 = H4
When multiple timeframes are enabled, they must agree with the required initial-entry direction according to the initial signal logic.
Current custom initial-entry indicator
3. Initial RSI Lock / Resume
This is an additional protection applied only to opening new initial trades.
It does not close existing positions and does not directly interfere with existing martingale management.
The RSI has configurable:
Enable/disable
Timeframe
RSI period
BUY blocking level
BUY resume level
SELL blocking level
SELL resume level
BUY behavior
If RSI reaches or exceeds the configured BUY block level, new initial BUY entries are locked.
Example:
BUY Block RSI = 70
BUY Resume RSI = 50
If RSI reaches 70 or higher:
Initial BUY = LOCKED
It remains locked even if RSI subsequently moves from 70 to 68, 65, 60, etc.
Only when RSI falls to 50 or below does:
Initial BUY = RESUMED
This is therefore a stateful hysteresis filter, rather than a simple instantaneous RSI condition.
SELL behavior
The opposite logic applies.
Example:
SELL Block RSI = 30
SELL Resume RSI = 50
If RSI falls to 30 or below:
Initial SELL = LOCKED
It remains locked until RSI subsequently rises to 50 or higher.
Importantly, unlocking an entry direction does not automatically open a trade. It merely permits the normal initial-entry strategy to operate again.
4. Initial Bollinger Band Lock / Resume
A second optional initial-entry protection uses:
Bollinger Bands
Its parameters include:
Enable/disable
Timeframe
Bollinger period
Standard deviation
Resume price distance
This filter also affects initial trades only.
Lower Bollinger Band
When price reaches/touches the lower Bollinger Band:
Initial SELL entries = LOCKED
The SELL side remains locked until price has moved upward by the configured price-dollar distance relative to the lower band.
Example:
BB Resume Distance = $5.00
If the lower band is around:
3300.00
the recovery condition is approximately:
3305.00
subject to the band's movement itself because the Bollinger Band is dynamically recalculated.
Upper Bollinger Band
When price reaches/touches the upper Bollinger Band:
Initial BUY entries = LOCKED
BUY remains locked until price falls sufficiently below the upper band according to the configured resume distance.
This creates the same lock/resume hysteresis concept as the RSI filter.
5. Trading Days
Trading days can be enabled or disabled individually.
The inputs cover:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
The purpose is to prevent new initial entries outside the permitted trading days.
6. Trading Times
The EA supports configurable trading-hour ranges.
For example:
4-10,12-15,15-18
This defines multiple permitted entry sessions during the day.