How to set the volume of short or long in signal

Questions about MultiCharts .NET and user contributed studies.
viresearch
Posts: 12
Joined: 21 Mar 2013

How to set the volume of short or long in signal

Postby viresearch » 12 May 2013

How can we set the volume of short or long in signal?

buy_order = OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, EOrderAction.Buy));
short_order = OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, EOrderAction.SellShort));

viresearch
Posts: 12
Joined: 21 Mar 2013

Re: How to set the volume of short or long in signal

Postby viresearch » 13 May 2013

Volume means the size of contract. Sometimes, in different situation, we need to trade different number of contracts.

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

Re: How to set the volume of short or long in signal

Postby Henry MultiСharts » 13 May 2013

Hello viresearch,

#8 from MultiCharts .Net FAQ:
Q: How do I specify the amount of contracts in the code?

A: Here is an example how to do that. If you do not specify the amount to buy/sell in the code then the value specified in Fixed Shares/Contracts of the Properties tab of the Strategy Properties would be used.


Return to “MultiCharts .NET”