Trabajo finalizado
Tarea técnica
This is the indicator: https://www.mql5.com/en/market/product/53797?source=Site+Market+MT4+Indicator+Rating006#description
The EA operate buy order and sell order independently.
EA open buy order when there is buy signal from the indicator. If price go up then EA open new series of buy order with lotzie = initial lotsize x lotsize multiplier (the distance to open new order is input parameter). Distance to open new series order is only based on the price of the first order. If there is new buy signal from indicator EA also open new order with lotsize multiplier. EA close all buy order when TP or SL in amount of money reached (TP, SL in money is input parameter). Amount of TP and SL is calculated only buy order.
EA open sell order when there is sell signal from the indicator. If price go down then EA open new series of sell order with lotzie = initial lotisize x lotsize multiplier (the distance to open new order is input parameter). Distance to open new series order is only based on the price of the first order. If there is new sell signal from indicator EA also open new order with lotsize multiplier. EA close all sell order when TP or SL in amount of money reached (TP, SL in money is input parameter). Amount of TP and SL is calculated only sell order.
There is also option to close all order when there is opposite signal. If option is true then EA close all buy order when there is sell signal, same with sell order.
There is button in screen to open order manually then the EA manage that order follow it's logic.
Input parameter: Magic number, Comment, Take profit and Stoploss in money, Max buy order number, max sell order number, max grid order number (max number of series order to open from the first order), Close on opposite signal (true/false), Profit to breakeven (when all buy order or all sell order reach targer profit then move stoploss to break even level).