Hi,
I'm a newbie, so I'm sorry if I ask a stupid question.
I'm trying to use the "send" command of IOrderMarket interface.
When I do a backtest the command seems operate not correctly.
If I specify a lot size it doesn't use it, but it (the send command) buys or sells always the same quantity, the one specified in Fixed Shares/Contracts of the Properties tab of the Strategy Properties.
Can anyone tell me why?
Another question. Can I define IntrabarOrderGeneration directly in the code with MC.Net as I can do with MC standard?
Thanks for your help
Gianluca Zandonà
Send command
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Send command
Hello Gianluca,
Attached is a sample code that shows how to specify the amount of contracts in the code.
Attached is a sample code that shows how to specify the amount of contracts in the code.
IOGModeAttribute Class is available in MC.Net. Here is how you can use it:Another question. Can I define IntrabarOrderGeneration directly in the code with MC.Net as I can do with MC standard?
Code: Select all
[IOGMode(IOGMode.Enabled)]
- Attachments
-
- Test_LimitOrderEx.pln
- (1.92 KiB) Downloaded 1397 times