What is Normalize?

 

Hi

I am trying to get my head around Normalize construct like NormalizeDouble. Maybe because I am thinking of it on the lines of Round construct.


Confused and need help in understanding it. Some simple examples will do it.


Thanks

 
mittalpa:

Hi

I am trying to get my head around Normalize construct like NormalizeDouble. Maybe because I am thinking of it on the lines of Round construct.


Confused and need help in understanding it. Some simple examples will do it.


Thanks

It sort of rounds off a value to 5 decimal places. so if your price is 1.12345678 it will convert it to 1.1234600.. Refer to the help file too for other examples. Hope it helps.

 
heyarn:

It sort of rounds off a value to 5 decimal places. so if your price is 1.12345678 it will convert it to 1.1234600.. Refer to the help file too for other examples. Hope it helps.

Not quite.

NormalizeDouble will round the value to the degree of precision you specify. It doesn't have to be 5 decimal places.

 
cloudbreaker:

Not quite.

NormalizeDouble will round the value to the degree of precision you specify. It doesn't have to be 5 decimal places.

Is NormalizeDouble the only Normalize function in MQL?

 
mittalpa:

Is NormalizeDouble the only Normalize function in MQL?

Yes.

What else have you got in mind that you might want to normalize?

 
cloudbreaker:

Yes.

What else have you got in mind that you might want to normalize?

I dunno :)


I am still in process of understanding it. Thanks for quick response.