Send command

Questions about MultiCharts .NET and user contributed studies.
kaine
Posts: 1
Joined: 11 Jan 2013

Send command

Postby kaine » 21 Feb 2013

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à

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Send command

Postby Henry MultiСharts » 22 Feb 2013

Hello Gianluca,

Attached is a sample code that shows how to specify the amount of contracts in the code.
Another question. Can I define IntrabarOrderGeneration directly in the code with MC.Net as I can do with MC standard?
IOGModeAttribute Class is available in MC.Net. Here is how you can use it:

Code: Select all

[IOGMode(IOGMode.Enabled)]
Attachments
Test_LimitOrderEx.pln
(1.92 KiB) Downloaded 1380 times


Return to “MultiCharts .NET”