I am trying to create a simple EA that recognizes pinbars. I would like the EA to check every currency pair while only attached to one chart but it doesn't check the specified currency. If I write null instead of "EURUSD" and attaches it to a EURUSD chart it works. What have I done wrong?
Here is the code.
Here is the code.
QuoteDislikedif (iClose("EURUSD",PERIOD_MN1,1) - iOpen("EURUSD",PERIOD_MN1,1) > 0.0001 && iClose("EURUSD",PERIOD_MN1,1) - iOpen("EURUSD",PERIOD_MN1,1) < (iOpen("EURUSD",PERIOD_MN1,1) - iLow("EURUSD",PERIOD_MN1,1))/2)
{
Alert("Pin bar");
}
If slaughterhouses had glass walls, everyone would be a vegetarian!