Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
Hi Everyone,
I need a robot/ EA to work on my trading strategy that uses highest, lowest and midpoint prices to activate bids as well as locks up profits so that it wont go back to losses. Bids will also be activated using recovery gaps, close gaps and backup gaps as defined by me. The robot will work for maximum 45 days and new high and low positions will be set up for it.
The logic is as follows:
Day 1/ Starting position. High= 2010, Low = 1950. Gap = High- Low= 2010-1950=60. Curent price is 2000
Based on the gap above of 60, midpoint gap will be half of gap at every position. Therefore midpoint gap will be half of 60=30. Therefore midpoint will be Low + Midpoint Gap/ High – Midpoint Gap= 1950+30/2010-30= 1980.
So based on Day 1, we have High= 2010, Midpoint= 1980, Low = 1950.
If Price Moved from 2000 to 2050.
Based on current High of 2010 and current price at 2000 before the move, the Robot will set a BUY at 2010 and SELL at 1980 and 1950 (because they are below the current price of 2000)
When price moves to 2050 (which is now the NEW HIGH), the Robot will recalculate the MIDPOINT as follows:
2050 (HIGH) – 1950 (LOW)= 100. Half of 100= 50. Therefore Midpoint will be 2050-50/ 1950+50= 2000. So Midpoint will move from previous 1980 to 2000.
So Based on the above move: Buy will activate at 2010 during the move to 2050, and take a new SELL at Midpoint price of 2000 while cancelling the previous one of 1980. Also the Buy that activate at 2010 and after 60 minutes of activation, it must not go to Loss or below the activation price, if it tries to go below it, the bid will close immediately.
A SELL on the other hand will activate at the midpoint and low price positions based on the current price. This will be the nature of the bids until Month end or when new start position are activated.
Every Month, there will be a Recovery gap, Close Gap and Backup Gap.
RECOVERY GAP: This is the gap used to follow the direction of the market. It is measured using the HIGHEST and LOWEST price for the period. Eg in the Sample above, if RECOVERY GAP = 130 then based on the High of 2050 and low of 1950, the recovery bids will be as follows
BUY= 1950+130= 2080 and SELL = 2050-130= 1920.
So for the rest of the Month, anytime the recovery positions are set up, it will take a BUY when going Up and a SELL when coming down. So if price is at 2050 now, it will activate a BUY when going Up, and a SELL if its above 2080 eg 2110 and wants to fall below 2080 down to 1920.
CLOSE GAP: This is the MAXIMUM GAP expected for the Month. For Example, if the close gap bid for the above sample is 250, it means using the HIGH and LOW price of 2050 and 1950, if price reaches the close gap bid, it will close all positions outstanding for all direction.
Eg. At 2050 high, if price goes low as HIGH-GAP= 2050-250= 1800, then it will close all bids of the product at 1800.
At Low of 1950, if price goes High as LOW + GAP= 1950+250=2200, then it will close all bids at 2200 (High).
BACKUP GAP: This is a pending gap to reduce the impact of a current profit going to excessive reduction, or even go to loss, after it has passed the recovery position. The Backup gap will be reducing the stop loss gap everytime the price crosses over a former price position such as HIGHEST, LOWEST or MIDPOINT. Eg if backup gap is half of Recovery gap, then if recovery bid activates, at 2080 as above, then the backup gap will be half of 130= 65. Therefore the backup gap will activate as HIGHEST PRICE- BACKUP GAP. So if High moves to 2120, then back up gap will activate as 2120-65= 2055 as a SELL. If the next move after 2055 activates at SELL, then next move will be a BUY at half of 65= 32.5. etc.
I can explain with 2 scenerios for the right person to see the logic if need be.
Only serious bidders with long term relationship plan should apply. Payment will be made in phases with phase 1 assumed to be the completion of the robot, while phase 2 will be the testing and source code will be exchanged after testing and review for a period of 30 days minimum.