apes001: What's really funny (odd) is the pips2dbl variable which is the same for both the 3 and 2 digit brokers.
Of course it is. A pip is a pip. Doesn't matter for a 2 and 3 digit pair. On a 3 digit broker a point is 1/10 pip. The whole point of pips2dbl is to be independent of the broker 2 vs 3.
The previous post shows the formula that ar eidentical for both Brokers. pips2dbl stays the same although IBFX is a 2 Digits broker (on the chart that is).
This problem is way above my "coding" grade... :-)
I don't know what else to check...
I don't understand why you should expect pips2dbl to be different. Isn't the point of the code to make the value consistant no matter what broker?
The previous post shows the formula that ar eidentical for both Brokers. pips2dbl stays the same although IBFX is a 2 Digits broker (on the chart that is).
This problem is way above my "coding" grade... :-)
I don't know what else to check...
I don't understand why you should expect pips2dbl to be different. Isn't the point of the code to make the value consistant no matter what broker?
If Digits == 3, Point is multiplied by 10 and assigned to pips2dbl
If Digits ==2, then pips2dbl = Point.
You would have to expect them to be the same.