02-04-2012
I had met the same problem, Pitbull doesn't open other trade except after the start. But the problem was not the EA, the problem was Crap-T4. I explain:
The switch that allow to open new trade is:
Code: Select all
//Open trades
if (OldTradingTime != iTime(NULL, TradingTimeFrame, 0) && !DoneForToday)
{
OldTradingTime = iTime(NULL, TradingTimeFrame, 0);
LookForTradingOpportunities();
}
Then, I had plotted on the chart the variables above but after two hours were still the same (my chart was on TF15), and obviously PB didn't open any other trade.
05-04-2012
after three days of tests, I noticed that seem a problem of iTIME() update , because on TF 1 the PB work right, open trade after a "closealltrades" function, open other trade of pairs that gone over the Threshold. If I come back to TF15, PB open three or four trade at the begin and nothing else, only close all if target is reached. As wrote above, the value of the function iTime() plotted on the chart doesn't change also after hours (sometimes). I tried to use Time[] data array but Empty4 doesn't update it also.
I think it's better to find a workaround instead to use itime() function, e.g. extract values from TIME_MINUTE and activate LookForTradingOpportunities() when 0 - 15 - 30 - 45 are reached, for simulate a TF15.
In these three days I changed Criminal from alpari to Gomarket but nothing is changed.
Steve, what do you think about?
JJ