Trabajo finalizado
Tarea técnica
The idea of the EA is to implement the following 2 functions:
1 - Automated Adjustment of SL for Market Orders:
- Listens to incoming market orders which can or not contain SL and/or TP (these trades were placed by a MT4 -> MT5 copier like https://www.fxblue.com/appstore/u2/mt4-personal-trade-copier/ ).
- Upon detection of new market orders, if the trades have TP, modify the order removing the TP only, and storing this TP information in memory. (See Note below). Pending orders are unchanged.
- If price hits the previously removed TP level, set SL to (TP-entry)/2, i.e. to half way distance between entry price and TP. (This SL level is configurable in % with 0% being the entry point and 100% being TP.) This SL adjustment should occur only once, when the original TP level is hit.
Note: The original order TP information should be also saved to a file in a way that if the terminal is closed and reopened, no original order TP information is missed.
The tool should allow also the following 2 settings which work independently of the previous functions:
- ON/OFF setting to close all open positions and pending orders at hh:mm daily, Monday to Friday (e.g. 23:00, server time). Allows specifying trade close interval e.g. "23:00-05:00", i.e. if the terminal is closed or offline and reconnects within time-window "23:00-05:00", closes all existing positions or pending orders. After 05:00 next day allows new trades again.
- ON/OFF setting to close all open positions and pending orders at hh:mm on Fridays (e.g. 20:00, server time), and allow new orders to be placed again on Monday. Allows specifying a trade close interval (e.g. "20:00-01:00". 20:00 corresponds to interval start on Friday and 01:00 corresponds to interval end on Monday). This setting overrides the previous setting on Fridays (meaning, in the first setting above, new trades would not be enabled at 05:00 on Saturdays, only at 01:00 AM on Mondays according to this second setting)
Deliverables:
- Video or slideshow screenshot demonstration of fully working EA for the functions mentioned in different setting combinations.
- Fully commented source code.
Disclaimer: Please do not bid if you're not fully comfortable technically with the requirements of this EA. Final source code with be audited by third party so the code should be profusely commented. Incomplete solutions that do not provide the full functionality or contain bugs will not be considered and arbitrage will be requested if the provided versions systematically contain bugs of miss to implement features and if the development time is exceeded. Thank you for your consideration and understanding.