Title: "DecisionPoint Price Momentum Oscillator (DPMO) V5:
Description:
This script is a custom implementation of the DecisionPoint Price Momentum Oscillator (DPMO), an effective momentum-based indicator. It is designed to help traders visualize momentum shifts in the market by plotting up and down triangles and generating alerts on these pivotal moments.
The indicator is based on the closing prices (`src`), and involves two levels of smoothing (`length1` and `length2`), as well as a signal smoothing parameter (`siglength`). The first level of smoothing is applied to the percentage difference between the current close and the previous close. The result is then further smoothed to calculate the PMO line. The signal line is an exponential moving average of the PMO line.
The DPMO values are used to plot up (green) and down (red) triangles on the chart. These triangles are plotted below and above the bars, respectively, to avoid obscuring the price action.
The up triangle is plotted when the DPMO line crosses above the zero line, indicating a positive shift in momentum, and the down triangle is plotted when the DPMO line crosses below the zero line, indicating a negative shift in momentum. This can be a useful tool for identifying potential buy and sell points.
The script also includes alerts for these momentum shifts. An alert is triggered when the DPMO line crosses above zero (indicating a positive momentum shift), and another alert is triggered when the DPMO line crosses below zero (indicating a negative momentum shift).
These alerts, titled 'Up Momentum Alert' and 'Down Momentum Alert', notify traders in real-time, enabling them to react promptly to changes in the market. This makes the DecisionPoint Price Momentum Oscillator a valuable tool for both short-term and long-term traders.