Hello, am a newbie in programming and i had problem in creating a function that auto adjust profit such that when i open an order, StopLoss is(+/-) 50 pips.
- for OP_BUY and + for sell order. i consider this to be initial stopLoss .
Stoploss should always be 50 pips from current price and increases as the current price increases && stops moving when market price(bid/ask) reverses. i.e bid-50;
Please help and where should i call the function??
N_lang-12: Please help and where should i call the function??
There is only one place OnTick()
learntocode it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
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, am a newbie in programming and i had problem in creating a function that auto adjust profit such that when i open an order, StopLoss is(+/-) 50 pips.
- for OP_BUY and + for sell order. i consider this to be initial stopLoss .
Stoploss should always be 50 pips from current price and increases as the current price increases && stops moving when market price(bid/ask) reverses. i.e bid-50;
Please help and where should i call the function??