Login Page - Create Account

Support Board


Date/Time: Sun, 19 May 2024 01:11:46 +0000



Post From: OpenProfitLoss

[2017-05-29 20:37:25]
Pinger - Posts: 33
Hi

I've noticed that if I set my Chart Settings "Profit/Loss Format" to Ticks, PositionData.OpenProfitLoss accurately reports the number of ticks of profit/loss for XXXJPY currency pairs (as I would expect).

But this is not the case for XXXUSD currency pairs, these are factored by 0.01, e.g. a profit of 21T as displayed on the chart is reported as 0.21 by PositionData.OpenProfitLoss. Is this something to do with the "Currency Value Per Tick" setting of the chart, which is 1 for XXXJPY charts and 0.01 for XXXUSD charts.

I want to do some calculations based on the number of ticks profit/loss irrespective of currency pair. So, should I factor PositionData.OpenProfitLoss by an sc.variable to do this consistently, and if so which variable?

Kind regards