If using Zig in a strategy, you must delay the buy/sell signals until the 
actual bar prices can confirm the pivot points that Zig was able to determine 
via looking into the future.

The AFL Library in the users zone has a good example of this.

http://www.amibroker.com/members/library/detail.php?id=353

P.S.
Change Null to zero in the following two lines to get a proper Plot.
PivotLow = Ref(IIf(Ref(ROC(ZZ,1),-1) < 0 AND ROC(ZZ,1) > 0, 1, Null),1);
PivotHigh = Ref(IIf(Ref(ROC(ZZ,1),-1) > 0 AND ROC(ZZ,1) < 0, 1, Null),1);

Mike

--- In [email protected], Tony M <pqj...@...> wrote:
>
> Thanks for the reply. I am backtesting a system that uses Zig function. The 
> backtest result is good, but I suspect Zig function may artificially increase 
> the profit. I want to use Explore to generate signal day by day and compare 
> with the backtest result, is this a good method to find whether the system is 
> profitable? It is very time consuming to use Explore to generate signal day 
> by day and than compute the result. Any quick method to test if the system is 
> profitable in real trading? Thanks.
> 
> 
> 
> ________________________________
> From: reefbreak_sd <reefbreak...@...>
> To: [email protected]
> Sent: Mon, April 12, 2010 7:57:12 PM
> Subject: [amibroker] Re: Can Zig function be used in a system?
> 
>   
> One additional use for Zig is to see if a security has large enough price 
> swings to trade profitably. 
> 
> Some low volatility securities become unprofitable to trade if you factor in 
> commissions and bid/ask slippage.
> 
> ReefBreak 
> 
> --- In amibro...@yahoogrou ps.com, "Chris DePuy" <cdepuy@> wrote:
> >
> > The way I have seen it explained is you would use zig to determine what 
> > "perfect" performance would be.  Then compare it to your system that you 
> > are testing that does not use zig.  The timeframes used in zig should be 
> > similar to those in your other system.
> > 
> > 
> > 
> >   ----- Original Message ----- 
> >   From: Tony M 
> >   To: amibro...@yahoogrou ps.com 
> >   Sent: Monday, April 12, 2010 6:09 PM
> >   Subject: [amibroker] Can Zig function be used in a system?
> > 
> > 
> > 
> > 
> >   I am new to Amibroker and I read from the Amibroker UserGuide that the 
> > Zig function may looking into the future. Does this mean the Zig function 
> > can not be used for any trading system? And how do I know if the Zig 
> > function is skewing the backtesting result?
> >   Thanks,
> >   Tony
> >
>


Reply via email to