Australian (ASX) Stock Market Forum

Dump it Here

@Skate @Gringottsbank Will try to BT GB code but busy making an offer on a property, and workshops all day on a socially busy week as well
Could take me weeks but will try

Looking forward to your thoughts Frog as someone who sold a system using this type of indicator (modified from the known future leak of the AB zigzag indicator) was removed from purchase. Although saying that, I've no idea if it was removed because of zigzag directly or some other reason.
 
Looking forward to your thoughts Frog as someone who sold a system using this type of indicator (modified from the known future leak of the AB zigzag indicator) was removed from purchase. Although saying that, I've no idea if it was removed because of zigzag directly or some other reason.
When i personally tried using a zz indicator based system of my ownyears ago, i was well aware of the looking forward issue and so worked on it and was expected to have solved it..but my short trial was a failure, after 3 runs aka 3 weeks, some signals diseappear new ones popped up in the past month..you give some room for human error .maybe i mistyped or was confused but issue kept repeating
that was a while back but even if not obvious or detected by ab check , there was still a future leak
I will give GB code a fair go as i am obviously interested
I have not been able to spend dev time for weeks as far too busy it will be done but be patient please
Cheers
 
Looking forward to your thoughts Frog as someone who sold a system using this type of indicator (modified from the known future leak of the AB zigzag indicator) was removed from purchase. Although saying that, I've no idea if it was removed because of zigzag directly or some other reason.

Glad to see you're still rabbiting on about it...what's it been? 10+ years?

FYI, my code does not have a future leak. All strategies from Unholy Grails were removed from the site several years ago, mainly for liquidity reasons. Below is an updated equity chart of the 20% Flipper.

And as a goodwill gesture, here is how you code the ZZ (20% Flipper) without a future leak

//-------------
function flipper_func(trail)
{
trailArray[ 0 ] = C[ 0 ];
for( i = 1; i < BarCount; i++ )
{
prev = (round(100*(trailArray[ i - 1 ])))/100;

if (C[ i ] > prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = Max(prev,0.8*H[ i ]);
}

else if (C[ i ] < prev AND C[ i - 1 ] < prev)
{
trailArray[ i ] = Min(prev,1.2*L[ i ]);
}

else if (C[ i ] == prev AND C[ i - 1] < prev)
{
trailArray[ i ] = 0.8*H;
}

else if (C[ i ] == prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = 1.2*L[ i ];
}

else if (C[ i ] < prev AND C[ i] > 1.2*L [ i ])
{
trailArray[ i ] = 0.8*H;
}

else if (C[ i ] > prev AND C[ i] < 0.8*H [ i ])
{
trailArray[ i ] = 1.2*L;
}

else if (C[ i ] < prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = 1.2*L[ i ];
}

else if (C[ i ] > prev)
{
trailArray[ i ] = 0.8*H[ i ];
}

else if (C[ i ] < prev)
{
trailArray[ i ] = 1.2*L[ i ];
}

else
{
trailArray[ i ] = 1.2*L[ i ];
}
}
return trailArray;
}

trail = 1;
trailArray = flipper_func(trail);
 

Attachments

  • 001_ Portfolio Equity.png
    001_ Portfolio Equity.png
    13.4 KB · Views: 80
Below is an updated equity chart of the 20% Flipper

@Nick Radge, thanks for supplying the updated equity chart for the 20% Flipper.

The Weekend Trend Trader
The (WTT) Turnkey Strategy backtest results I've posted below have not been optimized or "Radge Tweaks" applied. The backtest results are based on the original book settings.

My question is
Would you be kind enough to update the backtest results for the 2022 calendar year (up until today) for those interested in your "Turnkey Strategy"

Covid WTT Results.jpg

Skate.
 
Glad to see you're still rabbiting on about it...what's it been? 10+ years?

FYI, my code does not have a future leak. All strategies from Unholy Grails were removed from the site several years ago, mainly for liquidity reasons. Below is an updated equity chart of the 20% Flipper.

And as a goodwill gesture, here is how you code the ZZ (20% Flipper) without a future leak

//-------------
function flipper_func(trail)
{
trailArray[ 0 ] = C[ 0 ];
for( i = 1; i < BarCount; i++ )
{
prev = (round(100*(trailArray[ i - 1 ])))/100;

if (C[ i ] > prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = Max(prev,0.8*H[ i ]);
}

else if (C[ i ] < prev AND C[ i - 1 ] < prev)
{
trailArray[ i ] = Min(prev,1.2*L[ i ]);
}

else if (C[ i ] == prev AND C[ i - 1] < prev)
{
trailArray[ i ] = 0.8*H;
}

else if (C[ i ] == prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = 1.2*L[ i ];
}

else if (C[ i ] < prev AND C[ i] > 1.2*L [ i ])
{
trailArray[ i ] = 0.8*H;
}

else if (C[ i ] > prev AND C[ i] < 0.8*H [ i ])
{
trailArray[ i ] = 1.2*L;
}

else if (C[ i ] < prev AND C[ i - 1 ] > prev)
{
trailArray[ i ] = 1.2*L[ i ];
}

else if (C[ i ] > prev)
{
trailArray[ i ] = 0.8*H[ i ];
}

else if (C[ i ] < prev)
{
trailArray[ i ] = 1.2*L[ i ];
}

else
{
trailArray[ i ] = 1.2*L[ i ];
}
}
return trailArray;
}

