Custom symbol position min and max volume

Created at 06 Feb 2017, 14:59
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
mindbreaker's avatar

mindbreaker

Joined 19.07.2014

Custom symbol position min and max volume
06 Feb 2017, 14:59


Hi All,

how to get custom symbol minimal volume ?

Thanks.


@mindbreaker
Replies

mindbreaker
06 Feb 2017, 19:59

Symbol sym = MarketData.GetSymbol("EURUSD");

if ((Int32)vol < sym.VolumeMin || (Int32)vol > sym.VolumeMax){
       Print("ERROR Position volume ");
}

 


@mindbreaker