NexusFi: Find Your Edge


Home Menu

 





Individual BAR RANGE in Ticks and Currency


Discussion in NinjaTrader

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




 
Search this Thread

Individual BAR RANGE in Ticks and Currency

  #1 (permalink)
 OpalDragon 
Des Moines, Iowa
 
Experience: Advanced
Platform: Ninja Trader
Trading: 6E, CL, Anything that moves
Posts: 559 since Jun 2012
Thanks Given: 733
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?
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020

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: 559 since Jun 2012
Thanks Given: 733
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,022


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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020

You could use another indicator to create your own variation:


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: 559 since Jun 2012
Thanks Given: 733
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: 559 since Jun 2012
Thanks Given: 733
Thanks Received: 232


trendisyourfriend View Post
You could use another indicator to create your own variation:


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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020


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: 559 since Jun 2012
Thanks Given: 733
Thanks Received: 232


trendisyourfriend View Post
You could use another indicator to create your own variation:


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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020



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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts