EA to show pip value on chart

 

I have been looking unsuccessfully for an indicator that would place the current dollar value per pip on the chart. I know that there are a number of online pip calculators that give a real time value, but I'd like to have the value for each pair as part of the MT4 screen. If anyone knows of such an indicator, I'd appreciate knowing where to find it.

 Thanks. 

 
rwwood:

I have been looking unsuccessfully for an indicator that would place the current dollar value per pip on the chart. I know that there are a number of online pip calculators that give a real time value, but I'd like to have the value for each pair as part of the MT4 screen. If anyone knows of such an indicator, I'd appreciate knowing where to find it.

 Thanks. 

This should be what you're after. Just drop into your code and should show you value of 1 point per 1 standard lot in your deposit currency. You can then easily convert it into pips or different lot sizes in the code

Comment((MarketInfo(Symbol(),MODE_TICKVALUE)*Point)/MarketInfo(Symbol(),MODE_TICKSIZE));
 

Thanks for your response. Since I'm new to MetaEditor, I don't know where to start to be able to use the snippet you provided. Essentially, I just want to display on the chart the pip value for whatever pair the chart is for.

 Thanks.

 
rwwood:

Thanks for your response. Since I'm new to MetaEditor, I don't know where to start to be able to use the snippet you provided. Essentially, I just want to display on the chart the pip value for whatever pair the chart is for.

 Thanks.

Well you're in luck - I just released it as an indicator in CodeBase :) Hope it helps:

Simple Pip Value Calculator 

 

Fantastic! Thanks!

But isn't the calculation of the pip value 10 times larger than it should be? For example, a standard contract (100,000 units) of EURUSD has a pip value of $10. But the indicator is displaying the pip value as $100. 

 
Quite correct! Should have spent a bit more time checking my calculations :) New version uploaded (may take a few days to get through moderation)

Cheers
 
The indicator is also not calculating the crosses correctly, ie, AUDJPY, EURGBP.
 
That's strange, working fine here. What is the error? And what broker are you with?
 

As well as the above, please try to use the new code posted here and let me know if you still have problems.


Cheers
Stu 

 
I'm with Oanda. For any of the non-dollar crosses, ie EURJPY, the pip value is showing as $8.409. That is all of the non-dollar crosses is that same value. The new version is giving the right values for the other pairs, however.
 
rwwood:
I'm with Oanda. For any of the non-dollar crosses, ie EURJPY, the pip value is showing as $8.409. That is all of the non-dollar crosses is that same value. The new version is giving the right values for the other pairs, however.

That is correct. You can check the values of the EA with any of the online calculators such as this one - you should get the same result as the EA

 

Reason: