pip or point

 

Hi,

a quick question please:

OrderClose(OrderTicket(),OrderLots(),Bid, 3,White);  

Not sure it's pip or point here. Do I need to rewrite it as:

int mypoint;
if(Digits==3||Digits==5) mypoint=10; else mypoint=1;
OrderClose(OrderTicket(),OrderLots(),Bid, 3*mypoint ,White);  
 
joshatt:

Hi,

a quick question please:

Not sure it's pip or point here. Do I need to rewrite it as:

Slippage is a number of points . . .
 
So I can not rewrite, right? LOL.
 
Slippage is the number of point. if you want 3 points write 3. if you want 3 pips write 3*x. See also https://www.mql5.com/en/forum/141509
 
WHRoeder:
Slippage is the number of point. if you want 3 points write 3. if you want 3 pips write 3*x. See also https://www.mql5.com/en/forum/141509

Great code. Thanks.
 
I wish people would stop talking about pips - it's a forex only concept and really confuses me when you are talking about metals, cfd's and indexes, or 4 vs 5 digit brokers. My EA's trade across all security classes. Just talk about points. The predefined variables Digits and Points and the value per point is really all that I need.
 

And when you change brokers (or the broker goes to fractional slippage) you have to change your parameters (4/5 digits.) A pip doesn't change, points do.

If a point is all you need, fine. But don't talk to us about points because we have no idea what your talking about until you specify the the broker's digits.

Reason: