Trabajo finalizado
Tarea técnica
This project is for an EA repair. I don’t need any new option added, only to repair the ones already here.
I currently have a hedging EA already programmed but I would like to change a behavior. The original programmer of this EA is bit busy to fix the error quickly, so I am bidding it out in hopes of a faster turn-around time.
The first issue is that some options are calculating in points, and other in pips. I need the 4 option below to calculate in pips. I think one of two of them are already in pips, but just want a programmer to be sure.
Hedge amount in points (change wording to “pips” as well)
Take Profit in points (change wording to “pips” as well)
StopLoss in points (change wording to “pips” as well)
Auto hedge Amount in Points (change wording to “pips” as well)
The second issue is with correcting the “priority” of exiting the trades.
Currently – SL have priority over all exit other than closing the primary order (which automatically closes the hedge order).
List of exit rules in the priority of how they should close.
1. When the primary order closes, the hedge associated with that order closes (the EA currently does this.
2. “Wait for Primary Order to be > Hedge Amount” = True. The way this option works is for example, if “Hedge amount in Points/Pips” or “Auto Hedge Amount in Point/Pips) is set at 100, then place hedge exit rules when primary order is 99 pips. Until order is 99 pips, do not place SL, or other exit rules. Once exit rules are placed on the Hedge order, the EA does “not” have to remove because of market movement.
3. SL has 3rd Priority. SL is not placed on hedge until “Wait for Primary Order to be > Hedge Amount” = True. The hedge order will remain open forever until the above conditions apply.
4. Exit at Previous Entry and Commission rate have last Priority. If SL is set, then Previous Entry and Commission options are ignored.
I attached an image of the input screen. I have the coding for when the project starts.