- Joined
- 8 March 2007
- Posts
- 2,864
- Reactions
- 3,954
This Smells like "CAPITULATION" to me@Skate I think that the current market conditions have got something to do with this. People see traders struggling in these conditions and maybe start to think that it's all too hard for them to master. This can be a time to learn what needs to learnt in order to be ready for the next bull run.
One important thing for all traders is to know when it's safe for them to go into the water, do they have the skill to handle a big hard breaking surf or should they stick to calmer conditions until they are ready for the hard stuff.
Well @Skate I think that you at least have to have enough smarts to spell AC DC when someone tells you how to spell it before asking you.Brains are overrated mainly because smart people tend to think logically & have a hard time dealing with a market that ignores what should be painfully obvious.
I assume you are only throwing 2 dice?Respect others & their way of thinking
6+3=9
But so does 5+4
Healthy exchange
Given a certain point of view, others (including @ducati916) will take a position that they don't necessarily agree with for the sake of debate or to "explore" the thought further, which is healthy. There is always a range of views & just as many different ways of thinking about them.
Skate.
"Playing tennis with someone in this matter is not only tiresome but a waste of both our time & effort".Now you want to use my soapbox as well
Unfortunately @DaveTrade there is no crowd. I have a multitude of ideas for future posts as I don't like to rehash or canvass something I have posted extensively previously.
I prefer to canvas new ideas or post about what interests others
I think it's a forgotten point, but when someone posts they are posting stuff they already know. That's why it's important for others to have their say. @Gringotts Bank prosecuted his case of how he takes advantage of the ZigZag function very well & I've given the other side to the discussion. No matter how much we banter it will not change our stance on the matter. Playing tennis with someone in this matter is not only tiresome but a waste of both our time & effort.
Skate.
All I said is that you can use zigzag in backtesting if you have certain settings. Then gave some code to prove it.
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.
For clarity,The experiment
After swapping the buy & sell conditions of the "HYBRID Strategy" using @Gringotts Bank code snippet I backtested both strategies for a side-by-side comparison. The backtest period is this calendar year from the 1st of January 2022 to the 7th of November 2022. 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.
View attachment 148916
When it's too good to be true
It usually is.
Skate.
That's just wrong. I don't know what else to say.The experiment
After swapping the buy & sell conditions of the "HYBRID Strategy" using @Gringotts Bank code snippet I backtested both strategies for a side-by-side comparison. The backtest period is this calendar year from the 1st of January 2022 to the 7th of November 2022. 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.
View attachment 148916
When it's too good to be true
It usually is.
Skate.
Actually tempted to give it a go again ..and see if i can find the flaw.even paper run after...
That's just wrong. I don't know what else to say.
Others can test it. It takes literally 2 seconds.
That is NOT the code I posted. What on earth are you doing cutting out half of it? If anyone wants to test it, test the code that I posted.@qldfrog please do not waste your time.
@Gringotts Bank disputes my findings of substituting his base ZigZag code as the buy & sell criteria of my "HYBRID Strategy".
@qldfrog 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.
That is NOT the code I posted. What on earth are you doing cutting out half of it? If anyone wants to test it, test the code that I posted.
You conveniently cut out the trade delay. Try again, and be honest this time. The period of testing (D/W/M) makes no difference.# GB' non-repaint ZigZag code
The changes & omissions are highlighted
PositionSize = 10000; // already in the HYBRID Strategy (position size used $10k)
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);
SetTradeDelays(1,1,0,0);
BuyPrice=SellPrice=C; // redundant
Buy = tr; // my buy condition (tr)
Sell = pk; // my sell condition (pk)
Plot(zzHiLo,"",colorgreen,styleLine); // changed to yellow for better visability
SetChartOptions(0,chartShowArrows|chartShowDates); //Charting below
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) \n{{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
SetChartBkColor(ParamColor("Background Color",ColorRGB(0,0,0)));
SetBarFillColor(IIf(C>O,ParamColor("Candle UP Color", ColorRGB(33,69,129)),IIf(C<=O,ParamColor("Candle Down Color", colorbrown),colorLightGrey)));
Plot(C,"",IIf(C>O,ParamColor("Wick UP Color", ColorRGB(128,128,192)),IIf(C<=O,ParamColor("Wick Down Color", colorbluegrey),colorLightGrey)),64,0,0,0,0);
# Skate's condensed code
Other than Plotting it's basically the same code
_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();
Non-painting ZZ code Code
@Gringotts Bank there is no discernable difference between your code & my simplified code.
NB
As you (GB) didn't specify a periodicity I backtested your Non-painting ZigZag code using "weekly parameters"
Skate.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?