Limit exposure to a forex currency with Portfolio Trader

Questions about MultiCharts and user contributed studies.
gpw797
Posts: 216
Joined: 04 Mar 2006
Has thanked: 3 times
Been thanked: 7 times

Limit exposure to a forex currency with Portfolio Trader

Postby gpw797 » 14 Apr 2019

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.

User avatar
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

Postby Henry MultiСharts » 18 Apr 2019

Hello gpw797,

You can parse the symbol name that holds an open position.


Return to “MultiCharts”