ToolBar Button Reload Crash - NinjaTrader | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader

ToolBar Button Reload Crash
Started:March 7th, 2016 (02:21 PM) by tshunhu Views / Replies:106 / 0
Last Reply:March 7th, 2016 (02:21 PM) Attachments:2

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

ToolBar Button Reload Crash

Old March 7th, 2016, 02:21 PM   #1 (permalink)
Elite Member
Wuhan, Hubei, China
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Interactive Broker
Favorite Futures: Stocks
tshunhu's Avatar
Posts: 189 since Jun 2014
Thanks: 241 given, 152 received

ToolBar Button Reload Crash


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



Focus on trading and mental skills rather than profit~
One trade has nothing to do with another, each trade should have its own setup/stop/target~
consistancy should not be the goal of trading but the by-product of strong mind and advanced skill~
Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > ToolBar Button Reload Crash

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Toolbar Button Pman NinjaTrader Programming 1 February 18th, 2015 11:20 AM
ToolBar Shortcut RDutchik Traders Hideout 2 July 24th, 2014 10:07 PM
Custom Toolbar Button for NT7 protrader007 The Elite Circle 38 February 24th, 2013 08:38 AM
Calling All Crash Test Dummies: Big Crash Ahead kbit News and Current Events 0 April 10th, 2012 06:13 PM
New Drop Down in Toolbar timmyb NinjaTrader Programming 27 July 9th, 2011 02:38 AM

All times are GMT -4. The time now is 05:30 PM.

Copyright © 2016 by 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 2016-10-26 in 0.07 seconds with 20 queries on phoenix via your IP