60 TRADES WIN - 40 LOSE LITTLE= PROFITABLE STRATEGY.
Thanks for the article and the attached code. I find it very informative.
It seems to me that the comments for bullish/bearish candles are mixed up:
if(timeBarInside!=iTime(Symbol(),Period(),1) && //no orders have been opened at this pattern yet
_bar2size>bar2size && //the second bar is big enough, so the market is not flat
open2>close2 && //the second bar is bullish
close1>open1 && //the first bar is bearish
high2>high1 && //the bar 2 High exceeds the first one's High
open2>close1 && //the second bar's Open exceeds the first one's Close
low2<low1) //the second bar's Low is lower than the first one's Low
In case of candle price open is greater than close that is bearish while close is grater than open is bullish.
I know it might be a bit late for the correction if I am right but I have just come across with your code and had a look.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.