How would I find out if The Awesome Indicator is Red?

 

I couldnt find out how to do this. So I made a code, that detected if the next value is 90% of the previosu candle it detects it as red. EA must be colorblind xd.

bool AwesomeRedConfirmedVariable()

{



double AOone = iAO(_Symbol,_Period,1);

double AOtwo = iAO(_Symbol,_Period,2);

//double AOthree = iAO(_Symbol,_Period,3);

if(AOone < (AOtwo*0.90))

{

return(true);

}



return(false);

}
 
bool AwesomeRedConfirmedVariable()
{
double AOone =MathAbs(iAO(_Symbol,_Period,1));
double AOtwo =MathAbs(iAO(_Symbol,_Period,2));
if(AOone < (AOtwo*0.90))
{
return(true);
}
return(false);
}

try this 

 
Mc Temple:

Please edit your post and

use the code button (Alt+S) when pasting code

 
Lorentzos Roussos: try this 
Your code
if(AOone < (AOtwo*0.90))
{
return(true);
}
return(false);
}
Simplified
return AOone < AOtwo*0.90;
          Increase Order after stoploss - MQL4 programming forum #1.3 2017.05.29
 
William Roeder:
Your code
Simplified
          Increase Order after stoploss - MQL4 programming forum #1.3 2017.05.29

nice thank you