trail = 1;
trailArray = flipper_func(trail);
Well isn't that interesting, a ZZ code with no future leak. Skate spent 10 posts arguing that it was impossible, too good to be true, danger!/beware! And yet it can be used, as I said.

Test mine if you would.
 
This system has no future leaks AND i have tradeDelays implicitly set !!!!
AND i didn't use that nasty ZIGZAG indicator, which automatically brings up future leaks regardless of settings.

1668030460943.png

The optimum period for this system is 1 day.

NOTE: This system has 2 serious issues.
1 - 7% Drawdown.
2 - 22.13% losing trades.

For a mere bitcoin, I'll send you an optimised system where i eliminate BOTH of those 2 MAJOR flaws.
 
Ok .... i cheated, but so does ZIGZAG.

Amibroker, MetaStock and others have it in their core set of indicators to use (and abuse). I'm only talking about these ones, not other implementations.

ZIGZAG Locates the exact pivot points by either looking ahead or looking back, but also changes previous pivots based on new data. Always has and always will and It's probably the only indicator that does this. It's used in many systems like wave counting and it does it's job perfectly.

Both AB and MS have strong caveats about using it.

https://www.metastock.com/customer/resources/taaz/?p=127
http://www.amibroker.com/guide/afl/zig.html
 
ZIGZAG Locates the exact pivot points by either looking ahead or looking back, but also changes previous pivots based on new data. Always has and always will and It's probably the only indicator that does this. It's used in many systems like wave counting and it does it's job perfectly.

@DaveDaGr8, I hope they listen to you

The ZiGZag Indicator
Straight off the bat, I should say the ZigZag function is useful during the strategy development phase as it graphically presents the main trend with great clarity. The ZigZag function should never be used in trading or backtesting as the signals keep repainting when more data is received. The repainting is due to the dynamic nature of this function, therefore, the backtest results can be highly misleading. It's important to remember when backtesting a strategy great care should be taken to exclude any revisable parameters ensuring the backtest results are valid & accurate.

The dynamic nature of the ZZ indicator means you will get unrealistic results when backtesting
Amibroker's knowledge base makes a solid statement about using the Zig-Zag in trading systems. Using functions (Peak/Trough, PeakBars, Troughbars), inherently look into the future, as such they should not be used in trading system formulas.

Skate.
 
I'm happy to post some examples of it working perfectly well.

ANZ
Buy Signal 9/6/202

and

Buy Signal 23/10/2020


Happy to be challenged on examples of the code I offered that show a future leak?
 

Attachments

  • anz.png
    anz.png
    143.9 KB · Views: 58
  • anz_3.png
    anz_3.png
    54.1 KB · Views: 61
Ok .... i cheated, but so does ZIGZAG.

Amibroker, MetaStock and others have it in their core set of indicators to use (and abuse). I'm only talking about these ones, not other implementations.

ZIGZAG Locates the exact pivot points by either looking ahead or looking back, but also changes previous pivots based on new data. Always has and always will and It's probably the only indicator that does this. It's used in many systems like wave counting and it does it's job perfectly.

Both AB and MS have strong caveats about using it.

https://www.metastock.com/customer/resources/taaz/?p=127
http://www.amibroker.com/guide/afl/zig.html
You should test my code, rather than quote what some website says. Enter the argument fairly and honestly. So far, I am the only one who has done that.
 
Don't use the Amibroker ZigZag function for backtesting or trading
It's important to remember when backtesting a strategy great care should be taken to exclude any use of revisable parameters in your strategy ensuring the backtest results are valid & accurate. I've been consistent in my messaging that "revisable parameters" inherently look into the future, & as such, should not be used

Anything is possible
But the desired results may not be.


Fail 1.jpg



Fail 2.jpg



Fail 3.jpg


Skate.
 
I couldn't have expressed it any better (From the Metastock site)
"The Zig Zag indicator filters out changes in an underlying plot (e.g., a security's price or another indicator) that are less than a specified amount. The Zig Zag indicator only shows significant changes. The Zig Zag indicator is used primarily to help you see changes by punctuating the most significant reversals.

The last leg
"It is very important to understand that the last "leg" displayed in a Zig Zag chart can change based on changes in the underlying plot (e.g., prices). This is the only indicator in this book where a change in the security's price can change a previous value of the indicator. Since the Zig Zag indicator can adjust its values based on subsequent changes in the underlying plot, it has "perfect hindsight" into what prices have done. Please don't try to create a trading system based on the Zig Zag indicator"

In a nutshell
"Its hindsight is much better than its foresight!"

Skate.
 
Top