Hi zorro's

i read the manual about the adviseLong/-short command, but there are no examples in it? are their any here?

this is my code i used how i understand this command:

Code:
function run()
{
	set(TICKS|RULES);
	StartDate = 20100101;
	
	
	var lv = 20;
	var hv = 80;
	int tradeL, tradeS;
	
	var *stochs = series(Stoch(5,3,MAType_SMA,5,MAType_SMA),20);
	tradeL = adviseLong(DTREE, 0, lv,hv, stochs[0],stochs[1]);
	tradeS = adviseShort(DTREE, 0, lv,hv, stochs[0],stochs[1]);
	Stop = 2*ATR(100);
	if( tradeL > 0)
	{
		exitShort();
		if(numLong() ==0) enterLong();
	} 
	if( tradeS > 0) 
	{
		exitLong();
		if(numShort() ==0) enterShort();
	}
}



and the prediction after training ist 0%

the .rul file looks like:

Code:
// Prediction rules generated by Zorro

int EURUSD_L(float* sig)
{ return -100; }

int EURUSD_S(float* sig)
{ return -100; }

// Prediction accuracy: 0%



did i something wrong here?