
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The code I used finds the previous stop loss value in pips by subtracting the open price of that order with the stop loss value in price and stores it in previousstop.
Then I get the stop loss value in price (stored in stop) by adding the previous stop value in pips to the open price of the new order.
Thanks, thats what was missing! Managed to setup the same for tp with: previoustakeprofit = (OrderOpenPrice()-OrderTakeProfit());
Thanks for your help.