@snevins
I'd like to know how to define f_lDirNum1 somehow (0 or 1 or any number) before f_lDirNum will be counted. (if its possible). Or maybe other algorithm to count f_lDirNum.
Briefly describe the task:
I have Condition = Low < Low[1] (I can choose any other condition)
Each time when Condition = True - lDir=1
If Condiiton = True 2 times in а row - lDir=1, f_lDirNum=2
If Condiiton = True 3 times in а row - lDir=1, f_lDirNum=3
If Condiiton = True X times in а row - lDir=1, f_lDirNum=X
.......
Each time when Condition = False lDir=-1
If Condiiton = False 2 times in а row - lDir=-1, f_lDirNum=-2
If Condiiton = False 3 times in а row - lDir=-1, f_lDirNum=-3
If Condiiton = False X times in а row - lDir=-1, f_lDirNum=-X