I'm trying to set up a Short condition where if the current bar's high is the highest high of the last 10 bars, and if the current bar closes in the bottom 30% of the current bars range.
I can get the following to work:
Short = IIf( HHV(Close,10),1,0);
This marks every bar on the chart. I tried to to add the AND function as below:
Short = IIf( HHV(Close,10),1,0) AND (Close <= ((H-L) * .3)+ L);
This marks every bar that closed in the bottom 30% of range but ignores the highest high of the last 10 days.
Can anyone help?
Thanks
I can get the following to work:
Short = IIf( HHV(Close,10),1,0);
This marks every bar on the chart. I tried to to add the AND function as below:
Short = IIf( HHV(Close,10),1,0) AND (Close <= ((H-L) * .3)+ L);
This marks every bar that closed in the bottom 30% of range but ignores the highest high of the last 10 days.
Can anyone help?
Thanks