For all "equivalent" questions please refer to Post #2:
https://www.wealth-lab.com/Discussion/Quick-WL6-9-to-WL7-Translation-Guide-5548
https://www.wealth-lab.com/Discussion/Quick-WL6-9-to-WL7-Translation-Guide-5548
This one's covered in the small section in the Help Guide > Strategy > C# Code Based > V6 Code Equivalents.
CODE:
v6: SetShareSize(100); v7: (PlaceTrade always returns a Transaction object) Transaction t = PlaceTrade(...); t.Quantity = 100;
Earlier in version 6 it was possible to use "Position Size". Is this feature available in version 8?
The selection nor the function is required. Simply set the Transaction.Quantity property in your script (as shown above) and that will be the share size.
Your Response
Post
Edit Post
Login is required