Back testing volume
Created at 28 Apr 2013, 00:01
Back testing volume
28 Apr 2013, 00:01
Hi
I have been back testing a new robot and noticed that i get a 'Bad Volume' error when the trade volume is not in 1k lot. why is this
exarmple:
Trade.CreateBuyMarketOrder(Symbol, 1000); // This works fine Trade.CreateBuyMarketOrder(Symbol, 1001); // Gives 'Bad Volume' error
Replies
Dtp91
01 May 2013, 21:14
RE:
cAlgo_Development said:
Each broker configures minimal amount you can trade for each symbol. There is also minimal step between volumes, for example minimal volume can be 1000 and minimal step is 1000, sou you can trade only 1000, 2000, 3000 and so on... In this case you can not buy 1500.
Ok thank you
I didnt realize there was a minimum trade size
@Dtp91
cAlgo_Development
30 Apr 2013, 12:59
Each broker configures minimal amount you can trade for each symbol. There is also minimal step between volumes, for example minimal volume can be 1000 and minimal step is 1000, sou you can trade only 1000, 2000, 3000 and so on... In this case you can not buy 1500.
@cAlgo_Development