The Hold() function might give you exactly what you want: https://www.amibroker.com/guide/afl/hold.html. However, you should also consider what happens when the price closes above the 5-day high multiple times within your N-day window.
sure, that is why I am not meet the formula yet.
with hold() function should not make a new HHV at the breakout day.
then how to release the hold() function, because after several days (let's say 5 days after breakout) should have a new HHV.
thanks in advance mradtke.
this is my code, the Resistances (R1,R2,R3) change in the next day.
I want to fix Resistances until new breakouts then offcourse new Resistances will be rise out.
this is my code, the Resistances (R1,R2,R3) change in the next day.
I want to fix Resistances until new breakouts then offcourse new Resistances will be rise out.