As there is clearly only one correct answer to the question, 'How many pips of profit does my current trade exhibit?', I'm interested to see the most efficient way of coding this.
I could work this out from reading, but I'm concerned about missing a vital point, and wondered if someone would open their coding treasure trove for me. If not, I will post what I find to donate to the community.
Many thanks IA
This is a good start: http://www.fxtrademaker.com/fx_calculation.htm