Should there be 4 digits or 5 digits after decimal point of price of EURUSD?

 
I use Contest Account the price is something like 1.4540. But I applied for a demo account the price is like 1.45408.
I ask this question because when I use Stop Loss,  there will be different result.
Say stop loss is 20, then 1.4540's stop loss is 1.4520 when open a buy.
1.45408's stop loss is 1.45388. They are different.
 
You are seeing sub-pip pricing. It is valid.
 
What value do you get in the built-in variable Point? 0.0001 or 0.00001?
 
bstone:
What value do you get in the built-in variable Point? 0.0001 or 0.00001?

How to know built-in varaiable Point? It seems it is 0.00001, because when I use stop loss,  it only change SL*0.00001. How can I change back to only 4 digits after decimal point?

 
valleyfir:

How to know built-in varaiable Point? It seems it is 0.00001, because when I use stop loss, it only change SL*0.00001. How can I change back to only 4 digits after decimal point?

Add this statement to your init() to see the actual value:


Print( "Point = " + Point );


If it says 0.00001 then you have two options to fix it:


1) change all references to Point with your variable/function that will hold the correct value.

2) multiply your SL/TP levels by 10

 
bstone:

Add this statement to your init() to see the actual value:


Print( "Point = " + Point );


If it says 0.00001 then you have two options to fix it:


1) change all references to Point with your variable/function that will hold the correct value.

2) multiply your SL/TP levels by 10

*change all references to Point with your variable/function that will hold the correct value.*


Where is this folder would this be located?

 

In your init() function:

.

//This will multiply by 10 any settings you want if it's a tenth-of-a-pip broker. You can use them normally as PIPs in any calculation further down in the EA.

if(Point == 0.001 || Point == 0.00001){

StopLoss *= 10;

TakeProfit *= 10;

}

.

Hope this helps,

Jon

 
Archael:

In your init() function:

.

//This will multiply by 10 any settings you want if it's a tenth-of-a-pip broker. You can use them normally as PIPs in any calculation further down in the EA.

if(Point == 0.001 || Point == 0.00001){

StopLoss *= 10;

TakeProfit *= 10;

}

.

Hope this helps,

Jon

Don't forget to alter your slippage value in the same way!


CB

 
bstone wrote >>

Add this statement to your init() to see the actual value:


Print( "Point = " + Point );


If it says 0.00001 then you have two options to fix it:

1) change all references to Point with your variable/function that will hold the correct value.

2) multiply your SL/TP levels by 10

fwiw - Print() defaults to 4digit resolution.

Must employ DoubleToStr(Point,Digits) of better still, to see max resolution use DoubleToStr(Point,8)

Reason: