jawjahtek![]() Member ![]() Posts: 37 Joined: 5/30/2006 Location: Georgia, USA ![]() | Actually, this is just a version of MACD using SMAs and the Median Price. Here is Nirvana's code for MACD, modified as needed. Good luck to you; I would not consider this indicator "awesome" or "spot on", and I would not expect N to include it in OT. #Indicator #PARAM "ShortPeriods", 5 #PARAM "LongPeriods", 34 Dim fMACDao as Single fMACDao = SMA((H+L)/2, ShortPeriods) - SMA(H+L)/2, LongPeriods) Plot("MACDao", fMACDao) Return 0 |