Forcing recalculation/redraw of a NinjaTrader chart - NinjaTrader Programming | futures io social day trading
futures io futures trading


Forcing recalculation/redraw of a NinjaTrader chart
Updated: Views / Replies:594 / 2
Created: by wolf50us 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

Reply
 
Thread Tools Search this Thread
 

Forcing recalculation/redraw of a NinjaTrader chart

  #1 (permalink)
Elite Member
Sarasota + Florida/USA
 
Futures Experience: Advanced
Platform: Ninja,tradestation,metatrader
Favorite Futures: Futures eminis
 
Posts: 6 since Sep 2014
Thanks: 2 given, 0 received

Forcing recalculation/redraw of a NinjaTrader chart

I have an indicator that plots volume histograms from the session start time similar to dValueArea.

My indicator additionally allows sub session volume histograms to be triggered and displayed
within the session. I have done this by setting a boolean flag for a secondary session and
specifying a time stamp which specifies the time (bar) at which to start the sub session histogram.

By selecting the indicator's properties panel and setting the flag and time stamp and applying the changes
the chart will be redrawn with the child histograms in the specified places.

All of this works fine when using the indicator's property panel and applying the changes. My problem
is that I have added a simple toolstrip button to do the same thing. The button sets the boolean flag
and captures the desired bar.

My problem is that, unlike applying changes from the indicator's properties panel which apparently re-initializes
and redraws the chart, I get no changes when using the toolstrip button.

I have tried calling ChartControl.ChartPanel.Invalidate() and ChartControl.Refresh() from OnMarketUptate()
and within the button click routine to no avail.

I would greatly appreciate any advice that sheds light on the sequence of events that are triggered
when an indicator's properties are changed and how to initiate those changes programmatically.

Thanks in advance and I apologize if I am posting a redundant thread. I have not found the answer yet.

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)
Elite Member
Sarasota + Florida/USA
 
Futures Experience: Advanced
Platform: Ninja,tradestation,metatrader
Favorite Futures: Futures eminis
 
Posts: 6 since Sep 2014
Thanks: 2 given, 0 received

My solution


I found that by storing variables in the Properties Region that NinjaTrader would automatically serialize them for me. By simply changing where I stored my values everything worked due to the fact the changed values would be
serialized on the F5 event and then restored properly before the historical OnUpdates would be applied.

Reply With Quote

Reply



futures io > > > > > Forcing recalculation/redraw of a NinjaTrader chart

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I save my Market Replay chart so I don't have to redraw all the lines shots fired NinjaTrader 4 June 18th, 2017 06:36 AM
Does indicator redraw? elitetradernyc NinjaTrader 2 May 27th, 2013 05:42 AM
Russia calls on UN to redraw map of the Arctic...90 BILLION barrels of oil kbit News and Current Events 0 July 7th, 2011 07:05 PM
Volume Profile indicator recalculation (update) frequency zury Investor/RT 2 May 18th, 2011 09:23 AM
Indicator forcing NinjaTrader to close / shutdown dsraider NinjaTrader Programming 14 July 27th, 2010 08:09 AM


All times are GMT -4. The time now is 12:09 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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-12 in 0.07 seconds with 19 queries on phoenix via your IP 54.145.16.43