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

RE: ZigZag validity Expert



PureBytes Links

Trading Reference Links

How can one say...good tool...if you don't have the zigzag validity..
igor

-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx] On Behalf Of Sherwood Hu
Sent: zaterdag 2 maart 2002 18:13
To: metastock@xxxxxxxxxxxxx; metastock@xxxxxxxxxxxxxxxxxx
Subject: RE: ZigZag validity Expert

Good tool. But I lost the definition of ZigZag Validity formula. Mind
send that to me?

Thanx
Sherwood

-----Original Message-----
From: owner-metastock@xxxxxxxxxxxxx
[mailto:owner-metastock@xxxxxxxxxxxxx] On Behalf Of SR
Sent: Saturday, March 02, 2002 3:01 AM
To: metastock@xxxxxxxxxxxxxxxxxx
Subject: ZigZag validity Expert


Since there are many users who showed interest in my indicator, I
provide
here the code for a complete Expert. It uses Trends, Highlights,
Symbols,
Alerts and a simple Commentary.
______________________________________________________

New Expert for ZigZag validity

Name: ZigZag validity

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

Trends

Bullish:
Zig(CLOSE ,10 ,% ) > Ref(Zig(CLOSE ,10 ,% ),-1)
AND Fml("ZigZag validity") = 1

Bearish:
Zig(CLOSE ,10 ,% ) < Ref(Zig(CLOSE ,10 ,% ),-1)
AND Fml("ZigZag validity") = 1

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

Highlights (the code is the same as above)

Name: UpTrend confirmed
Color: Green or Dk Green
Condition:
Zig(CLOSE ,10 ,% ) > Ref(Zig(CLOSE ,10 ,% ),-1)
AND Fml("ZigZag validity") = 1

Name: DownTrend confirmed
Color: Red
Condition:
Zig(CLOSE ,10 ,% ) < Ref(Zig(CLOSE ,10 ,% ),-1)
AND Fml("ZigZag validity") = 1

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

Symbols (there are 3 symbols)

Name: Zig invalid
Graphic: ? (question mark)
Color : Black
Condition :
Cross(0.5, Fml("ZigZag validity"))

Name: UpTrend confirmed
Graphic: Thumbs Up
Color : Green or Dk Green
Condition :
cond:=
Zig(CLOSE ,10 ,% ) > Ref(Zig(CLOSE ,10 ,% ),-1)
AND Fml("ZigZag validity") = 1;
Cross(cond,0.5)

Name: DownTrend confirmed
Graphic: Thumbs Down
Color : Red
Condition :
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 invalid
Alert : Zig is invalid here
Condition:
Cross(0.5,Fml("ZigZag validity"))

Name: UpTrend confirmed
Alert : Up trend confirmed
Condition :
cond:=
Zig(CLOSE ,10 ,% ) > Ref(Zig(CLOSE ,10 ,% ),-1)
AND Fml("ZigZag validity") = 1;
Cross(cond,0.5)

Name: DownTrend confirmed
Alert : Down trend confirmed
Condition :
cond:=
Zig(CLOSE ,10 ,% ) < Ref(Zig(CLOSE ,10 ,% ),-1)
AND Fml("ZigZag validity") = 1;
Cross(cond,0.5)

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

Commentary

<expert>
by Spyros Raftopoulos

Review 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
is
ascending which means that prices are moving up.", "Prices move downward
as
shown by the descending ZigZag indicator. ")
writeif(fml("ZigZag validity")=1, "This trend is confirmed by the ZigZag
validity indicator. Zig Zag has been valid for
writeval(barssince(cross(fml("ZigZag validity"),0.5)), 3.0) bars.",
"However, the trend is not confirmed yet. Zig Zag has been invalid for
writeval(barssince(cross(0.5,fml("ZigZag validity"))), 3.0) bars.")

___________________________________________

The above tools are very similar: Alerts coincide with Symbols and
Highlights 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
above
by 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.

Cheers
Spyros

____________________________________________