Previous value of indicator

Hi

Always is nice to debug your code to find out if there are any mistakes.

I am going to use here the printf() function.
Note that the return values are visible in the interpretation window

boxHigh1 = Ref(H,-6)>=Ref(HHV(H,5),-8) AND 
                  Ref(H,-6)>Ref(H,-4) AND Ref(H,-6)>Ref(H,-2) AND Ref(H,-6)>H;

Topbox_0=ValueWhen(boxHigh1, Ref(H,-6));	printf("\nTopbox_0 "+ Topbox_0);
Topbox_1=ValueWhen(boxHigh1, Ref(H,-6),1);  printf("\nTopbox_1 "+ Topbox_1);
Topbox_2=ValueWhen(boxHigh1, Ref(H,-6),2); 	printf("\nTopbox_2 "+ Topbox_2);
Topbox_3=ValueWhen(boxHigh1, Ref(H,-6),3);	printf("\nTopbox_3 "+ Topbox_3);

(Finally, I kindly invite you to get the "Verified" badge so you can to continue to post in this section of the Forum).

I really like the phrase here and i took it form this post

2 Likes