Graag wat respons op onderstaand systeem:
Functie zTSI:
inputs: 
 ? ? ? ?Price(NumericSeries), 
 ? ? ? ?Raw(NumericSimple), 
 ? ? ? ?Smooth(NumericSimple), 
 ? ? ? ?U(NumericSimple); 
vars: 
 ? ? ? ?NetChg(0); 
 ? ? ? ?NetChg = Price - Price[1]; 
Value1 = 100 * XAverage(XAverage(XAverage(NetChg,Raw),Smooth),U); 
Value2 = XAverage(XAverage(XAverage(AbsValue(NetChg),Raw),Smooth),U);; 
if Value2 <> 0 then 
 ? ? ? ?zTSI = Value1 / Value2 
else 
 ? ? ? ?zTSI = 0; 
end;
Systeem:
inputs: 
 ? ? ? ?Price(Close), 
 ? ? ? ?Raw(25), 
 ? ? ? ?Smoothed(13); 
if ztsi(Price, Raw, Smoothed,1)<xaverage(ztsi(Price, Raw, Smoothed,1),5) 
then Sell next bar at h limit;
if ztsi(Price, Raw, Smoothed,1)>xaverage(ztsi(Price, Raw, Smoothed,1),5) 
then buy Next bar at l limit;
Plot1(zTSI(Price, Raw, Smoothed,1), "TSI"); 
Plot2(XAverage(zTSI(Price, Raw, Smoothed,1),5),"XAvg "); 
Plot3(0,"0");
plot4(currentcontracts,'position'); ?
end;
Groetjes Paul
			
		