Normal
[USER=17857]@qldfrog[/USER] please do not waste your time.[USER=9682]@Gringotts Bank[/USER] disputes my findings of substituting his base ZigZag code as the buy & sell criteria of my "HYBRID Strategy".[USER=17857]@qldfrog[/USER] it will only take you seconds, would you be kind enough to run a simulated backtest using GB's buy & sell conditions of his non-repainting ZZ code?GB's simplified codeThis is the code I used to run the backtest from the 1st of January to the 7th of November 2022 _SECTION_BEGIN( "NonPainting" ); pr = .00001; zzHiLo = Zig( c, pr ); pk = zzHiLo > Ref( zzHiLo, -1 ) AND zzHiLo > Ref( zzHiLo, 1 ); tr = zzHiLo < Ref( zzHiLo, -1 ) AND zzHiLo < Ref( zzHiLo, 1 ); Plot( zzHiLo, "", colorYellow, styleLine ); Buy = tr; Sell = pk; _SECTION_END();Let me say it once againThe ZigZag's indicator of its many forms has a major issue being its dynamic nature which is a real disadvantage. Furthermore, the indicator cannot be used in mechanical systems, since the backtesting of such systems should exclude any revisable parameters in order to be valid and accurate.Skate.
[USER=17857]@qldfrog[/USER] please do not waste your time.
[USER=9682]@Gringotts Bank[/USER] disputes my findings of substituting his base ZigZag code as the buy & sell criteria of my "HYBRID Strategy".
[USER=17857]@qldfrog[/USER] it will only take you seconds, would you be kind enough to run a simulated backtest using GB's buy & sell conditions of his non-repainting ZZ code?
GB's simplified code
This is the code I used to run the backtest from the 1st of January to the 7th of November 2022
_SECTION_BEGIN( "NonPainting" );
pr = .00001;
zzHiLo = Zig( c, pr );
pk = zzHiLo > Ref( zzHiLo, -1 ) AND zzHiLo > Ref( zzHiLo, 1 );
tr = zzHiLo < Ref( zzHiLo, -1 ) AND zzHiLo < Ref( zzHiLo, 1 );
Plot( zzHiLo, "", colorYellow, styleLine );
Buy = tr;
Sell = pk;
_SECTION_END();
Let me say it once again
The ZigZag's indicator of its many forms has a major issue being its dynamic nature which is a real disadvantage. Furthermore, the indicator cannot be used in mechanical systems, since the backtesting of such systems should exclude any revisable parameters in order to be valid and accurate.
Skate.
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.