ToolBar Button Reload Crash - futures io
futures io futures trading



ToolBar Button Reload Crash


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

ToolBar Button Reload Crash

(login for full post details)
  #1 (permalink)
Wuhan, Hubei, China
 
Experience: Beginner
Platform: NinjaTrader
Broker: Interactive Broker
Trading: Stocks
 
tshunhu's Avatar
 
Posts: 272 since Jun 2014
Thanks: 306 given, 165 received

Hello!

I've encountered some difficulties when programming indicators in NT7,

Thanks to many threads that talk about adding button to the toolbar of NT7, I succeeded in putting my own diy buttons. The purpose of these buttons is to provide a simple way to display and hide indicators in the chart.

For example, I progammed a indicator to show the bar number since the begin of a session. Once the button is clicked, the numbers display on the chart can be hidden or display.

I achieve this function by calling ChartControl.Indicators to display/add/remove indicators. Normally, the button works fine. BUT, when the indicator is loaded and displayed on the chart, then using Ctrl+Shift+F5 to reload history data will certainly cause a crash of the whole NT program.
  • If add indicator manually from the NT indicators window, a reload will not cause any problem
  • If the indicator is hidden by clicking the button, a reload cause no problem

The bug must be in the button indicator, could any one help me find out reason, OR is there another to achieve the same result? Thank you!

Please find my code in attached files

Aaron_BarNumber.cs

_Show_BarNumber.cs

Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > ToolBar Button Reload Crash


Last Updated on March 7, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



Copyright © 2021 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