Thread: Ask!
View Single Post
  #1416 (permalink)  
Old 12-11-2008, 01:29 AM
sfindlay sfindlay is offline
Member
 
Join Date: Jul 2008
Posts: 30
sfindlay is on a distinguished road
Help with my EA please

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
Attached Files
File Type: mq4 Sue WIlliamsV2.mq4 (8.6 KB, 22 views)

Last edited by sfindlay; 12-11-2008 at 01:02 PM. Reason: clarification
Reply With Quote