Specification
This EA has issues that needs debugging and add new function.
1) Function:
Hedging_Allowed = true/false
This function should close active trade and open new trade at same time on the opposite side. This function is for Broker's that does not allow hedging. This added function should not interfere with original functions of the EA.
2) Debugging:
EA currently updates lot size when terminal rejects pending order due to low balance. EA does this until terminal accepts pending order.
I want to fix/debug this to take the difference between total BUY and total SELL. then, subtract MODE_LOTSTEP until terminal accepts pending order. This needs to be with the same SIGNAL and SYMBOL. This EA trades with multiple signals and multiple symbols.
example:
SIGNAL | SYMBOL | BUY | SELL |
---|---|---|---|
B_USDJPY_5 | USDJPY | 0.01 | |
B_USDJPY_51_RCVR-S1 | USDJPY | 0.02 | |
B_USDJPY_51_RCVR-B2 | USDJPY | 0.04 | |
B_USDJPY_51_RCVR_S3 | USDJPY | 0.08 | |
B_USDJPY_51_RCVR_B4 | USDJPY | 0.16 | |
total BUY = 0.21
total SELL = 0.10
update lot size = 0.21 - 0.10 + MODE_LOTSTEP
if terminal reject, update lot size = 0.21 - 0.10 - MODE_LOTSTEP
if terminal still reject, update lot size = 0.21 - 0.10 - MODE_LOTSTEP - MODE_LOTSTEP.......until terminal accepts pending order
3) Debugging:
Recover Max Trade = 5
Right now, EA stop to place new pending order. I want EA to place final trade as example above.
4) Debugging:
set LOT SIZE = 0.1
I want EA to default to minimum lot size when Account balance is low. Right now, EA use above function to update lot size.
I will send detailed instruction to the selected freelancer.