Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
//--- Inputs
input bool Place_Buy_Order = true; // Place Buy Order (Please Add To EA!) (If "true" then the EA has to place buy execution directly. If "false" then the ea won't place buy execution.) <===
input bool Reopen_Sell_And_Buy = true; // Reopen Sell And Buy (Add To EA!) (If "true" then the EA has to always place a sell order after a buy order is closed, after a sell order is closed then the EA has to place a buy order and again etc... If "false" then the EA won't place any order.) <===
input bool Place_Sell_Order = false; // Place Sell Order (Add To EA!) (If "true" then the EA has to place sell execution directly. If "false" then the ea won't place sell execution.) <===
input bool Reopen_Buy_And_Sell = false; // Reopen Buy And Sell (Add To EA!) (If "true" then the EA has to always place a buy order after a sell order is closed, after a buy order is closed then the EA has to place a sell order and again etc... If "false" then the EA won't place any order.) <===
input bool Place_Buy_Stop = true; // Place Buy Stop (Add To EA!) (If "true" then the EA has to place buy stop order. If "false" then the ea won't place any buy stop order.) <===
input bool Reopen_Buy_Stop = true; // Reopen Buy Stop (Add To EA!) (If "true" then the EA has to always place a new buy stop after an old buy stop is closed and again etc... If "false" then the EA won't Reopen Buy Stop.) <===
input bool Place_Sell_Stop = false; // Place Sell Stop (Add To EA!) (If "true" then the EA has to place sell stop order. If "false" then the ea won't place any sell stop order.) <===
input bool Reopen_Sell_Stop = false; // Reopen Sell Stop (Add To EA!) (If "true" then the EA has to always place a new sell stop after an old sell stop is closed and again etc... If "false" then the EA won't Reopen Sell Stop.) <===
input string Ending_Time = "18:00:00"; // Ending Time (Add To EA!) (From "18:00:00" the ea won't place any order.) <===
//+------------------------------------------------------------------+
input bool Reopen_Pending_Orders = false; // Reopen Pending Orders (Please Remove from EA!) ===>
input bool Trailing_When_Profit = false; // Trailing When Profit (Remove from EA!) ===>
input int Trailing_Profit_Level = 0; // Trailing Profit Level (Remove from EA!) ===>
input int Slippage = 0; // Slippage (Remove from EA!) ===>
//+------------------------------------------------------------------+
An Example: for Reopen_Sell_And_Buy = true; if the ea has place the first buy order and after the first buy order is closed then the EA has to open sell order directly and after sell order is closed then the ea has to open buy order directly... Endless...
An Example for Reopen_Buy_And_Sell = true; if the ea has place the first buy order and after the first buy order is closed then the EA has to open sell order directly and after sell order is closed then the ea has to open buy order directly... Endless...
//+------------------------------------------------------------------+
I know that hedging is not allowed in MT5 if I set Place_Buy_Order = true; then I will set Place_Sell_Order = false; (I will set it by my self).
if I set Place_Sell_Order = true; then I will set Place_Buy_Order = false; (I will set it by my self because MT5 won't allow both buy and sell at once).
//+------------------------------------------------------------------+
Another example: Place_Buy_Order ===> Buy (Closed) ===> Reopen_Sell_And_Buy ===> Sell (Closed) ===> Reopen_Sell_And_Buy ===> Buy (Closed) ===> Reopen_Sell_And_Buy ===> Sell (Closed)... Endless...
Opposite direction: Place_Sell_Order ===> Sell (Closed) ===> Reopen_Buy_And_Sell ===> Buy (Closed) ===> Reopen_Buy_And_Sell ===> Sell (Closed) ===> Reopen_Buy_And_Sell ===> Buy (Closed)... Endless...
//+------------------------------------------------------------------+