Jim Dean
 Sage
       Posts: 3433
Joined: 3/13/2006
Location: L'ville, GA
User Profile |
#Indicator
#PARAM "ShortPeriods", 5
#PARAM "LongPeriods", 34
Dim fMACDao as Single
if bar > LongPeriods then
fMACDao = SMA((H+L)/2, ShortPeriods) - SMA((H+L)/2, LongPeriods)
If fmacdao > fmacdao[1] then
Plothist("MACDao", fMACDao, 0, green)
Else
Plothist("MACDao", fMACDao, 0, red)
End if
end if
Return fMACDao
|