can i control the amount of shares In each individually trade in quantacula version (in c# model) ? and how can i do that ?
thanks
thanks
Rename
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;
thanks!
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.
Because we already have optional parameters in those slots.
Your Response
Post
Edit Post
Login is required