can anyone spot my problem with getting an EA to resume trading after MaxTrades?
hourstoresumetrading=48
Code:int resumetrading; if (ticket > 0) resumetrading = TimeCurrent() + 60.0 * (60.0 * HoursToResumeTrades);
somehow, TradeNow is coming out FalseCode:if (UseResumeTrading) { if (TimeCurrent() >= resumetrading) { RefreshRates(); LastBuyPrice = FindLastBuyPrice(); LastSellPrice = FindLastSellPrice(); if (LongTrade && LastBuyPrice - Ask >= PipStep * Point) TradeNow = TRUE; if (ShortTrade && Bid - LastSellPrice >= PipStep * Point) TradeNow = TRUE; } }
thanks for anyhelp, even if you have a better idea how to achieve this.
SP




Reply With Quote



