Higher High and Lower Low tracking
Forums › ProRealTime English forum › ProBuilder support › Higher High and Lower Low tracking
- This topic has 35 replies, 4 voices, and was last updated 1 week ago by robertogozzi.
-
-
06/16/2021 at 2:06 PM #171862
I already understood the indicator, but I wonder only about the next plot after LH1 and HL1 and I find out on the next pictures. The lower highs, comes together as well as the Higher Lows do.
06/16/2021 at 2:28 PM #171868As I said I don’t know why that happens. I think it’s due to ProBuilder refreshing multiple times.
I even asked to detect any Higher or Lower High if there’s been a Higher or Lower Low in between, but it seems not to work (and the other way round, as well).1 user thanked author for this post.
06/16/2021 at 2:47 PM #171875Thanks for programming so well Roberto.
1 user thanked author for this post.
06/17/2021 at 8:47 PM #17196512/17/2024 at 9:55 PM #24152612/29/2024 at 5:23 PM #241898I have tried this one, but I can’t get any result:
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091ONCE N = 4 //4 number of tags (for each side)ONCE Offset = 1 //0, 1, etc... ID of the bar uset to check pricesONCE LO = 0ONCE HI = 0myHL = 0N = max(4,N)// initialize arraysIF BarIndex = 0 THENFOR i = 1 TO N$hh[i] = 0 //Higher High$hhBar[i] = 0$lh[i] = 0 //Lower High$lhBar[i] = 0$ll[i] = 9999999 //Lower Low$llBar[i] = 0$hl[i] = 9999999 //Higher Low$hlBar[i] = 0$myLL[i] = 0NEXTENDIF//-------------------------------------------------------------------------------// check higher highsIF (close[Offset] > close[Offset+1]) AND (close[Offset] > $hh[1]) AND HI = 0 AND BarIndex <> $hhBar[1] THENFOR i = N DOWNTO 2$hh[i] = $hh[i - 1]$hhBar[i] = $hhBar[i - 1]$myLL[i] = $myLL[i - 1]NEXT$hh[1] = close[Offset]$hhBar[1] = BarIndex[Offset]$myLL[1] = 0HI = 1LO = 0//-------------------------------------------------------------------------------// check lower lowsELSIF (close[Offset] < close[Offset+1]) AND (close[Offset] < $ll[1]) AND LO = 0 AND BarIndex <> $llBar[1] THENFOR i = N DOWNTO 2$ll[i] = $ll[i - 1]$llBar[i] = $llBar[i - 1]$myLL[i] = $myLL[i - 1]NEXT$ll[1] = close[Offset]$llBar[1] = BarIndex[Offset]$myLL[1] = $ll[1]HI = 0LO = 1//-------------------------------------------------------------------------------// check lower highsELSIF (close[Offset] > close[Offset+1]) AND (close[Offset] < $hh[1]) AND HI = 0 AND BarIndex <> $lhBar[1] THENFOR i = N DOWNTO 2$lh[i] = $lh[i - 1]$lhBar[i] = $lhBar[i - 1]$myLL[i] = $myLL[i - 1]NEXT$lh[1] = close[Offset]$lhBar[1] = BarIndex[Offset]$myLL[1] = 0HI = 1LO = 0//-------------------------------------------------------------------------------// check higher lowsELSIF (close[Offset] < close[Offset+1]) AND (close[Offset] >= $ll[1]) AND LO = 0 AND BarIndex <> $hlBar[1] THENmyHL = 1FOR i = N DOWNTO 2$hl[i] = $hl[i - 1]$hlBar[i] = $hlBar[i - 1]$myLL[i] = $myLL[i - 1]NEXT$hl[1] = close[Offset]$hlBar[1] = BarIndex[Offset]$myLL[1] = 0HI = 0LO = 1ENDIF//-------------------------------------------------------------------------------// scan 3 previous Lower Lows before the current Hiogher LowCond = 0IF myHL THENFOR i = 2 TO NIF (i > 4) THENbreakENDIFIF ($myLL[i] > 0) THENCond = Cond + 1ENDIFNEXTENDIFIF Cond <> 3 THENCond = 0ENDIFSCREENER[Cond] -
AuthorPosts
Find exclusive trading pro-tools on
Similar topics: