Identify Last [right-most] Candle on Static Chart - NinjaTrader | futures io social day trading
futures io futures trading

Identify Last [right-most] Candle on Static Chart
Updated: Views / Replies:467 / 1
Created: by Webby 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

Identify Last [right-most] Candle on Static Chart

  #1 (permalink)
Elite Member
Simi Valley, CA
Futures Experience: Intermediate
Platform: NinjaTrader 7
Broker/Data: AMP Futures
Favorite Futures: Oil, Gold
Posts: 10 since Jun 2009
Thanks: 4 given, 3 received

Identify Last [right-most] Candle on Static Chart

I would like to get some help in identifying when the last [right-most] candle has finished drawing on a "static" chart. By "static" chart, I mean that the chart is pulled up based on the data from the last time the Ninjatrader session was closed down/exited, and before the user "connects" manually via the menu option to the data provider to get the latest candles.

Let me share some information on why I need this. I have a function that needs to be triggered to run only on the last candle drawn on the static chart and not any older historical candles before that. I know about the History() function but am still having problems as even the last [right-most] candle is considered historical (on a static chart) before connection to the provider.

Thanks in advance for any suggestions and/or guidance.


Reply With Quote
  #2 (permalink)
Market Wizard
Birmingham UK
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
ratfink's Avatar
Posts: 3,442 since Dec 2012
Thanks: 12,861 given, 7,534 received
Forum Reputation: Legendary

Webby View Post
Thanks in advance for any suggesions and/or guidance.

My thought would be to investigate using a timer (e.g 5 seconds or whatever) which is set on every 'Historical' bar that is processed in OnBarUpdate, thereby each incoming bar would simply reset the time condition and the timer itself would only actually fire on the last bar as you want.

It would obviously not be set at all when running live, and assumes that the specified delay is longer than the time to process each sequential historical bar (probably by a long margin) and short enough not to affect what you want to do (seems likely.)

You also might want to use the TriggerCustomEvent routine if it needs to be data safe within the Ninja data series areas.

I use this sort of technique for saving last bar of session data out to custom ascii files and guaranteeing to get all ticks in and it's been reliable.

Travel Well
Reply With Quote


futures io > > > > Identify Last [right-most] Candle on Static Chart

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
Static V Dynamic Dom dee50 NinjaTrader 16 October 17th, 2012 12:24 AM
Setting a static profit target toddma NinjaTrader 4 July 31st, 2012 02:03 PM
Dynamic and static bars indicator esam_jir NinjaTrader Programming 1 March 2nd, 2012 07:22 PM
coding to put range of candle beneath each candle anniebee321 NinjaTrader 13 June 18th, 2010 04:20 PM
chat archive not static doug Feedback and Announcements 2 August 12th, 2009 01:40 PM

All times are GMT -4. The time now is 07:45 PM.

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-05-27 in 0.06 seconds with 19 queries on phoenix via your IP