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
20001000100100
Posts: 3223

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

User Profile
 
Subject : RE: My own Olang Indicator
Posted : 12/9/2011 5:32 AM
Post #20063 - In reply to #20051

Try this (not tested, from iPhone):

#Indicator

#param "CurrATRpds", 15
#param "HistATRpds", 660

Dim RatioHistVol as Single

If bar >= CurrATRpds then

If bar < HistATRpds then
RatioHistVol = ATR(CurrATRpds) / ATR(bar)
Else
RatioHistVol = ATR(CurrATRpds) / ATR(HistATRpds)
End If

Plot( "HistVol", RatioHistVol )
PlotLabel(2)

End if

Return RatioHistVol

[Edited by Jim Dean on 12/9/2011 5:35 AM]

Deleting message 20063 : RE: My own Olang Indicator


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