DislikedDo you know which particular routines are responsible/afflicted Steve? I can have a look for it later today.
Regards, Paul.Ignored
SlowTrend and FastTrend are seti to up or down - constants that the program works with i.e. up = "Up" etc, but I imagine you know this already,
CountOpenTrades() increments the value of OpenTrades from zero whenit finds open trades.
Therefore, in LookForTradingOpportunities() the EU buy should not have triggered because
double SendLots = HalfLot;//Initialise with a default value
initialises SendLots with the initial lot size
then
//Decide which trade to send, if any
//Initial buy
if (SlowTrend == up && OpenTrades == 0)
{
SendLong = true;
}//if (SlowTrend == up && OpenTrades == 0)
//Secondary buys
if (FastTrend == up && OpenTrades < 3 && BuyOpen)
{
SendLong = true;
SendLots = QuarterLot;
}//if (FastTrend == up && OpenTrades < 3)
should not have allowed the trade I featured to have been sent.
Buggered if I can see what the problem is.
Cheers