MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

GANN - HiVisual & LoVisual

Zero Lag EMA

Period:= Input("What Period",1,250,10);
EMA1:= Mov(CLOSE,Period,E);
EMA2:= Mov(EMA1,Period,E);
Difference:= EMA1 - EMA2;
ZeroLagEMA:= EMA1 + Difference;
ZeroLagEMA

 

----- Original Message -----
From: "j seed" <jseed_10@xxxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Thursday, April 27, 2000 9:42 PM
Subject: RE: (Market) Jul Corn


Daryl,
Good idea! Best way that I can think of is to split the formula into a positive and negative formula then plot each separately with no plot if pos. is in neg. territory or neg. is in pos. territory. You would delete the last formula line and use either of the last two lines.

J.

From: "Adam Hefner" <vonhef@xxxxxxxxxxxx>
Reply-To: metastock@xxxxxxxxxxxxx
To: <metastock@xxxxxxxxxxxxx>
Subject: Re: (Market) Jul Corn
Date: Thu, 27 Apr 2000 22:18:40 -0500

I am not sure I follow how you can do this?
How can you have MetaStock do a "no plot" as you have put it?

Adam

----- Original Message -----
From: "j seed" <jseed_10@xxxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Friday, April 28, 2000 8:26 AM
Subject: Re: (Market) Jul Corn


Adam,
While Metastock does not allow for a true nothing plot, it does allow for a default plot. If the Gann HiLo were an oscillator we could simply default to a zero line and have a positive plot in one color and a negative plotin another. Since the Gann HiLo is an indicator we must choose another indicator for a default. The possibilities are endless but I choose the ZeroLag Ema as my default in the indicators that are shown below. Plot each on a price chart with a separate color for each. You must also plot the ZeroLag Emaon the chart in a third color. I named these indicators "visual" becausethey serve as visuals only and would not work in an exploration or systemtest.

BTW: I like your your expert adviser approach and believe that Daryl could use either approach to fulfill his visual fantasies!

J.

 


GANN - HiVisual

HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),
{then}1,
{else}If(CLOSE<Ref(Mov(L,3,S),-1),
{then}-1,
{else}0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiVisual:=If(HLv=-1,
{then}Mov(H,3,S),
{else}{place default here}Fml("Zero Lag Ema")) ;
HiVisual;

 

 

GANN - LoVisual

HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),
{then}1,
{else}If(CLOSE<Ref(Mov(L,3,S),-1),
{then}-1,
{else}0));
HLv:=ValueWhen(1,HLd<>0,HLd);
LoVisual:=If(HLv=-1,
{then}{place default here}Fml( "Zero Lag Ema" ) ,
{else} Mov(L,3,S ));
LoVisual;

 


GANN - HiLo Osc

HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),
{then}1,
{else}If(CLOSE<Ref(Mov(L,3,S),-1),
{then}-1,
{else}0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiVisual:=If(HLv=-1,
{then}C-Mov(H,3,S),
{else}0);
LoVisual:=If(HLv=1,
{then}C-Mov(L,3,S),
{else}0);

HiVisual;
LoVisual;

 

Re: (Market) Jul Corn

. To: <metastock@xxxxxxxxxxxxx>
. Subject: Re: (Market) Jul Corn
. From: "Adam Hefner" <vonhef@xxxxxxxxxxxx>
. Date: Fri, 28 Apr 2000 18:42:31 -0500
. References: <20000428132628.15095.qmail@xxxxxxxxxxx>
. Reply-To: metastock@xxxxxxxxxxxxx
. Sender: owner-metastock@xxxxxxxxxxxxx

I see what you are doing....your substituting another code that you alsohave plotted on the chart. A person could also create a oscillator and plotas a histogram (in its own window) such as shown below.

 
 
[21501]

From: "Adam Hefner" <vonhef@xxxxxxxxxxxx>
Reply-To: metastock@xxxxxxxxxxxxx
To: <metastock@xxxxxxxxxxxxx>
Subject: Re: (Market) Jul Corn
Date: Wed, 19 Apr 2000 23:28:40 -0500

J,
I am using some indicators from a trading method Called "Point & Line" by Charles Drummond. I recently created these indicators into MetaStock code and Expert Advisor.... but the code probably would benefit little with out the understanding of its usage. I have attached a weekly chart with someof the indicators shown. I have never used Guppy's Zero Lag MA, did you find the Gann HiLo from that site? Seems I might have seen that one
before

<g>.


-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of j seed
Sent: Thursday, April 20, 2000 10:35 PM
To: metastock@xxxxxxxxxxxxx
Subject: Re: (Market) Jul Corn


Adam,
Here's the Gann HiLo:

GANN-HiLo

HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),
{then}1,
{else}If(CLOSE<Ref(Mov(L,3,S),-1),
{then}-1,
{else}0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,
{then}Mov(H,3,S),
{else}Mov(L,3,S));
HiLo;

I'm not sure if I got it off of the Guppy site or not. What indicator isgenerating the gold dots on your chart? Would love to hear more about yourDrummond work.
J.

[21545]

Source / From: TOP
http://purebytes.com/archives/metastock/

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 i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!