- ago
can i control the amount of shares In each individually trade in quantacula version (in c# model) ? and how can i do that ?
thanks
0
357
Solved
4 Replies

Reply

Bookmark

Sort
- ago
#1
Yes, by assigning a number of shares to enter with to the Quantity property of the Transaction object returned by PlaceTrade e.g.

CODE:
PlaceTrade(bars, TransactionType.Buy, OrderType.Stop, stop).Quantity = 100;
1
Best Answer
- ago
#2
thanks!
0
- ago
#3
QUOTE:
CODE:
PlaceTrade(bars, TransactionType.Buy, OrderType.Stop, stop).Quantity = 100;


By the way, why not:

PlaceTrade(bars, TransactionType.Buy, OrderType.Stop, stop, Quantity: 100);

This one looks more obvious. No one likes answering users' "How" questions. When using things like ".Quantity" instead of "Quantity:" you cause users to ask more questions). That's fair if there are no other reasons, to do ".Quantity" of course.
0
Glitch8
 ( 9.00% )
- ago
#4
Because we already have optional parameters in those slots.
0

Reply

Bookmark

Sort