Download MetaTrader 5

what is the meaning of this code “ if(_Digits==5 || _Digits==3) tsp=tsp*10; ” ?

To add comments, please log in or register
Xianba Xia
2495
Xianba Xia  

 if(_Digits==5 || _Digits==3) tsp=tsp*10; 

this code also at top of files,but I don't know the detail reasons.why? 

Alain Verleyen
Moderator
31184
Alain Verleyen  
Xianba Xia:

 if(_Digits==5 || _Digits==3) tsp=tsp*10; 

this code also at top of files,but I don't know the detail reasons.why? 

To check something...not enough information to answer.
Stuart Browne
5898
Stuart Browne  
Xianba Xia:

 if(_Digits==5 || _Digits==3) tsp=tsp*10; 

this code also at top of files,but I don't know the detail reasons.why? 

It's checking if you're on a 5/3 digit broker or a 4/2. If you're on a 5/3 then points need to be multiplied by 10. Common code contained in most MT programs (though you would think MT could work that out for itself!)
Alain Verleyen
Moderator
31184
Alain Verleyen  
Stuart Browne:
It's checking if you're on a 5/3 digit broker or a 4/2. If you're on a 5/3 then points need to be multiplied by 10. Common code contained in most MT programs (though you would think MT could work that out for itself!)
And what is tsp ?
Stuart Browne
5898
Stuart Browne  
Alain Verleyen:
And what is tsp ?
Teaspoon? ;-)
Khurram Mustafa
30278
Khurram Mustafa  
lol 
Francis Dogbe
9498
Francis Dogbe  
Stuart Browne:
Teaspoon? ;-)
teaspoon?. hahaha. very funny Stu. I think it is trailing stop
To add comments, please log in or register