HL LH Index

Description
HL LH Index NinjaTrader 8 indicator calculates an index based on how many bars are making Higher Lows, Higher Highs and Lower Lows, Lower Highs.
Parameters
Period: Number of bars used in the calculation.
Plots
ValueUp (double): value from 0 to 1, if half of the bars in the selected period made a Higher High and a Higher Low ValueUp will be 0.5. If the current bar makes a Higher Low and Higher High, ValueDown will increase.
ValueDown (double): value from 0 to 1, if all the bars in the selected period made a Lower High and a Lower Low, ValueDown will be 1. If the current bar makes a Lower High and Lower Low, ValueDown will increase.
