double BullishEngulfing=((O1>C1) && (C>O) && (C>=O1) && (C1>=O) && ((C-O)>(O1-C1)));
double BullishHarami=((O1>C1) && (C>O) && (C<=O1) && (C1<=O) && ((C-O)<(O1-C1)));
double BearishEngulfing=((C1>O1) && (O>C) && (O>=C1) && (O1>=C) && ((O-C)>(C1-O1)));
double BearishHarami=((C1>O1) && (O>C) && (O<=C1) && (O1<=C) && ((O-C)<(C1-O1)));
If you are asking if MetaTrader analyses or detects candle patterns, then the answer is "No". It is up to the coder to develop his own methods, whether that be in an Indicator, which can then be checked via "iCustom()" or coded directly in the EA logic.
If you are asking if there is a list of candle patterns here on the forum, then I would suggest you do a search and see, but I doubt that such a list exists. There might be a "Code Base" submission of an Indicator or EA that does detect various patterns, but you will have to do a search and see what is available.
Apologies for the invalid link earlier, my link gave both MQL4 code and MQL5 results
As you can see it's not totally trivial to search for code here and get the right link due to the two code base sections being resident in the same site (MQL5.com)
Due to the ambiguity of the search pages I think it is appropriate to give newer users a link to the search pages.
To add comments, please log in or register