**MarcoyLiss:**

Hi, i'm started to coding a few months ago, now that I've managed to do my own strategy, I want to automate it. My problem is that my strategy needs to get the price between the high and low but i want that difference in whole number,

not as 0.0000300, instead of 300.

At the moment my code get the difference between prices, but i have not managed to convert it in a whole number. If someone could guide me to any solution it will be well appreciated.

Btw i have some ideas but don't how to code them:

1.- Convert the price decimals to integer, eliminating the point.

2.- Convert the price by multiplying it for a number that depends on the decimals that has the pair in wich i'm working. The problem is that I would have to check for every pair the decimal places.

Hope someone could help me, and sorry for this horrible english.

Use the function or variable for the symbol's **point** size: https://www.mql5.com/en/docs/check/point

( High - Low ) /_Point;

- www.mql5.com

Hi, i'm started to coding a few months ago, now that I've managed to do my own strategy, I want to automate it. My problem is that my strategy needs to get the price between the high and low but i want that difference in whole number,

not as 0.0000300, instead of 300.

At the moment my code get the difference between prices, but i have not managed to convert it in a whole number. If someone could guide me to any solution it will be well appreciated.

Btw i have some ideas but don't how to code them:

1.- Convert the price decimals to integer, eliminating the point.

2.- Convert the price by multiplying it for a number that depends on the decimals that has the pair in wich i'm working. The problem is that I would have to check for every pair the decimal places.

Hope someone could help me, and sorry for this horrible english.