Lavoro terminato
Specifiche
Dear Developer,
I need to add a functionality to all trades taken by my trading system.
In short, I need to add an extra separate counter order for every new trade issued.
The initiated order by the system will be set for example always to 0,02 LOT (Here called “Main Order” and the pair traded is only XAUUSD/GOLD.
The new “Counter Order” must be generated by “command” from the “Main Order”, and will here be 0.04 LOT GOLD (Double size of “Main Order”. (Here called “Counter Order ”)
The new “Counter Order” will be set as a waiting order 50 PIP from where the main order is taken, and in opposite direction.
The new “Counter Order” will have a trailing lifestyle, as it will be “armed” and start to trail when the “Main Order” reaches 100 PIP.
“Counter Order” will close itself and close the “Main Order” as well at the very moment when it produces a result that is twice the size of the “Main Order” at this same time. Note: “Main Order” has a negative figure/size at this time, and “Counter Order“ will have a positive figure/size now that will result in a positive total.
Note… If “Main Order” goes to his intended TP for example (10 PIP only); “Counter Order” must in this case always be removed as completed by the system you are making.
If “Counter Order” is activated at 100 PIP, as mentioned earlier, and then at any time thereafter, the market start moving back in favour of “Main Order”, the “Main Order” and the “Counter Order” must be closed when the market reaches the trailing “Counter Order” at 100 PIP.
Note… It will be more orders taken as “Counter Order”, and every order will get its own “Main Order” numbered ID. Also belonging “Counter Order” that is waiting to activate at 50 PIPS will need a ID to show to which order it belongs. Please make orders to be recognized by letting it be created IDs for each order that is easy to recognize, and not equal, as it would create practical problems for me and for the system.
I need to MANUALLY be able to change some variables in the EA Properties:
Size of “MainOrder” and “Counter Order” (To be adjustable)
Waiting counter orders is waiting to activate after 50 PIP (50 to be adjustable)
TP to be adjustable
Trailing settings to be adjustableBest regards
Erik Looking forward to connect to you