ExecuteMarketOrder for indices

Created at 17 Jan 2018, 22:38
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!
irmscher9's avatar

irmscher9

Joined 22.12.2016

ExecuteMarketOrder for indices
17 Jan 2018, 22:38


Hey guys,

How do I ExecuteMarketOrder for indices? Standard volume seems doesn't work, should I use lots? if yes, how?

Thanks!


@irmscher9
Replies

PanagiotisCharalampous
18 Jan 2018, 09:48

Hi irmscher,

Volume should work fine for indices. Can you tell us what is the problem you experience so that we can help?

Best Regards,

Panagiotis


@PanagiotisCharalampous

irmscher9
20 Jan 2018, 15:03

Yeah,

[Parameter("Lot Size", DefaultValue = 1)]
        public double lot { get; set; }

long volume = Symbol.QuantityToVolume(lot);

            ExecuteMarketOrder(TradeType.Buy, Symbol, volume, "Buy1", 50, 75);

 

Works just fine


@irmscher9