- ago
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

0
274
Solved
4 Replies

Reply

Bookmark

Sort
- ago
#1
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
0
Best Answer
- ago
#2
Thank you Eugene, I test this example and it works

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
1
- ago
#3
Or like this




Regards Chris
0
- ago
#4
Merry Christmas 🎅🎁🎄
0

Reply

Bookmark

Sort