How to Turn the Slope of Any Line into a Filter or a Signal in NinjaTrader 8
Is your moving average going up or going down? That simple question can work in two ways: as a filter (only take longs while the line rises) or as a signal (enter when the line changes direction). Marker Slope, one of the indicators included with Markers, does both, with any line on your chart. This is part of a series of short videos where we explain Markers piece by piece. Key takeaways Marker Slope measures the slope of any line: a moving average, a channel, or an indicator in another panel. The slope is stored in a variable, MySlope by default, that you can use as a filter: longs above zero, shorts below. The same tool creates signals every time the slope changes direction. Apply Threshold turns the slope into 1 and -1, useful for lines that are often flat. Slope Bars smooths the slope and Threshold ignores small moves, two ways to remove false signals. Step 1: add Marker Slope to a line In the video we start with an HMA with a period of 180, but it can be any line...