I can write the syntax to determine a pip's value (based upon a standard lot of any instrument pair), as the formula is well documented. But in essence, dependent on the Base and Quote currencies of the instrument and their relationship to the account currency, the method and syntax of the Pip value calculation changes.
So my starting point is to establish what my account currency is, and weather that corresponds to any of the currencies within the instrument currently loaded to a chart.
To establish this detail I have been looking at the function.
Bars.Instrument.MasterInstrument.Currency
In my current testing where the chart is set to GBP/USD this function returns a value of "British Pound".
When the chart is set to EUR/USD it returns "USD"
This seems to be the 'Base' currency value where the account currency matches one of the currency pairs. And then the 'Quote' currency value where the account current is not present?
Can you give me some clarity on what MasterInstrument is returning, and also a steer of if my approach to obtain the Base and quote values of an instrument is correct?
Thanks
Duncan
Comment