Hi Traders, in the position overview there is a column called Tag. How can I use this column in C#, for what function is this column suitable in C#?
Regards Chris
Regards Chris
Rename
Hi Chris,
It's described in the QuickRef > Position > Tag.
Examples:
https://www.wealth-lab.com/Discussion/5492
https://www.wealth-lab.com/Discussion/7566
It's described in the QuickRef > Position > Tag.
Examples:
https://www.wealth-lab.com/Discussion/5492
https://www.wealth-lab.com/Discussion/7566
Thank you Eugene, I test this example and it works
for example
Regards Chris
for example
CODE:
string symbol = bars.Symbol; LastPosition.Tag = (symbol == "AAPL") ? 20.0 : // 20% equity for Apple (symbol == "MSFT") ? 10.0 : // 10% equity for Microsoft 5.0; // or 5% for anything else
Regards Chris
Or like this
Regards Chris
Regards Chris
Merry Christmas 🎅🎁🎄
Your Response
Post
Edit Post
Login is required