CCY

Posted By: MatPed

CCY - 05/05/21 13:03

Hi I have started to dig into this article on Financial Hacker:
https://financial-hacker.com/petra-on-programming-the-correlation-cycle-indicator/
I have downloaded the script and tried to reproduce step by step the article and I found relevant difference
Petra has used the #define pre-compiler command to change the behavior ( I've learned something new).

#define DO_SINE
//#define DO_PLOT
//#define DO_NOSTATE
//#define DO_STATE

Works a expected with similar pic as listed in the article
//#define DO_SINE
#define DO_PLOT
//#define DO_NOSTATE
//#define DO_STATE

Get a compilig error:

CCY compiling........
Error in 'line 87:
'CCIState' undeclared identifier
< plot("State",CCIState(Prices,14)*0.9,NEW|LINE,BLUE);
>.

Trained and tested the combination
//#define DO_SINE
//#define DO_PLOT
#define DO_NOSTATE
//#define DO_STATE

The result are aligned with the article and thanks to the months passed the analysis of the equity curve made in the blog are confirmed.
You can see the image in pic 1

The surprise arrives with:
//#define DO_SINE
//#define DO_PLOT
//#define DO_NOSTATE
#define DO_STATE

Trained and tested the result are aligned with the article up to the Apr/May 2020 than the system blows up as you can see in pic 2

Anybody can give an explanation of such behavior? I am very curious because it looks like the Luxor TS

Attached picture CCY_SPY 1.png
Attached picture CCY_SPY 2.png
Posted By: jcl

Re: CCY - 05/06/21 14:05

Can happen with any system. The inefficiency disappeared or the CCY was a not so brilliant indicator after all.
Posted By: MatPed

Re: CCY - 05/06/21 21:42

Yes definitely. II was asking myself which was the inefficiency exploited by Helers and how to prove that is disappeared for learning purposes, but it seems that nobody has dig into this.

Ciao
© 2024 lite-C Forums