if( (DAILY.RANGE > 2 || DAILY.A > 85 || DAILY.A < -85) )
{
do something;
}
However when I do the following, it works perfectly.
if( (DAILY.RANGE > 2 || DAILY.A > 85 || DAILY.A < -85) == true)
{
do something;
}
I don't understand why. I did some research and according to what I Google'd the default value is a boolean is false; however, the following code seem to default to true?
if(enteredpos) //enteredpos is a boolean variable with initial value set to false
{
do something
}
if(FirstTickofBar)
{
}
if((ToTime(Time[0]) == 220000))
{
}
Does it mean for boolean variables the default is false but for conditions within if statements you have to specify true or false condition?
Comment