Lets say I wanted to enter when the high of the current bar is the highest high of the last 20 bars.
I hoped this would work:
if ( high() > hhv(20 high()) )
But since the current bar is part of HHV it can enver get triggered.
I tried:
if ( high() == hhv(20, high()) )
but that has me entering on doube-tops!
The syntax defintion for "hhv" doesn't seem to have an offset liek "-1" so I wouldn't be including the current price bar, thereby having a true breakout entry.
Could someone recommend the syntax for entering on a 20 bar breakout?
I hoped this would work:
if ( high() > hhv(20 high()) )
But since the current bar is part of HHV it can enver get triggered.
I tried:
if ( high() == hhv(20, high()) )
but that has me entering on doube-tops!
The syntax defintion for "hhv" doesn't seem to have an offset liek "-1" so I wouldn't be including the current price bar, thereby having a true breakout entry.
Could someone recommend the syntax for entering on a 20 bar breakout?
Comment