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));
How to set the volume of short or long in signal
-
- Posts: 12
- Joined: 21 Mar 2013
Re: How to set the volume of short or long in signal
Volume means the size of contract. Sometimes, in different situation, we need to trade different number of contracts.
- 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
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.
#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.