NexusFi: Find Your Edge


Home Menu

 



Categories Help    

 
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 7th, 2015
Size: 3.75 KB
Downloaded: 939 times
Comments/ratings
4 * ejtrader November 16th, 2015 12:12 AM
No Comment
5 * photog53 November 30th, 2015 11:36 AM
Thanks for this!!! (it was on my list to convert as well...glad you did it)
5 * Jaba January 1st, 2016 11:23 PM
Very useful. Is NT7 version available?
5 * Scalpingtrader January 3rd, 2016 11:22 AM
thanks for the sample! Converted the button to toggle the daily VWAP Bands (to be found in the NT8 conversion thread), so they're out of the way when looking at higher timeframes.
5 * StarSpangled February 22nd, 2016 04:27 PM
Thanks so much!!
5 * ValLiant June 7th, 2016 03:46 PM
thanks
5 * dilbert618 June 12th, 2016 01:23 PM
thanks

 
Sort by

 




© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top