TMAGi is an oscillator based on three moving averages and the +DI and -DI lines of the ADX indicator. It indicates the market state: uptrend/downtrend/flat.
Configurable parameters:
- Fast MA period – fast MA calculation period
- Middle MA period – middle MA calculation price
- Slow MA period – slow MA calculation price
- SMA slowing – SMA smoothing period
- LWMA slowing – LWMA smoothing period
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
//PRC_TMAGi | indicator //05.10.2018 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge //converted from MT4 version // --- settings FastMA=8 MidMA=16 SlowMA=25 SlowingSMA=3 SlowingLWMA=8 // --- end of settings ma1=average[FastMA] ma2=average[MidMA] ma3=average[SlowMA] Buf = Abs(ma1-ma2)+Abs(ma2-ma3)+Abs(ma1-ma3) idi=DIplus[14](high)-DIminus[14](low) Buf = Buf * (idi/pointsize) SG = average[SlowingSMA](Buf) BS = WeightedAverage[SlowingLWMA](Buf) return SG coloured(30,144,255) style(dottedline,3), BS coloured(220,20,60) style(line,3), 0 coloured(169,169,169) style(dottedline) |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials