Forum

Undeclared Identifier Error

Hi, I tried compiling this code for an EA but kept getting an error. Please help. if (secondCandleAfterBullish) { if (! PositionGetInteger ( POSITION_TYPE )) { Trade.Buy(magicNumber, 0.1 , Ask, 0 , 0 , 0 , "Buy" , 0 , clrNONE ); } } if (secondCandleAfterBearish) {