NexusFi: Find Your Edge


Home Menu

 





Individual BAR RANGE in Ticks and Currency


Discussion in NinjaTrader

Updated
    1. trending_up 2,110 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 OpalDragon 
Des Moines, Iowa
 
Experience: Advanced
Platform: Ninja Trader
Trading: 6E, CL, Anything that moves
Posts: 561 since Jun 2012
Thanks Given: 735
Thanks Received: 232

GENTLEMEN:
Is there something that will measure EACH INDIVIDUAL BAR and give the RANGE of each bar in ticks and currency?

Kind of like how Price action swing will type out the swing length but I need each individual bar.

OR

It can type out the tick and currency either just above the bar or do a histogram below the chart.

I think this would be good to see how much ticks of movement there were in bars that make random bar lengths like minute bars and point-and-figure and volume...etc.. etc.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Hungary Called for Magyar at 97pct, Ending 16-Year Orban …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
CPI Eve: Fed Hike Odds Hold at 52% for the First Time, I …
Prediction Markets & Event Contracts
SEC and CFTC Unlock Customer Cross-Margining for Treasur …
Treasury Notes and Bonds
NinjaTrader Parent Payward Acquires Bitnomial for $550M …
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199

There is already a native indicator called Range you can use. You can also get the average range of x bars too:

// Prints the 20 period simple moving average of range
double value = SMA(Range(), 20)[0];
Print("The 20 period average of range is " + value.ToString());

https://ninjatrader.com/fr/support/helpGuides/nt8/?range.htm


Reply With Quote
Thanked by:
  #3 (permalink)
 OpalDragon 
Des Moines, Iowa
 
Experience: Advanced
Platform: Ninja Trader
Trading: 6E, CL, Anything that moves
Posts: 561 since Jun 2012
Thanks Given: 735
Thanks Received: 232


Thanks !

But man it still sucks at what it is supposed to do.

It DOESN'T give the Range in Ticks -- it only gives it in POINTS.

So I am getting a value of 0.75 for 3 ticks of ES.

Then it does not allow the option to give the currency value of each bar. :/


Started this thread Reply With Quote
  #4 (permalink)
 
glennts's Avatar
 glennts 
Corpus Christi, TX / Westcliffe, CO
 
Experience: Advanced
Platform: NinjaTrader
Broker: DDT / Rithmic / Kinetick / IQ
Trading: 6E, ES
Posts: 420 since Oct 2010
Thanks Given: 24
Thanks Received: 1,025


OpalDragon View Post

But man it still sucks at what it is supposed to do.

It DOESN'T give the Range in Ticks -- it only gives it in POINTS.

So I am getting a value of 0.75 for 3 ticks of ES.

Then it does not allow the option to give the currency value of each bar. :/

If you take the time to look at the code for @RANGE you will see at line 50 how it is calculated. If you take the time to look in NT's Help you can learn how to add a few extra words to have the Range expressed in Ticks and $ value.


"If you don't want random outcomes, don't make random decisions."
Reply With Quote
Thanked by:
  #5 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199

You could use another indicator to create your own variation:
https://nexusfi.com/local_links.php?linkid=2129

This formula should return the number of tick per point for ES and NQ
VALUE(Range(), 0) / 0.25


Reply With Quote
Thanked by:
  #6 (permalink)
 OpalDragon 
Des Moines, Iowa
 
Experience: Advanced
Platform: Ninja Trader
Trading: 6E, CL, Anything that moves
Posts: 561 since Jun 2012
Thanks Given: 735
Thanks Received: 232


glennts View Post
If you take the time to look at the code for @RANGE you will see at line 50 how it is calculated. If you take the time to look in NT's Help you can learn how to add a few extra words to have the Range expressed in Ticks and $ value.

Yea -- I figured I had to do that.... lol


Started this thread Reply With Quote
  #7 (permalink)
 OpalDragon 
Des Moines, Iowa
 
Experience: Advanced
Platform: Ninja Trader
Trading: 6E, CL, Anything that moves
Posts: 561 since Jun 2012
Thanks Given: 735
Thanks Received: 232


trendisyourfriend View Post
You could use another indicator to create your own variation:
https://nexusfi.com/local_links.php?linkid=2129

This formula should return the number of tick per point for ES and NQ
VALUE(Range(), 0) / 0.25

Ok -- I will try that


Started this thread Reply With Quote
  #8 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199


OpalDragon View Post
Ok -- I will try that

I think the correct way is to use this formula according to the instructions:
VALUE(Range(CLOSE()), 0) / 0.25


Reply With Quote
  #9 (permalink)
 OpalDragon 
Des Moines, Iowa
 
Experience: Advanced
Platform: Ninja Trader
Trading: 6E, CL, Anything that moves
Posts: 561 since Jun 2012
Thanks Given: 735
Thanks Received: 232


trendisyourfriend View Post
You could use another indicator to create your own variation:
https://nexusfi.com/local_links.php?linkid=2129

This formula should return the number of tick per point for ES and NQ
VALUE(Range(), 0) / 0.25


That is awesome -- that worked.


Is there a way to get the indicator to print numbers the numbers on the bar? [ just over the bar or under the bar ]


Started this thread Reply With Quote
  #10 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,580 since Oct 2009
Thanks Given: 4,266
Thanks Received: 6,199



OpalDragon View Post
That is awesome -- that worked.


Is there a way to get the indicator to print numbers the numbers on the bar? [ just over the bar or under the bar ]

Yes of course but you would need to create an indicator with Ninjascript. It would be quite easy to do.


Reply With Quote




Last Updated on August 7, 2022


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts