FxDreema EA Adjustment

Job ID: 38542317

Budget: $10 – $30 USD

I need a professional to adjust spread check confirmation on my FxDreema EA before Price Triggering and Stop Loss occurred. The ideal freelancer for this project should have experience with FxDreema and a deep understanding of scalping strategies.

The current problem:
The trade would be opened and closed instantly with a loss of $5.5 in some cases if not added this adjustment. The trade should not trigger in that kind of situation when the spread is larger then Stop Loss. The price is triggered at every minus or plus 0.3% or 3 bulls/bears in a row unless the spread is equal (ideally not equal) or/but above $5.5 SL.

Scenarios:

1. Trade Triggers, Spread is Acceptable:
Price triggering (eg. changes by more than 0.3%, or 3 bulls/bears in a row, or indicator parameters).
Current spread is less than $5.5 Stop Loss value.
Trade opens as expected, and the Stop Loss is placed 15 pips away.

2. Trade Triggers, Spread is Too Wide:
Price triggering (eg. changes by more than 0.3%, or 3 bulls/bears in a row, or indicator parameters).
Current spread equals or exceeds $5.5 Stop Loss value.
Trade is NOT opened, protecting the account from an immediate loss.

3. No Trigger:
Price change is less than 0.3% etc.
Trade is not triggered regardless of spread conditions.


Essentially, the code now ensures that:
Trades only trigger when the price change is significant enough (eg. more than 0.3%).
The trade will not open if the spread makes the desired Stop Loss impossible to achieve, preventing those guaranteed -$5.5 losses.

Potential solution to address this:
It needs to be incorporated a check for the current spread within the OnTick() function before opening the trade.

Important Notes:
This solution should prevent trades from opening with unfavorable spreads. However, rapid market movements might still cause unavoidable slippage occasionally.
Market conditions are dynamic. Even with this check, there is no guarantee that all trades will be profitable.