Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Zig-Hi-Zag-Lo for Amibroker (AFL)
xavier
over 13 years ago
Amibroker (AFL)

Rating:
3 / 5 (Votes 2)
Tags:
amibroker, zigzag

To use to plot the true Peak High and Trough Low
for study of chart pattern, to create trading system

Modified from http://trader.online.pl/MSZ/e-w-ZigZag_HiLo.html
Created By TohMz

All credit goes to the creator

Screenshots

Similar Indicators / Formulas

alcoba zigzag modified
Submitted by radenmasmaksum over 13 years ago
ZigZag
Submitted by muthumkm over 14 years ago
Zig Zag Pivot Scan
Submitted by jarjis_sk almost 15 years ago
Wave Indicator
Submitted by nicotan78 almost 15 years ago

Indicator / Formula

Copy & Paste Friendly
/*
   Zig-Hi-Zag-Lo

   To use to plot the true Peak High and Trough Low
   for study of chart pattern, to create trading system

   Modified from http://trader.online.pl/MSZ/e-w-ZigZag_HiLo.html

   By TohMz 
*/
pr=Param("ZigZag change amount", 5, 0.1,100,0.1);

pk=PeakBars(H,pr)==0;
tr=TroughBars(L,pr)==0;

zzHi=Zig(H,pr);
zzLo=Zig(L,pr);
Avg=(zzHi+zzLo)/2;

x=IIf(pk,zzHi,IIf(tr,zzLo,IIf(Avg>Ref(Avg,-1),H,L)));
zzHiLo=Zig(x,pr);

Plot( zzHiLo, "", ParamColor("Color",colorRed), ParamStyle("Style"));

//-- Delete below, to allow attach to any price chart
_N(Title = StrFormat("{{NAME}}- {{INTERVAL}} {{DATE}} O= %g, H= %g, L= %g, C= %g (%.1f%%) V= " +WriteVal( V, 1.0 ) +"\n{{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
PriceStyle = GetPriceStyle();
PriceStyleOpt = ParamStyle("Style") | PriceStyle;

if (PriceStyle==styleCandle)
   Plot( C, "", colorBlack,  PriceStyleOpt); 
else
   Plot( C, "", IIf( Close >= Ref(C, -1), colorBlue, colorRed ), PriceStyleOpt);

3 comments

1. ole

Looks into the future so not useful for developing a system.

2. halfman

i’ve been looking for this. thx. every zigzag is looking into the future. not many traders can use this. :D

3. amir4xx112

thanks

Leave Comment

Please login here to leave a comment.

Back