Ninja Range Bars With Accurate Closing Values - NinjaTrader Programming | futures io social day trading
futures io futures trading

Ninja Range Bars With Accurate Closing Values
Updated: Views / Replies:984 / 1
Created: by AllenChuck 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 100,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

Ninja Range Bars With Accurate Closing Values

  #1 (permalink)
Elite Member
Medina Ohio USA
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Amp/CQG
Favorite Futures: Nasdaq 100
Posts: 4 since Aug 2012
Thanks: 1 given, 0 received

Ninja Range Bars With Accurate Closing Values

Has anyone successfully programmed "Type" Range Bars for Ninja (not as an indicator)?
I have had 2 Ninja contractors working on it for over a week now. We cannot get it to work properly when...
* There are 2 Ticks in a row where they have different prices, and we request 1 tick bars.
For example: tick1=750.1, tick2=750.2, tick3=750.3, tick4=750.4, tick5=750.5, etc.
When a sequence occurs similar to the one above, All of these bars are lumped into 1 big bar instead of several smaller bars. The bar would be similar to 750.1 to 750.5!...when it should be:
bar1=750.1 to 750.2, bar2=750.2 to 750.3, bar3=750.3 to 750.4, bar4=750.4 to 750.5
I started with Ninja's Range Bar "Type" code. "time, open, high, close,...etc." all match the Data Manager!
bar.Time, bar.Open, bar.High, ...etc. are all off by at least 1 bar & usually represent the highest high and lowest low for some unknown time range.
When more than 1 bar in a row has the same price, the bars are programmed & work perfectly.
* Tick1=750.1, Tick2=750.1, Tick3=750.2, Tick4=750.2...This results in a bar from 750.1 to 750.2.
This is guts of the code (this is only 1 of dozens of things we have tried!):
if(high - low >= rangeValue)
AddBar(bars, close, close, close, close, time, 0, isRealtime);
UpdateBar(bars, open, high, low, close, time, volume, isRealtime);
* All I am trying to do is create Range Bars where the Close is Valid and was Actually Traded!
* The Open Always Equals the previous Bar's Close
* As soon as the bar equals or exceeds the requested bar height
Close that bar & open a new bar where the Open==the previous Close.

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.


futures io > > > > > Ninja Range Bars With Accurate Closing Values

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

July Journal Challenge - $500 in Amazon Gift Cards!


Current Events in Commodity Markets: Influence & Crowd Psychology w/IQFeed

Jul 12

AXESS Trader: Powerful cloud Based Trading Platform w/GFF Brokers

Jul 17

TBA: FuturesTrader71 w/Morad Askar

Elite only

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading values from Excel to Ninja spinnybobo NinjaTrader Programming 8 September 13th, 2015 11:23 AM
renko bars vs range bars? shodson Traders Hideout 21 April 26th, 2012 03:52 PM
Range bars before the time a open the Ninja Platform? Barrosco Traders Hideout 4 March 29th, 2011 08:04 AM
nt 7 closing dom prices and chart closing price differ anniebee321 Trading Reviews and Vendors 8 December 9th, 2010 07:34 PM
How to set values that Ninja Trader does not support. CryptOrchid NinjaTrader Programming 7 May 14th, 2010 09:51 AM

All times are GMT -4. The time now is 08:37 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-07-14 in 0.08 seconds with 14 queries on phoenix