Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
i am working on a code based on ema and stochastics indicators, it has take profit and stop loss already,
but i want the ea to close an existing order that has not gotten to take profit or stop loss, using only the stochastics signal.
i want it to close a buy order if (stocha1 is lower than(<) than stocha2)
and it should close a sell order if (stocha1 is greater than(>) stocha2).
please how can i write this instruction?.
any help will be highly appreciated.