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

Re: [amibroker] Zig is decieving?



PureBytes Links

Trading Reference Links

What??? Santa Clause
Doesn't exist? Im sure this attachment says:
        To:
Ron
        From:
Santa
Here is a Indicator/Explorer to help you deal with Zig.
As you Explore, You can see the Signals change.
Making Zig Smaller will give you Quicker Trend Response - But at the
expence of fragmenting the Main Trend.
Enjoy,
        Michael.S.G.
At 06:29 PM 5/08/2003 -0500, you wrote:
Is there
anyway to do visual historical backtesting of zig in a way such that the
zig code knows nothing at all about future events. 
I obviously do not know how AFL works with
zig.  When I run a scan on all stocks, n last days, n=1, then it is
only possible for zig to tell me what he knows based on the available
historical data plus the EOD data that I just downloaded after the
markets closed on the very day that I am running the scan.  
Now later, when I scroll the screen back, various past dates will be
showing on the extreme right side of the chart, along with various
indicator values that were computed using  the historical data
stored on my hard drive.    Apparently, these historical
zig angles that I am seeing when I look at  day 100 of the year are
not the same zig angles that would have been computed on day 100 of the
year if a scan had been run on day 100 of the year.  Why not? 
Isn't AFL  looking at only the data that was available up to and
including day 100 of the year.  In other words, if I scroll back to
day 1 of the year, and then scroll foreword one day at time, why is this
not  the very same accumulation of data that was stored on my hard
drive when I downloaded the EOD data when I got home from work on day
100.  Why does zig want to cheat and look at the the data from day
100+ as I scroll foreword from day 1 of the year.  If zig is
cheating under these conditions, then what is to stop EMA and RSI from
also cheating.    What you now appear to be a implying
about zig reminds me of how I felt when I was informed  that Santa
Clause does not exist.   I have never forgiven my older brother
for that revelation.   My nontech mind can't fathom why zig
would tell a different story when told to go back and look at the exact
same data a second time.  All revelations in layman's language will
be appreciated.   Ron D    
 
 
 
 
 
----- Original Message ----- 
From: DIMITRIS TSOKAKIS

To: amibroker@xxxxxxxxxxxxxxx 
Sent: Tuesday, August 05, 2003 5:33 AM
Subject: [amibroker] Re: Revised MACDxPriceOSC (With Zig Filter)
Michael,
In your Buy/Sell conditions you use UTrend and DTrend.
This fact makes your rules unrealistic.
UTrend and DTrend are zig related conditions and their truth is known 
some bars after the historical occurrence you see in the past bars.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Michael.S.G." <OzFalcon@x...> 
wrote:
> Working with Dennis's AFL previously posted using MACD x PriceOSC, 
is a revision that also checks for current trend via zigzag funtion. 
Zig is Adjustable Via Parameters Dialog (CTRL-R). And Signals 
likewise change while being Adjusted.
Feedback to the status of Zig is also given by Coloring of the 
barstyle chart.
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 

//MACD POSC cross, By Dennis aka theoldchartreader@xxxxxxxxx
//With Explorer & Zig Filter by OzFalcon@xxxxxxxx <MSG>.

AdjBar = Param("Bar",0,0,BarCount,1);
AdjZ = Param("Zig",10,0,20,.1);

//Select Current Tickers OHLC
CO = Ref(O,-AdjBar);
CH = Ref(H,-AdjBar);
CL = Ref(L,-AdjBar);
CC = Ref(C,-AdjBar);

//Select Foriegn OHLC
BI = GetBaseIndex(); //BI = BaseIndex String 
FO = Ref(Foreign( BI,"O"),-AdjBar);
FH = Ref(Foreign( BI,"H"),-AdjBar);
FL = Ref(Foreign( BI,"L"),-AdjBar);
FC = Ref(Foreign( BI,"C"),-AdjBar);

//Create Trend
ZAC = Zig( CC, AdjZ );
UTrend = ZAC > Ref(ZAC, -1);
DTrend = ZAC < Ref(ZAC, -1);

//Do Cross (Create Result Arrays)
t1 = OscP( 3, 6 );
Cond1a= Cross (t1,MACD());
Cond1b= MACD()>-1 AND MACD()<0;
Cond1= Cond1a AND Cond1b;
Cond2 = MACD()>Signal()-.5;
Cond3 = Cross(0,t1);
// Select Conditions to Display.
C1 = Ref(Cond1,-AdjBar);
C2 = Ref(Cond2,-AdjBar);
C3 = Ref(Cond3,-AdjBar);

//Plot Data
Color = IIf(CO > CC, colorBlack, colorRed);
PlotOHLC( CO,CH,CL,CC, "Price", color, styleCandle );//Plot Selected Ticker.
PlotOHLC( FO,FH,FL,FC, BI, colorLightGrey);//Plot Sector Index.
ZColor = IIf(UTrend, colorAqua, colorYellow);
Plot( ZAC, "Zig", ZColor, 3); //Plot ZigZag Trend.

//Show Buy/Sell Arrows.
Buy = C1 AND C2 AND UTrend;
Sell= C3 AND DTrend;
PlotShapes( shapeDownArrow * Sell, colorRed );
PlotShapes( shapeUpArrow * Buy, colorGreen );

/// Iterpretation
"Be Aware of ZigZag Limitations.";
"Use CTRL-R to Explore Signals/Zig.";

Attachment: Description: ""