[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kase Indicator



PureBytes Links

Trading Reference Links

I don't have time to code this and check it in Metastock right now, but here's the gist of what
needs to be done.....see inserts below:

--- Lionel Issen <lissen@xxxxxxxxxxxxxx> wrote:
> Can you tell what the symbolism means or do you have a description of his? I
> do not use trade station.
> Lionel Issen
> lissen@xxxxxxxxxxxxxx
> ----- Original Message -----
> From: "Erich Kohlhofer" <KohlhoEG@xxxxxxxxxxxx>
> To: <metastock@xxxxxxxxxxxxx>
> Sent: Tuesday, July 24, 2001 3:40 AM
> Subject: Kase Indicator
> 
> 
> > Hi, this is the Cynthia Kase indicator written for Omega-Tradestation:
> >
> > input: N1(10);

Just use N1:=10; 
> >
> > var:KSDIUP(0),KSDIDN(0);

No need to explicitly define these in Metastock.
> >
> > if average(@TrueRange, n1) > 0 then
> > KSDIUP = ((high[N1]/low))/(( average(V, N1) * SquareRoot(n1)))
> > else KSDIUP = KSDIUP[1];

Just define a variable like KSDIUP:=If(ATR(N1)>0,....formula from above....,PREV);
In Tradestation, the [] are equivalent to Metastock's Ref( , ), so High[1] is Ref(High,-1)

> >
> > if average(@TrueRange, n1) > 0 then
> > KSDIDN = ((high/low[N1]))/(( average(V, N1) * SquareRoot(n1)))
> > else KSDIDN = KSDIDN[1];
> >
> > if KSDIUP>KSDIDN then plot1(l,"l");
> > if KSDIUP<KSDIDN then plot2(h,"h");

Tradestation uses the Plot statement, whereas Metastock just plots a variable if you include it
alone in a line,
so
PLOT:=If(KSDIUP>KSDIDN,Low,If(KSDIUP<KSDIDN,High,(H+L)/2),(H+L/2));
PLOT;

This covers all three plot statements in this Tradestation example.

> >
> > if KSDIUP=KSDIDN then plot3((h+l)/2,"m")
> >
> > Does anyone have the MS code for this?
> >
> > Erich
> >
> 

=====
Dave Nadeau
Fort Collins, CO

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/