I'm developing an addon for calculation the correct position size (in relation to a given stopLoss).
This means, that the addon has to find out the base price of that instrument in my account currency.
For example: My strategy works on the USD/CAD. This strategy calls the risk-management-addon for calculation the positionsize.
The risk-management-addon should then return the base price for USD/CAD in my account currency EUR. This means, the addon should be able to retrieve the actual price for EUR/USD.
How could this be done? AddDataSeries doesn't seem to work in the addon context...
Many thanks,
Catherine
Comment