Calculate difference in pips between 2 prices
Created at 27 Mar 2018, 14:31
CT
Calculate difference in pips between 2 prices
27 Mar 2018, 14:31
Hi,
What code do I need to use to get the difference in pips between 2 different prices? I searched for an answer but couldn't find one.
Thanks in advance
Replies
ctid442355
27 Mar 2018, 16:48
Wow, thanks that was a quick answer! Does that work for brokers that use 4 decimal places as well as 5?
Dave
@ctid442355
PanagiotisCharalampous
28 Mar 2018, 09:35
Hi Dave,
Yes it does.
Best Regards
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
27 Mar 2018, 14:34
Dear Trader,
Thanks for posting in our forum. What you need to do is to divide the difference by Symbol.PipSize. See below
Let me know if this helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous