MACD OSMAX VertexFX Indicator

indicdeveloper

Junior member
Messages
13
Likes
0
The
macdosmax.png
is a powerful VertexFX client-side indicator based on the Moving Average Convergence Divergence (MACD) indicator.

The Moving Average Convergence Divergence (MACD) indicator is provides information about the current trend and its strength. When the MACD bottoms out and starts rising it implies the market is in bullish mode, whereas when it tops out and starts falling it implies that the market is in bearish mode. However, one of the drawbacks of the MACD indicator is that it introduces lag and introduces whipsaws when the market turns sideways. The primary reason for the lag is the use of Simple Moving Average (SMA) in the calculation of the MACD.
The MACD OSMAX indicator overcomes the drawbacks of the MACD indicator by using Exponential Moving Average (EMA) instead of SMA. In addition to using the EMA, it also uses a weightage co-efficient OSMAX to give more weightage to the recent signal.
In the first step we calculate the EMA of the PERIOD_FAST and the PERIOD_SLOW. The MACD is calculated by subtracting the slower EMA from the faster EMA. The MACD signal is derived by computing the EMA of the MACD using the PERIOD_SIGNAL. Finally the OSMAX is calculated by subtracting the Signal from the MACD and multiplying it by the OSMAX co-efficient. The OSMAX is plotted as an histogram.
When both the OSMAX and MACD are rising the histogram is plotted BLUE. When both OSMAX and MACD are falling the histogram is plotted RED. The histogram is plotted GRAY when OSMAX and MACD are diverging. When the OSMAX turns BLUE from RED or GRAY it implies that the trend has turned bullish. Likewise, when the OSMAX turns RED from BLUE or GRAY it implies the trend is bearish. It has been studied that OSMAX generates better results when traders enter LONG when OSMAX turns BLUE below the zero level, and enter SHORT when OSMAX turns RED above the zero level.
As compared to the standard MACD, the MACD OSMAX indicator reduces the lag and responds to price movements quickly, thus enabling the trader to enter trades earlier and exit trades before it is too late.

BUY / EXIT SHORT - Enter LONG (or exit SHORT) at the close of the candle when the indicator histogram turns BLUE below the zero level either from RED or GRAY. The stop-loss can be placed below the nearest Swing Low.
SHORT / EXIT LONG - Enter SHORT (or exit LONG) at the close of the candle when the indicator histogram turns RED above the zero level either from BLUE or GRAY. The stop-loss can be placed above the nearest Swing High.
 
Top