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

New User

Posts: 2

Joined: 10/27/2014
Location: Saint Louis, MO

User Profile
 
Subject : RE: Awesome Oscillator
Posted : 10/27/2014 5:44 PM
Post #23124 - In reply to #21404

Hi,
Does anyone have a reference for how to plot a color change code for this histogram?

If the current bar is greater than the previous bar, then plot green

If the current bar is less than the previous bar, then plot red.
Thanks, Jim

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

end if

Return fMACDao


Deleting message 23124 : RE: Awesome Oscillator


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