Please can you help me with my EA? It is based on the Inside Bar strategy, and, while it is very profitable in backtesting from June 08 this is a completely random phenomenon as it is not following the program whatsoever. The trade entry logic is based on this post here
Between 40-100 pips per Day. But, instead, it places a new trade any old where as soon as the old one is closed and ignores the trading requirements. I'm sure my problem is really simple but my skills are not great.
I think that the problem is with these lines of code here:
if(Open[3]>Close[3] && High[2]<=High[3] && Low[2]>=Low[3] && Open[2]<Close[2] && ask-2*Point > High[2] || ask-2*Point> High[1])
{
Candle="Long";
}
if(Open[3]<Close[3] && High[2]<=High[3] && Low[2]>=Low[3] && Open[2]>Close[2] && bid+2*Point < Low[2] || bid+2*Point < Low[1])
{
Candle="Short";
}
Please can somebody help as I have invested hours trying to fix this and am running out of ideas!
Thanks in advance