Help with Engulfing code
hhcfx:
It's not a good idea to search in the future. You have to start from an Upbar and then seek in the past if there is a down bar encountering your requirements.
Hi Everyone,
My idea is that: If there is a Down-bar, I will track the first Up-bar that has Close higher than the Open of the Down-bar.
Also, the first Up-bar must be within 5 bars from the Down-bar.
Could you please help me debug my code below?
Thank you for your help.
HHC
Hi Everyone,
My idea is that: If there is a Down-bar, I will track the first Up-bar that has Close higher than the Open of the Down-bar.
Also, the first Up-bar must be within 5 bars from the Down-bar.
Could you please help me debug my code below?
Thank you for your help.
HHC