In portfolio trader I would like to limit the number of positions for a currency for forex symbols. For example, not enter a new position if I am already in a position with a given currency. I see that I can get the base currency with CurrencyCodeToStr but that wouldn't work because you can have 2 different base currencies but have 2X exposure for a given currency.
For example if I am long EURUSD and receive signal to enter position USDCHF where they have 2 different values for currency code because the base currency for USDCHF is CHF. I would want to limit the USDCHF entry because I already am in a position with the USD. Any help would be appreciated, thanks.
Limit exposure to a forex currency with Portfolio Trader
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Limit exposure to a forex currency with Portfolio Trader
Hello gpw797,
You can parse the symbol name that holds an open position.
You can parse the symbol name that holds an open position.