- ago
what is WealthLab7 equivalent for SetShareSize in wealthScript (wl6)
0
822
Solved
4 Replies

Reply

Bookmark

Sort
- ago
#1
For all "equivalent" questions please refer to Post #2:

https://www.wealth-lab.com/Discussion/Quick-WL6-9-to-WL7-Translation-Guide-5548
0
Cone8
 ( 4.98% )
- ago
#2
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;
0
Best Answer
- ago
#3
Earlier in version 6 it was possible to use "Position Size". Is this feature available in version 8?

0
Cone8
 ( 4.98% )
- ago
#4
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.
1

Reply

Bookmark

Sort