Seems like I'm doing something wrong because the simple example works, from what I can tell. I'll take a closer look at my original script then.
Code:
function run()
{
	BarPeriod = 1;
	printf("\nLots=%.0f; LSLong=%i; LSShort=%i",Lots,LossStreakLong,LossStreakShort);
	plot("LossStreakLong",LossStreakLong,1,BLUE);
	plot("LossStreakShort",LossStreakShort,0,RED);
	plot("Lots",Lots,1,BLACK);

	static int iteration;
	if(is(INITRUN)) iteration=0;

	Stop = TakeProfit = 5*PIP;

	if(random() > 0) 
	{
		if(LossStreakLong>3) Lots=-1; else Lots=1;
		enterLong();
	}
	else 
	{
		if(LossStreakShort>3) Lots=-1; else Lots=1;
		enterShort();
	}

	if (iteration++ > (LookBack+150)) quit();
}


Thanks jcl