The definition of the built in rising NT function is above. What I'm trying to do is check to see if the slope of the regression channel is rising or falling. The above works most of the time, but sometimes, the major trend (I'm using 2 hour bars) is falling, but the 1 bar ago vs current bar is rising. Hence, the indicator does what it's suppose to do, check 1 bar ago, but for my purpose, it gives the wrong trading signal. What I want to be able to do is:
If most of the regression slope values for the past 100 bars on a 2 hour chart is falling; enter long/ short. How can I do this?
Comment