Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
Hi there, I need the following expert advisor created for Algo Trading.
It needs to be designed the following way.
The advisor is quite simple. On each chart I need 2 buttons, 1 for BUY and 1 for SELL (Similar to 1 button trading but with a few differences)
The buttons can either be activated or not activated.
If the button is not activated, then it does nothing.
If the button is activated then the following must occur,
1. An order must be executed precisely at the end of the minute after activating the button. E.g. I activated the button at 12:52:12 . The order is executed at 12:53:00 sharp at market price.
a. If the order does not execute for whatever reason then it must be reattempted every 2 seconds (this increment should be as small as possible while maintaining the integrity of the advisor). (The button stays active until the order is executed)
b. Once the order is executed the button must switch to being inactive. This way the order only executes once per minute and if I want to activate the button again in the following minute, I can.
2. The order must be able to have a stop loss and a take profit.
a. The stop loss and take profit must be calculated based on percentage of the price at which it was executed at. NOT PIPS.
b. I want to be able to change these percentages using Metaeditor (so please direct me to the location to change the percentages after the project is done)
3. The expert advisor must be able to be copied and applied without problem to as many charts as I need
a. E.g. If I apply the advisor to a GBP,EUR and JPY chart. (After obviously adjusting the stop loss and take profit percentages before applying them to the charts), it must work without a problem for each chart.
4. Multi chart application is key. As stated above, the importance of being able to apply the advisor to multiple charts is important. If I’m staring at 10 charts and then decide I want to trade all 10 in various directions, I want to be able to activate the directional button (Either Buy or Sell) on each chart, then at the end of that minute I want the positions to open automatically.
5. After a certain amount of time if the stop loss or take profit is not hit then I want the order to be closed. E.g. I open an order at 12:00:00, I need the order to close after 300 minutes if a stop or take profit is not hit. Please direct me to the location in metaeditor to change this time before applying the advisor to my charts.
6. In summary, What’s the difference between what I want and 1 click trading
a. Time after clicking (activating). The order only executes at the end of the minute I activated.
b. Stop loss and take profit are built in along with position size.
c. Stop loss and take profit are in percentage of entry price
d. Automatically closes after a specific time if no take profit or stop is hit.