- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
Price Momentum Oscillator for Amibroker (AFL)
Tried to develop Price Momentum Oscillator, reference DecisionPoint Price Momentum Oscillator (PMO). Please check before any use.
Kod:
// Downloaded From https://www.WiseStockTrader.com
// PMO
/*
Smoothing Multiplier = (2 / Time period)
Custom Smoothing Function = {Close - Smoothing Function(previous day)} * Smoothing Multiplier + Smoothing Function(previous day)
PMO Line = 20-period Custom Smoothing of (10 * 35-period Custom Smoothing of ( ( (Today's Price/Yesterday's Price) * 100) - 100) )
PMO Signal Line = 10-period EMA of the PMO Line
*/
Y = EMA((((C/Ref(C,-1)) * 100)-100),35)*10;
PMO = EMA(Y,20);
PMOSL = EMA(PMO,10);
Plot(PMO, "PMO", colorBlue, styleLine, Null, Null, 0, 0, 1 );
Plot(PMOSL, "Sl", colorRed, styleLine, Null, Null, 0, 0, 1 );
www.WiseStockTrader.com