OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: Awesome Oscillator
Posted : 11/14/2012 11:00 AM
Post #21410 - In reply to #21409

Try this - adds if/then for warmup delay, necessary when a complex argument is used with a called function like SMA:

#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)
Plot("MACDao", fMACDao)

end if

Return fMACDao

[Edited by Jim Dean on 11/14/2012 11:01 AM]

Deleting message 21410 : RE: Awesome Oscillator


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.