stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Convert Dollar into Pips
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3618
Page 1 of 1
Author:  deejoy [ Tue May 13, 2014 8:51 am ]
Post subject:  Convert Dollar into Pips

Hi,
i am realy new and need Help.

How can i convert Dollar into pips. I want to know how many Pips I need vor 8$ for example in EUR/JPY.

Can anyone help me ?
Thx
Author:  macman [ Tue May 13, 2014 9:10 am ]
Post subject:  Convert Dollar into Pips

Welcome to the forum.

If you are really new to all this, maybe start out with one of the excellent free online courses like http://www.babypips.com/school ?

Much of the material here assumes you have a good basic knowledge before dipping in.

Best of luck :good:
Author:  deejoy [ Tue May 13, 2014 9:16 am ]
Post subject:  Convert Dollar into Pips

Hi macman,

i am new in programing mql4 not in trading.
I need a Code snippet
Author:  milanese [ Tue May 13, 2014 11:33 am ]
Post subject:  Convert Dollar into Pips

this should do what you want

Code: Select all

double tickvalue = MarketInfo(symbol, MODE_TICKVALUE);
    double point     = MarketInfo(symbol, MODE_POINT);
    double ticksize  = MarketInfo(symbol, MODE_TICKSIZE);
// fix for very rare occasion that a change in ticksize causes a tickvalue change
    double real_tickvalue = tickvalue * point / ticksize;           
    double lotsize   = MarketInfo(symbol, MODE_LOTSIZE);
    double PipsOfUSDvalue = USD_VALUE / (	OrderLots() *lotsize* real_tickvalue );
Cheers :)

Tommaso
Author:  deejoy [ Tue May 13, 2014 11:47 am ]
Post subject:  Convert Dollar into Pips

thx
Author:  deejoy [ Tue May 13, 2014 1:50 pm ]
Post subject:  Convert Dollar into Pips

@milanese

On 5 Digit Pairs (EUR/USD,GBPCAD) all would be fine i get 0,0040 but on 3 Digit Pairs (CAD/JPY, EUR/JPY) something is wrong there i get 0,0040 too but it must be 0,04. How can i fix that ?
Author:  milanese [ Tue May 13, 2014 2:40 pm ]
Post subject:  Convert Dollar into Pips

deejoy ยป Tue May 13, 2014 1:50 pm wrote:@milanese

On 5 Digit Pairs (EUR/USD,GBPCAD) all would be fine i get 0,0040 but on 3 Digit Pairs (CAD/JPY, EUR/JPY) something is wrong there i get 0,0040 too but it must be 0,04. How can i fix that ?
in adding a multiplier for JPY pairs...

Cheers :)

Tommaso
All times are UTC Page 1 of 1