ziyang2048:
Hi guys, I want to set sl price to current price - 500dollar,
but that does not work, so how can I write?
Have a look at the documentation - there is a good code example in there which will help you with correct usage
https://www.mql5.com/en/docs/marketinformation/symbolinfodouble
![Documentation on MQL5: Market Info / SymbolInfoDouble Documentation on MQL5: Market Info / SymbolInfoDouble](https://c.mql5.com/36/57/documentation-on-mql5-market-info__1.png)
Documentation on MQL5: Market Info / SymbolInfoDouble
- www.mql5.com
SymbolInfoDouble - Market Info - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
R4tna C #:
Have a look at the documentation - there is a good code example in there which will help you with correct usage
https://www.mql5.com/en/docs/marketinformation/symbolinfodouble
thanks, I already found how to solve btw
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi guys, I want to set sl price to current price - 500dollar,
but that does not work, so how can I write?