- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
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. |
|