I don't know how to write, need some help.
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
- 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
Hi guys, I want to set sl price to current price - 500dollar,
but that does not work, so how can I write?