EA for MetaTrader The name of the project is "out of reach"
I need an EA written that is completely off the wall and a crazy idea. However, this is for testing certain things with the metatrader and not really as a trading EA. But nonetheless, it is an EA. Here is what I need this to do. 1.. This needs to happen in full automatic mode. 2.. I need to be able to set the entry point of the PENDING orders by entering in a number that will allow me to decide at what distance it is from the bid and what distance it is from the ask. As you know, certain pairs require a minimum distance from the price in order to place a pending buy stop or a pending sell stop. If the minimum distance is 5 pips from the price, then I might want to set it at 7 or 20. In any case I set it. 3.. Then the orders are placed. A PENDING BUY STOP and a PENDING SELL STOP. This can be done buy the EA or if it is simpler then some other way. Placing the order is not import as to how. 4.. Now for the crazy part. Lets say the pair only allows a buy stop or a sell stop if the open price is greater than 5 pips. Lets say I set the buy and sell stops at 7 pips. Now as the price moves up the EA will modify the buy stop order to keep the distance of 7 pips from the price. If it goes down then the EA will modify it to keep the same distance of 7 pips. This will take place on both of the buy and sell stops. Additional information. I am doing this for testing. I already know it sounds crazy. I know that tick by tick that the orders for both buy and sell stops will be modified again and again. As the price moves up then the pending buy stop order will always just be out of reach. Also, as the price moves down then the pending sell stop order will always just be out of reach too. It is important that as the price is moving that the orders are being modified as I explain above. As I said I want to test a few things.