Finding the value of 1 pip per 1 lot of a pair

 

Finding the value of 1 pip per 1 lot of a pair

I am trying to write a Money management subroutine for an EA that I am working on, and I am having difficulties calculating what 1 pip is worth per lot. Is there a built in function in MQL to get this? Or do I have to write a routine myself??

Thanks

Rusty

 

Anybody??

Any hints?

Rusty

 
rusty105:
Finding the value of 1 pip per 1 lot of a pair

I am trying to write a Money management subroutine for an EA that I am working on, and I am having difficulties calculating what 1 pip is worth per lot. Is there a built in function in MQL to get this? Or do I have to write a routine myself??

Thanks

Rusty

I think it's :

PipValue = MarketInfo(Symbol(),MODE_TICKVALUE);

 
rusty105:
Anybody??

Any hints?

Rusty

Have you tried looking here: http://docs.mql4.com/constants/marketinfo/ ?

Hope that helps.

Cheers,

Diam0nd

I LOVE

 

Thanks Guys!!

I'll give that a try, and see if it works like I need it to work.

Thanks again

Rusty

 

Perfect !!!

Thanks a bunch

Rusty

Reason: