I would like to find out the way to do currency conversion within strategy.
For example I have account in usd (that I get with getaccountbalance) and I trade eur.aud, so I would like to know how much eur I have in my account. For this I need to convert from usd to eur.
Of course I can add a second bar object eur.usd that would give me a conversion rate but I want to have one strategy for all pairs. In order words can I add second bar object dynamically (using programmed logic with onbarupdate)?
Thank you
Sergey.

Comment