NinjaScript equivalent of EasyLanguage's volatility function? - NinjaTrader Programming | futures io social day trading
futures io futures trading

NinjaScript equivalent of EasyLanguage's volatility function?
Updated: Views / Replies:1,716 / 3
Created: by zwentz Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

NinjaScript equivalent of EasyLanguage's volatility function?

  #1 (permalink)
Austin, TX
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: Futures [ZB]
Posts: 36 since Sep 2009
Thanks: 12 given, 22 received

NinjaScript equivalent of EasyLanguage's volatility function?

I'm having difficulty finding an equivalent of EasyLanguage's Volatility function. For reference here is EasyLanguage's definition of "Volatility."

Volatility (Function)


The Volatility series function measures the market volatility by plotting a smoothed average of the TrueRange. It
returns an average of the TrueRange over a specific number of bars, giving higher weight to the TrueRange of the
most recent bar.

Returns (Double)

A numeric value containing the market volatility. As the number increases, the market is more volatile.

Volatility is the variation in price over a specific interval (the difference between the highest and lowest prices). As the
time interval being studied increases, volatility also increases to a maximum before leveling off. As prices increase, the
volatility tolerance also increases.

Note The Volatility function uses a slightly different set of calculations than the original formula. The Volatility
variation tends to smooth recent activity, which means that it will take more time (bars) to ‘normalize.’

I've tried Ninja's RVI, ATR, and StdDev methods, none of which give comparable results.

Has anyone has success with this before?


Reply With Quote
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

  #3 (permalink)
Austin, TX
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: Futures [ZB]
Posts: 36 since Sep 2009
Thanks: 12 given, 22 received

Solved it.

Let's say you want Volatility(6).

You would do this in Ninjatrader to get the equivalent: SMA(ATR(3),6)[0]

Basically you take the SMA of ATR with half your period.

It's not exact, but it's damn close.

Reply With Quote
The following 2 users say Thank You to zwentz for this post:
  #4 (permalink)
Elite Member
Santa Maria
Futures Experience: Advanced
Platform: NinjaTrader, ThinkOrSwim
Broker/Data: Mirus/Zen-Fire
Favorite Futures: ES
Posts: 295 since May 2010
Thanks: 101 given, 320 received

Since their description says "giving higher weight to the TrueRange of the most recent bar" they are probably not using an SMA, maybe an EMA?

Reply With Quote


futures io > > > > > NinjaScript equivalent of EasyLanguage's volatility function?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ema2 Function in NinjaScript? srgtroy NinjaTrader Programming 3 June 29th, 2011 01:00 AM
Easylanguage: Function to Plot Text Verticaly nunoonline EasyLanguage Programming 2 December 22nd, 2010 06:17 AM
EasyLanguage vs NinjaScript Traderji Platforms and Indicators 2 October 22nd, 2010 02:00 AM
FAS equivalent in IB? emini_Holy_Grail Traders Hideout 3 February 19th, 2010 09:09 AM

All times are GMT -4. The time now is 11:02 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-18 in 0.10 seconds with 19 queries on phoenix via your IP