I'm wondering if there is a built in solution for calculating the pip value in USD for forex pairs that do not have USD as the base or quote currency? For example, opening a position on EUR/CAD has a pip value (today) of 0.000074 USD per unit. Writing my own algorithm to do this would require my strategy to query the USD conversion rates for each non-US currency, so it would be ideal to use a built in function if it exists.
The goal is for the strategy to calculate size based on a USD pip value input parameter only. For example, PipValueUSD = 2.5 USD/PIP and the strategy calculates the size needed to achieve this. Otherwise, the user will need to calculate it on their own.
Your input is appreciated!

Comment