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.

 
Duxx

Elite
500100100100252525
Posts: 881

Joined: 2/18/2009

User Profile
 
Subject : RE: My own Olang Indicator
Posted : 12/6/2011 9:55 PM
Post #20032 - In reply to #20031

Hello Jim,

I think I have it that way:

#Indicator

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

Dim RatioHistVol as Single

If Symboldata.Numrec - 1 < HistATRpds then

RatioHistVol = ATR(CurrATRpds) / ATR(Symboldata.Numrec - 1)

Else

RatioHistVol = ATR(CurrATRpds) / ATR(HistATRpds)

End If

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

Return RatioHistVol

Deleting message 20032 : RE: My own Olang Indicator


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