Hier de TII indicator met systeem (grafiek eigenschappen-> Trading)
Formule is afgeleid van http://www.traders.com/Documentation/FE ... sTips.html
Ik plaats deze omdat er op www.belbelta.nl alleen de metastock code staat.
input:
AvgLength( 60 ),
DevCalcLength( 30 ),
BuyNivo(80),
SellNivo(20) ;
variables:
Avg( 0 ),
SDPlus( 0 ),
SDMinus( 0 ),
Dev( 0 ),
Offset( 0 ),
TII( 0 ) ;
Avg = Average( Close, AvgLength ) ;
SDPlus = 0 ;
SDMinus = 0 ;
for Offset = 0 to DevCalcLength - 1
begin
Dev = Close[Offset] - Avg ;
if Dev > 0 then
?SDPlus = SDPlus + Dev
else
?SDMinus = SDMinus - Dev ;
end ;
TII = SDPlus / ( SDPlus + SDMinus ) * 100 ;
Plot1(TII,'TII');
Plot2(BuyNivo,'BuyNivo');
Plot3(SellNivo,'SellNivo');
#BeginSystem('Sterke trend');
if TII > BuyNivo ?then Buy ?next bar market ;
if TII < SellNivo then Sell next bar market ;
#End;
(Edited by mvs at 8:09 pm op 1,okt. 2004)