Trabajo finalizado
Tarea técnica
Hello,
I want to create an EA with a loss recovery concept that will take trades correctly towards the market direction using input data as shown below.
![](https://c.mql5.com/21/541/2480727978524__1.png)
The input values will be the product, Lowest/ Highest price, lot size, TP and SL, Gap between trades (distance gap) and Control Gap, Control lot size, distance lot size. ALL VARIABLES WILL BE IN REAL TIME PRICE and not Pips.
The EA will have updates on the screen for the Current Highest Prices and Lowest prices with dates of reaching the position after EA has been installed. It will also have Visual trendline on the screen for the CONTROL BUY and CONTROL SELL position. The CONTROL BUY will be the Lowest Price + Control GAP, and the CONTROL SELL will be the Highest price – the Control GAP.
EA will take trades using the position of the current price compared to the Lowest or Highest price input at beginning of the period. The above picture shows the Decisions predicted by the conditions that will help give the EA on the best action to take. When both conditions are same, EA will activate the bids in the right direction and also compare the position to the CONTROL BUY/SELL. Once it reaches the CONTROL BUY or SELL, it will have a distance to take additional bids by BUYING UPWARDS above CONTROL BUY or SELLING DOWNWARDS below CONTROL SELL.
FOR HIGH DECISION = =IF(MARKET HIGH="","",IF(HIGHEST<MARKET HIGH,"BUY","SELL"))
FOR LOW DECISION = =IF(MARKET LOW="","",IF(MARKET LOW<LOWEST," ,"SELL","BUY "))
SO IF BOTH DECISIONS ARE SAME, THEN EA WILL ACTIVATE BIDS TOWARDS AND ABOVE THE CONTROL BUY UPWARDS, OR TOWARDS AND BELOW THE CONTROL SELL DOWNWARDS.
The bids will then be activated further with distance bids in a ladder format progressively upwards or downwards.
However if prices reverts back to the Lowest / Highest prices set at beginning, then EA will activate the BACKUP bids from the 2 prices to the opposite direction. However the HIGH and LOW DECISIONs would have changed as well by then.
The Control BUY or SELL Trendline will also be shown on the screen with all the updates as well and the active decision as BUY or SELL using the last Control Position update. Eg if price is above Control BUY and is the last move, the screen decision will be a BUY, but afterwards if price reverts back below the Control SELL, then screen decision will be a SELL etc.
This job is only for immediately available programmers
Project will require up to 10 business days for testing the concepts to ensure it follows the full rules
EA should be used on indices, products and currencies etc
Source code will be released at end of project
Thanks