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

RE: ZigZag validity Expert



PureBytes Links

Trading Reference Links


Spyros,I was trying to copy your expert and was stumbled 
at the highlighted parts, which are not valid.  Could you be kind enough to 
elucidate.  Thanks.
 
<FONT face="Lucida Sans Unicode" color=#0000ff 
size=3>Bijan
Name: UpTrend confirmedGraphic: Thumbs UpColor : Green or Dk 
GreenCondition :cond:=Zig(CLOSE ,10 ,% ) > Ref(Zig(CLOSE ,10 ,% 
),-1)AND Fml("ZigZag validity") = 1;<FONT 
size=4>=>Cross(cond,0.5)Name: DownTrend confirmedGraphic: 
Thumbs DownColor : RedCondition :cond:=Zig(CLOSE ,10 ,% ) < 
Ref(Zig(CLOSE ,10 ,% ),-1)AND Fml("ZigZag validity") = 1;<FONT 
size=4>=>Cross(cond,0.5)-----Original 
Message-----From: owner-metastock@xxxxxxxxxxxxx [<A 
href="mailto:owner-metastock@xxxxxxxxxxxxx";>mailto:owner-metastock@xxxxxxxxxxxxx]On 
Behalf Of SRSent: Saturday, March 02, 2002 01:01 AMTo: 
metastock@xxxxxxxxxxxxxxxxxxSubject: ZigZag validity 
ExpertSince there are many users who showed interest in my 
indicator, I providehere the code for a complete Expert. It uses Trends, 
Highlights, Symbols,Alerts and a simple 
Commentary.______________________________________________________New 
Expert for ZigZag validityName: ZigZag 
validity------------------------------------------------------TrendsBullish:Zig(CLOSE 
,10 ,% ) > Ref(Zig(CLOSE ,10 ,% ),-1)AND Fml("ZigZag validity") = 
1Bearish:Zig(CLOSE ,10 ,% ) < Ref(Zig(CLOSE ,10 ,% ),-1)AND 
Fml("ZigZag validity") = 
1------------------------------------------------------Highlights 
(the code is the same as above)Name: UpTrend confirmedColor: Green 
or Dk GreenCondition:Zig(CLOSE ,10 ,% ) > Ref(Zig(CLOSE ,10 ,% 
),-1)AND Fml("ZigZag validity") = 1Name: DownTrend 
confirmedColor: RedCondition:Zig(CLOSE ,10 ,% ) < Ref(Zig(CLOSE 
,10 ,% ),-1)AND Fml("ZigZag validity") = 
1------------------------------------------------------Symbols 
(there are 3 symbols)Name: Zig invalidGraphic: ? (question 
mark)Color : BlackCondition :Cross(0.5, Fml("ZigZag 
validity"))Name: UpTrend confirmedGraphic: Thumbs UpColor : 
Green or Dk GreenCondition :cond:=Zig(CLOSE ,10 ,% ) > 
Ref(Zig(CLOSE ,10 ,% ),-1)AND Fml("ZigZag validity") = 
1;Cross(cond,0.5)Name: DownTrend confirmedGraphic: Thumbs 
DownColor : RedCondition :cond:=Zig(CLOSE ,10 ,% ) < 
Ref(Zig(CLOSE ,10 ,% ),-1)AND Fml("ZigZag validity") = 
1;Cross(cond,0.5)------------------------------------------------------Alerts 
(there are 3 alerts using the same code as the Symbols section)Name: Zig 
invalidAlert : Zig is invalid hereCondition:Cross(0.5,Fml("ZigZag 
validity"))Name: UpTrend confirmedAlert : Up trend 
confirmedCondition :cond:=Zig(CLOSE ,10 ,% ) > Ref(Zig(CLOSE ,10 
,% ),-1)AND Fml("ZigZag validity") = 1;Cross(cond,0.5)Name: 
DownTrend confirmedAlert : Down trend confirmedCondition 
:cond:=Zig(CLOSE ,10 ,% ) < Ref(Zig(CLOSE ,10 ,% ),-1)AND 
Fml("ZigZag validity") = 
1;Cross(cond,0.5)------------------------------------------------------Commentary<expert>by 
Spyros RaftopoulosReview of <name> 
(<symbol>)<date>------------------------------------------Zig(Close,10,% 
): writeval(Zig(Close,10,% ),8.2)writeif(Zig(Close,10,% 
)>ref(Zig(Close,10,% ),-1), "The ZigZag indicator isascending which means 
that prices are moving up.", "Prices move downward asshown by the descending 
ZigZag indicator. ")writeif(fml("ZigZag validity")=1, "This trend is 
confirmed by the ZigZagvalidity indicator. Zig Zag has been valid 
forwriteval(barssince(cross(fml("ZigZag validity"),0.5)), 3.0) 
bars.","However, the trend is not confirmed yet. Zig Zag has been invalid 
forwriteval(barssince(cross(0.5,fml("ZigZag validity"))), 3.0) 
bars.")___________________________________________The above 
tools are very similar: Alerts coincide with Symbols andHighlights coincide 
with Trends.Therefore you may not need all of them at the same 
time.Remember that, at any time, you can activate or deactivate any of the 
aboveby clicking on the corresponding check box(es).I hope this 
helps. In any case please drop me a note.If there are any more problems also 
let me 
know.CheersSpyros____________________________________________