//------------------------------------------------------ // // Formula Name: Price Momentum Oscillator // Author/Uploader: Trading Tuitions // E-mail: support@tradingtuitions.com // Website: www.tradingtuitions.com //------------------------------------------------------ _SECTION_BEGIN("Price Momentum Oscillator"); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{NAME}} – {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) )); Plot( Close, "Price", colorWhite, styleCandle ); // Define the period for the moving average calculation period = 35; // Calculate the percentage change in closing prices pc = 100 * ROC(Close, 1); // Calculate the PMO using a double exponential moving average pmo = EMA(EMA(pc, 10), 35) - EMA(EMA(pc, 20), 35); // Plot the PMO on the chart Plot(pmo, "PMO", colorBlue, styleOwnScale); _SECTION_END();