NinjaTrader 8 Indicators and More - Sample - Draw/Not draw indicator via Button V3.2
futures io futures trading


Categories Help    

NinjaTrader 8 Indicators and More
Indicators and Files in this section are compatible with NinjaTrader 8


Entries
Sample - Draw/Not draw indicator via Button V3.2 5 *
Here is a sample of a panel button that turns an indicator visibility on/off via a 'click'. You do not have to refresh the chart each time.

Version 3.2

* Fixed for NT8b9. Recent NT8 changes to multi-threading created freezing when the chart was loaded.


I was so used to my MarketDelta buttons that I had to do it for NT8 .

This indicator draws an EMA both via the Plot method and the OnRender method so you can see the code for both techniques.

Thank you very much to "Edge" for the original "button" code and help.

Version3 - Nov 2015:

* Used 'UserControlCollection' instead of 'ChartControl' for safer usage and it does not interfere with the bars or plotting.
* Created smaller button.
* You can have up to 10 buttons per panel (or more if you change the code). So you can add 10 ema's and specify which position you would like via 'Column#'.
* Buttons are hard-coded to plot at the top-left of the panel but you can change this in the code if you like via 'myGrid'.
* The button will appear within the panel the indicator is plotted. Please read the 'summary' at the top of the code for limitations of usage. Use at your own risk.

Version 3.1

* Fixed bug that prevented button working when state changed from Historical to RealTime.




Sim22


Category NinjaTrader 8 Indicators and More 
 
Suggest other entries I might like
Details: Sample - Draw/Not draw indicator via Button V3.2
Category: NinjaTrader 8 Indicators and More 


November 8th, 2015
Size: 3.75 KB
Downloaded: 788 times
 


 
Category
 



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.