For instruments such as Gold, there is no consensus as what constitutes a "Pip".
I would have the input
input double Pip_as_a_decimal=0.1;
That allows the user to define what they consider a pip.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I yesterday faced a surprising feature of a new broker, here the array of the difference to another broker:
His Gold digits are 3 and even more for Silver he has 4 digits.
Up to yesterday I was quite comfortable with this:
Now I about to 'hard-code' the Gold- and Silver-PIP (instead of: if (broker ...):
Any thought or comments or even a better way to calculate 1 PIP without broker-individualisation as I don't like hard-coded values too much.
Thanks in advance