ExecuteMarketOrder for indices
Created at 17 Jan 2018, 22:38
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!
Replies
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
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