Yes, I have set the TICKS flag, that's another thing that should be working fine, but on the live test, it was not the same.

Here is the rest of the code, it's very simple:

Code:
function run()
{
	set(PLOTNOW+TICKS);
	StartDate = 2005;
	BarPeriod = 60;
	
	if(priceClose(0) > priceClose(1) and priceClose(1) > priceClose(2)){
		reverseLong(1);
	}
	if(priceClose(0) < priceClose(1) and priceClose(1) < priceClose(2)){
		reverseShort(1);
	}
}




What could be going wrong?

Thanks jcl!!