MetaStock™ Zone Tworzenie Sytemów Trader Shop Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

 

Keltner TSI
Another way of using Keltner Channels

. To: <Omega-List@xxxxxxxxxx>
. Subject: Another way of using Keltner Channels
. From: "Gaius Marius" <magnus@xxxxxxxxxxx>
. Date: Sat, 3 Oct 1998 19:26:12 -0400
. Reply-To: "Gaius Marius" <magnus@xxxxxxxxxxx>
. Resent-Date: Sat, 3 Oct 1998 16:24:56 -0700
. Resent-From: omega-list@xxxxxxxxxx
. Resent-Message-ID: <"o3mz43.0.Vj4.89h5s"@mx1>
. Resent-Sender: omega-list-request@xxxxxxxxxx

Here's another system I've created a long time ago that uses Keltner channels as supplements to the main system. Essentially, we use William Blau's TSI to trigger the trade and when the prices moves beyond the Upper or Lower Keltner Channels, we add a second position to the first trade.

--------------------------------------------

First thing you're gonna need is the following function (based on William Blau's book," Momentun, Divergence and Direction"):


Type : Function, Name : MTM

Input: R(Numeric),S(Numeric);

if close-close[1]<>0 then
MTM=Xaverage(Xaverage(Close-Close[1],R),S)/Xaverage( XAverage(AbsValue(Close
-Close[1]),R),S);

 


Type : Signal, Name : Keltner TSI

Inputs: R(21),S(12),Q(6),Len(25),Fc(1.75),Extra(1);
Vars: Mo(0),Avg(0),Upper(0),Lower(0),Ncontr(0),Mp(0); Ncontr=1;
{Number of Contracts to trade is initialized to 1}
Mo=MTM(R,S);
Avg=XAverage(MTM(R,S),Q);
Upper=XAverage(Close,Len)+Fc*XAverage(TrueRange,Len);
Lower=XAverage(Close,Len)-Fc*XAverage(TrueRange,Len);
Mp=MarketPosition;

If Mp<>1 and Mo crosses above Avg then buy ncontr contracts on close;
If MP=1 and Close crosses above Upper then buy Extra contracts on close;
If MP<>-1 and Mo crosses below Avg then sell ncontr contracts on close;
If MP=-1 and Close crosses below Lower then sell Extra contracts on close;

 

t-s-Keltner_TSI.gif
Never, never, invest any money in a fund whose principals include financial academics.
-from www.adtrading.com

[12074]

Source / From: TOP
http://www.purebytes.com

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie niesie ze sob± ryzyko poważnych strat finansowych!