Here's a situation.
double X;
Open[1] - Close[1] = X ;
Now X can be a minus value or plus value depending on where the market opened or closed.
If the market closed below the open then its a positive value.
If the market opened below the close then its a negative value.
But when I get a minus value I want to remove the minus sign from the value, ie if its a negative value as in case 2 mentioned above
Basically what I am looking for is the no of pips between the open and close of a bar.
How do I solve this?
double X;
Open[1] - Close[1] = X ;
Now X can be a minus value or plus value depending on where the market opened or closed.
If the market closed below the open then its a positive value.
If the market opened below the close then its a negative value.
But when I get a minus value I want to remove the minus sign from the value, ie if its a negative value as in case 2 mentioned above
Basically what I am looking for is the no of pips between the open and close of a bar.
How do I solve this?