New Drop Down in Toolbar - NinjaTrader Programming | futures io social day trading
futures io futures trading


New Drop Down in Toolbar
Updated: Views / Replies:5,031 / 27
Created: by timmyb Attachments:2

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
 2  
 
Thread Tools Search this Thread
 

New Drop Down in Toolbar

  #11 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received

you might have to create custom control for checkboxes, but do have a look at CheckOnClick property of the dropdownitem. that should be sufficient i suppose.

Reply With Quote
 
  #12 (permalink)
Elite Member
duluth,mn
 
Futures Experience: Advanced
Platform: ninja,thinkorswim
Broker/Data: Amp-Zenfire
Favorite Futures: ES,Options
 
Posts: 648 since Feb 2010
Thanks: 81 given, 1,349 received


bukkan View Post
you might have to create custom control for checkboxes, but do have a look at CheckOnClick property of the dropdownitem. that should be sufficient i suppose.

Thanks again Bukken, I am very grateful. I am still fiddling. I am now trying to reference a dll i made in visual studio with a form in it. I am able to set references fine ect but haven been able to figure out how to get it to pop up yet, But still plugging away I will post here when I figure it out

Reply With Quote
 
  #13 (permalink)
Elite Member
Calcutta, India
 
Futures Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 259 received


i made something on this line sometimes back. have a look at this.

NinjaTrader - Output Window

look at the indicator. that will give you enough hint on how to call the dll etc.

cheers

Reply With Quote
 
  #14 (permalink)
Elite Member
duluth,mn
 
Futures Experience: Advanced
Platform: ninja,thinkorswim
Broker/Data: Amp-Zenfire
Favorite Futures: ES,Options
 
Posts: 648 since Feb 2010
Thanks: 81 given, 1,349 received


bukkan View Post
i made something on this line sometimes back. have a look at this.

NinjaTrader - Output Window

look at the indicator. that will give you enough hint on how to call the dll etc.

cheers

I am starting to understand it, but there is no dll or indicator there to download and work with. Thanks again for all the help. I am realizing maybe I am going about this wrong in visual studio. I was building a widnows form and it appears from you site i need a library. I will keep trying to fiddle on my end.

Reply With Quote
 
  #15 (permalink)
Elite Member
duluth,mn
 
Futures Experience: Advanced
Platform: ninja,thinkorswim
Broker/Data: Amp-Zenfire
Favorite Futures: ES,Options
 
Posts: 648 since Feb 2010
Thanks: 81 given, 1,349 received

So I been working at this and managed to get my own toolbar on the screen, but when I use the click events i have to click. then click the screen. I am curious how to get it to not need the option clicked then the screen also


Thanks again guys

Tim

Reply With Quote
 
  #16 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,214 received


timmyb View Post
So I been working at this and managed to get my own toolbar on the screen, but when I use the click events i have to click. then click the screen. I am curious how to get it to not need the option clicked then the screen also


Thanks again guys

Tim

Can you rephrase that?

I have some old code I wrote a long time ago for a bunch of toolbar addons including drop downs, popouts, etc. I will try to find it and see what I can post (I can't post all of it, I was paid for the work) if you are still having some trouble.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #17 (permalink)
Elite Member
duluth,mn
 
Futures Experience: Advanced
Platform: ninja,thinkorswim
Broker/Data: Amp-Zenfire
Favorite Futures: ES,Options
 
Posts: 648 since Feb 2010
Thanks: 81 given, 1,349 received


Big Mike View Post
Can you rephrase that?

I have some old code I wrote a long time ago for a bunch of toolbar addons including drop downs, popouts, etc. I will try to find it and see what I can post (I can't post all of it, I was paid for the work) if you are still having some trouble.

Mike

Sorry mike i musta been half asleep. Basically when I had any button on the toolstrip, when I clicked the button I would then have to click the chart for the event to occur. As in I could click the button all i wanted and nothing would happen. But if I click the button then click the chart what I want it to do it does. I cant seem to figure out why i have to click the button and chart.

On a side question, I have Dundas guage add in for visual studio. I am curious how to implement it into ninja. I would imagine i have to reference it somehow. But I am unsure of where to look for the dll. I know how to copy and paste code into ninja now. But have not learned how to jsut use a dll created in visual studio. Perhaps this si easier that way I am not sure.


Here is some code snippets from it in visual studio.
 
Code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace New_guages_test
{
    public partial class UserControl1 : UserControl
    {
        public UserControl1()
        {
            InitializeComponent();
        }

        private void gaugeContainer1_Click(object sender, EventArgs e)
        {

        }
    }
}
 
Code
namespace New_guages_test
{
    partial class UserControl1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Dundas.Gauges.WinControl.GaugeLabel gaugeLabel1 = ((Dundas.Gauges.WinControl.GaugeLabel)(new Dundas.Gauges.WinControl.GaugeLabel()));
            Dundas.Gauges.WinControl.NumericIndicator numericIndicator1 = ((Dundas.Gauges.WinControl.NumericIndicator)(new Dundas.Gauges.WinControl.NumericIndicator()));
            Dundas.Gauges.WinControl.StateIndicator stateIndicator1 = ((Dundas.Gauges.WinControl.StateIndicator)(new Dundas.Gauges.WinControl.StateIndicator()));
            Dundas.Gauges.WinControl.StateIndicator stateIndicator2 = ((Dundas.Gauges.WinControl.StateIndicator)(new Dundas.Gauges.WinControl.StateIndicator()));
            Dundas.Gauges.WinControl.StateIndicator stateIndicator3 = ((Dundas.Gauges.WinControl.StateIndicator)(new Dundas.Gauges.WinControl.StateIndicator()));
            Dundas.Gauges.WinControl.InputValue inputValue1 = ((Dundas.Gauges.WinControl.InputValue)(new Dundas.Gauges.WinControl.InputValue()));
            this.gaugeContainer1 = new Dundas.Gauges.WinControl.GaugeContainer();
            ((System.ComponentModel.ISupportInitialize)(this.gaugeContainer1)).BeginInit();
            this.SuspendLayout();
            // 
            // gaugeContainer1
            // 
            this.gaugeContainer1.BackFrame.FrameShape = Dundas.Gauges.WinControl.BackFrameShape.Rectangular;
            this.gaugeContainer1.BackFrame.FrameStyle = Dundas.Gauges.WinControl.BackFrameStyle.None;
            this.gaugeContainer1.Dock = System.Windows.Forms.DockStyle.Top;
            this.gaugeContainer1.InternalBackgroundPaint = false;
            gaugeLabel1.BackColor = System.Drawing.Color.Empty;
            gaugeLabel1.BackGradientEndColor = System.Drawing.Color.Empty;
            gaugeLabel1.Location.X = 26F;
            gaugeLabel1.Location.Y = 47F;
            gaugeLabel1.Name = "Label1";
            gaugeLabel1.Parent = "";
            gaugeLabel1.Size.Height = 6F;
            gaugeLabel1.Size.Width = 12F;
            this.gaugeContainer1.Labels.Add(gaugeLabel1);
            this.gaugeContainer1.Location = new System.Drawing.Point(0, 0);
            this.gaugeContainer1.Name = "gaugeContainer1";
            numericIndicator1.LedDimColor = System.Drawing.Color.Empty;
            numericIndicator1.Location.X = 10F;
            numericIndicator1.Location.Y = 0F;
            numericIndicator1.Name = "Indicator1";
            numericIndicator1.Parent = "";
            numericIndicator1.ShadowOffset = 2F;
            numericIndicator1.Size.Height = 99F;
            numericIndicator1.Size.Width = 89F;
            numericIndicator1.Value = 367.12;
            this.gaugeContainer1.NumericIndicators.Add(numericIndicator1);
            this.gaugeContainer1.Size = new System.Drawing.Size(460, 102);
            stateIndicator1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            stateIndicator1.BorderWidth = 1;
            stateIndicator1.Location.X = 0F;
            stateIndicator1.Location.Y = 10F;
            stateIndicator1.Name = "Indicator1";
            stateIndicator1.Parent = "";
            stateIndicator1.ShadowOffset = 2F;
            stateIndicator1.Size.Height = 20F;
            stateIndicator1.Size.Width = 10F;
            stateIndicator2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            stateIndicator2.BorderWidth = 1;
            stateIndicator2.FillColor = System.Drawing.Color.Yellow;
            stateIndicator2.FillGradientEndColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
            stateIndicator2.Location.X = 0F;
            stateIndicator2.Location.Y = 40F;
            stateIndicator2.Name = "Indicator2";
            stateIndicator2.Parent = "";
            stateIndicator2.ShadowOffset = 2F;
            stateIndicator2.Size.Height = 20F;
            stateIndicator2.Size.Width = 10F;
            stateIndicator3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            stateIndicator3.BorderWidth = 1;
            stateIndicator3.FillColor = System.Drawing.Color.Red;
            stateIndicator3.FillGradientEndColor = System.Drawing.Color.Maroon;
            stateIndicator3.Location.X = 0F;
            stateIndicator3.Location.Y = 70F;
            stateIndicator3.Name = "Indicator3";
            stateIndicator3.Parent = "";
            stateIndicator3.ShadowOffset = 2F;
            stateIndicator3.Size.Height = 20F;
            stateIndicator3.Size.Width = 10F;
            this.gaugeContainer1.StateIndicators.Add(stateIndicator1);
            this.gaugeContainer1.StateIndicators.Add(stateIndicator2);
            this.gaugeContainer1.StateIndicators.Add(stateIndicator3);
            this.gaugeContainer1.TabIndex = 0;
            inputValue1.Name = "Default";
            this.gaugeContainer1.Values.Add(inputValue1);
            this.gaugeContainer1.Click += new System.EventHandler(this.gaugeContainer1_Click);
            // 
            // UserControl1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.gaugeContainer1);
            this.Name = "UserControl1";
            this.Size = new System.Drawing.Size(460, 506);
            ((System.ComponentModel.ISupportInitialize)(this.gaugeContainer1)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private Dundas.Gauges.WinControl.GaugeContainer gaugeContainer1;
    }
}

Anyway Once i get this all figured out I will post in this thread how to do allot of this so others can learn from what I have

thanks for anyones help

Tim

Reply With Quote
 
  #18 (permalink)
Elite Member
duluth,mn
 
Futures Experience: Advanced
Platform: ninja,thinkorswim
Broker/Data: Amp-Zenfire
Favorite Futures: ES,Options
 
Posts: 648 since Feb 2010
Thanks: 81 given, 1,349 received

Ok I found the dll to reference. All going well so far. Will post a screenshot when i get other things figured out.

Also say i get something built and i want to share it how do i do that since i would have to include the dll. Since we don't allow dll uploading.

Reply With Quote
 
  #19 (permalink)
Elite Member
duluth,mn
 
Futures Experience: Advanced
Platform: ninja,thinkorswim
Broker/Data: Amp-Zenfire
Favorite Futures: ES,Options
 
Posts: 648 since Feb 2010
Thanks: 81 given, 1,349 received

Ok new problem when i copy and paste the guagte code into ninja it all compiles ok but then nothing shows and i get this error. Any of you computer gurus out there help??

Is using something like dundas gauge not compatible with ninja, Or do i need to put a copy of the dll in the ninja folder then reference it??

here is the code that compiles

 
Code
#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;

//Added usings from Tim
using System.Windows.Forms;

using System.Collections.Generic;
using System.Linq;
#endregion

// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    /// <summary>
    /// test test test
    /// </summary>
    [Description("Gauge Testing")]
    public class Newguage : Indicator
    {
        #region Variables
        // Wizard generated variables
        // User defined variables (add any user defined variables below)
            private System.Windows.Forms.ToolStrip strip = null;
            private System.Windows.Forms.ToolStripButton button = null;
            private System.Windows.Forms.Panel thePanel = null;
            private System.Windows.Forms.Splitter theSplitter = null;
            private System.Windows.Forms.DockStyle dockWhere = System.Windows.Forms.DockStyle.Left;
        
        // Guages Variables
            private Dundas.Gauges.WinControl.GaugeContainer gaugeContainer1;
        
        #endregion

        /// <summary>
        /// This method is used to configure the indicator and is called once before any bar data is loaded.
        /// </summary>
        protected override void Initialize()
        {
            CalculateOnBarClose    = true;
            Overlay                = true;
            
            #region Guage Control
            
            Dundas.Gauges.WinControl.GaugeLabel gaugeLabel1 = ((Dundas.Gauges.WinControl.GaugeLabel)(new Dundas.Gauges.WinControl.GaugeLabel()));
            Dundas.Gauges.WinControl.NumericIndicator numericIndicator1 = ((Dundas.Gauges.WinControl.NumericIndicator)(new Dundas.Gauges.WinControl.NumericIndicator()));
            Dundas.Gauges.WinControl.StateIndicator stateIndicator1 = ((Dundas.Gauges.WinControl.StateIndicator)(new Dundas.Gauges.WinControl.StateIndicator()));
            Dundas.Gauges.WinControl.StateIndicator stateIndicator2 = ((Dundas.Gauges.WinControl.StateIndicator)(new Dundas.Gauges.WinControl.StateIndicator()));
            Dundas.Gauges.WinControl.StateIndicator stateIndicator3 = ((Dundas.Gauges.WinControl.StateIndicator)(new Dundas.Gauges.WinControl.StateIndicator()));
            Dundas.Gauges.WinControl.InputValue inputValue1 = ((Dundas.Gauges.WinControl.InputValue)(new Dundas.Gauges.WinControl.InputValue()));
            this.gaugeContainer1 = new Dundas.Gauges.WinControl.GaugeContainer();
            //((System.ComponentModel.ISupportInitialize)(this.gaugeContainer1)).BeginInit();
           // this.SuspendLayout();
            // 
            // gaugeContainer1
            // 
            this.gaugeContainer1.BackFrame.FrameShape = Dundas.Gauges.WinControl.BackFrameShape.Rectangular;
            this.gaugeContainer1.BackFrame.FrameStyle = Dundas.Gauges.WinControl.BackFrameStyle.None;
            this.gaugeContainer1.Dock = dockWhere;
            this.gaugeContainer1.InternalBackgroundPaint = false;
            gaugeLabel1.BackColor = System.Drawing.Color.Empty;
            gaugeLabel1.BackGradientEndColor = System.Drawing.Color.Empty;
            gaugeLabel1.Location.X = 26F;
            gaugeLabel1.Location.Y = 47F;
            gaugeLabel1.Name = "Label1";
            gaugeLabel1.Parent = "";
            gaugeLabel1.Size.Height = 6F;
            gaugeLabel1.Size.Width = 12F;
            this.gaugeContainer1.Labels.Add(gaugeLabel1);
            this.gaugeContainer1.Location = new System.Drawing.Point(0, 0);
            this.gaugeContainer1.Name = "gaugeContainer1";
            numericIndicator1.LedDimColor = System.Drawing.Color.Empty;
            numericIndicator1.Location.X = 10F;
            numericIndicator1.Location.Y = 0F;
            numericIndicator1.Name = "Indicator1";
            numericIndicator1.Parent = "";
            numericIndicator1.ShadowOffset = 2F;
            numericIndicator1.Size.Height = 99F;
            numericIndicator1.Size.Width = 89F;
            numericIndicator1.Value = 367.12;
            this.gaugeContainer1.NumericIndicators.Add(numericIndicator1);
            this.gaugeContainer1.Size = new System.Drawing.Size(460, 102);
            stateIndicator1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            stateIndicator1.BorderWidth = 1;
            stateIndicator1.Location.X = 0F;
            stateIndicator1.Location.Y = 10F;
            stateIndicator1.Name = "Indicator1";
            stateIndicator1.Parent = "";
            stateIndicator1.ShadowOffset = 2F;
            stateIndicator1.Size.Height = 20F;
            stateIndicator1.Size.Width = 10F;
            stateIndicator2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            stateIndicator2.BorderWidth = 1;
            stateIndicator2.FillColor = System.Drawing.Color.Yellow;
            stateIndicator2.FillGradientEndColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
            stateIndicator2.Location.X = 0F;
            stateIndicator2.Location.Y = 40F;
            stateIndicator2.Name = "Indicator2";
            stateIndicator2.Parent = "";
            stateIndicator2.ShadowOffset = 2F;
            stateIndicator2.Size.Height = 20F;
            stateIndicator2.Size.Width = 10F;
            stateIndicator3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            stateIndicator3.BorderWidth = 1;
            stateIndicator3.FillColor = System.Drawing.Color.Red;
            stateIndicator3.FillGradientEndColor = System.Drawing.Color.Maroon;
            stateIndicator3.Location.X = 0F;
            stateIndicator3.Location.Y = 70F;
            stateIndicator3.Name = "Indicator3";
            stateIndicator3.Parent = "";
            stateIndicator3.ShadowOffset = 2F;
            stateIndicator3.Size.Height = 20F;
            stateIndicator3.Size.Width = 10F;
            this.gaugeContainer1.StateIndicators.Add(stateIndicator1);
            this.gaugeContainer1.StateIndicators.Add(stateIndicator2);
            this.gaugeContainer1.StateIndicators.Add(stateIndicator3);
            this.gaugeContainer1.TabIndex = 0;
            inputValue1.Name = "Default";
            this.gaugeContainer1.Values.Add(inputValue1);
          //  this.gaugeContainer1.Click += new System.EventHandler(this.gaugeContainer1_Click);
            // 
            // UserControl1
            // 
          //  this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
         //   this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         //   this.Controls.Add(this.gaugeContainer1);
         //   this.Name = "UserControl1";
         //   this.Size = new System.Drawing.Size(460, 506);
         //   ((System.ComponentModel.ISupportInitialize)(this.gaugeContainer1)).EndInit();
          //  this.ResumeLayout(false);
            
            
            
            
            #endregion
            
            
            
        }

        protected override void OnStartUp() {            
            base.OnStartUp();
            
        
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            theSplitter = new System.Windows.Forms.Splitter();
            theSplitter.Dock = dockWhere;
            theSplitter.Width = 7;
            theSplitter.BackColor = Color.Blue;
            ChartControl.Controls.Add(theSplitter);
            
            thePanel = new System.Windows.Forms.Panel();
            //thePanel.Text = "http://www.movethemarkets.com\nTake notes below:\n\n";
            //thePanel.DetectUrls = false;
            thePanel.Dock = dockWhere;
            ChartControl.Controls.Add(thePanel);
            //ChartControl.Controls.Add(this.gaugeContainer1);
            //thePanel.Controls.Add(this.gaugeContainer1);
            
            System.Windows.Forms.Control[] coll = ChartControl.Controls.Find("tsrTool",false);
            if(coll.Length > 0) {
              button = new System.Windows.Forms.ToolStripButton("Hide Panel");
              button.Click += hideShowPanel;
              strip = (System.Windows.Forms.ToolStrip)coll[0];
              strip.Items.Add(button);    
            }            
        }
        
        private void hideShowPanel(object s, EventArgs e) {
              if(thePanel == null) return;
            
            if(thePanel.Visible) {
              thePanel.Hide();
              theSplitter.Hide();
              button.Text = "Show Panel";
            } else {
              theSplitter.Show();
              thePanel.Show();
              button.Text = "Hide Panel";
            }
        }
        
        protected override void OnTermination() {
            if(thePanel != null) ChartControl.Controls.Remove(thePanel);
            //thePanel.Controls.Remove(this.gaugeContainer1);
            if(theSplitter != null) ChartControl.Controls.Remove(theSplitter);
            
               if((strip != null) && (button != null)) {
                strip.Items.Remove(button);
                
            }
            
            thePanel = null;
            theSplitter = null;
            strip = null;
            button = null;
            
            base.OnTermination();
        }
        
        /// <summary>
        /// Called on each bar update event (incoming tick)
        /// </summary>
        protected override void OnBarUpdate()
        {
        }

        #region Properties
        [Description("Where to dock the panel?")]
        [GridCategory("Parameters")]
        public System.Windows.Forms.DockStyle DockWhere
        {
            get { return dockWhere; }
            set { if((value != System.Windows.Forms.DockStyle.Fill) &&
                     (value != System.Windows.Forms.DockStyle.None)) 
                    dockWhere = value;
               }
        }        
        #endregion
    }
}

#region NinjaScript generated code. Neither change nor remove.
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    public partial class Indicator : IndicatorBase
    {
        private Newguage[] cacheNewguage = null;

        private static Newguage checkNewguage = new Newguage();

        /// <summary>
        /// Gauge Testing
        /// </summary>
        /// <returns></returns>
        public Newguage Newguage(System.Windows.Forms.DockStyle dockWhere)
        {
            return Newguage(Input, dockWhere);
        }

        /// <summary>
        /// Gauge Testing
        /// </summary>
        /// <returns></returns>
        public Newguage Newguage(Data.IDataSeries input, System.Windows.Forms.DockStyle dockWhere)
        {
            if (cacheNewguage != null)
                for (int idx = 0; idx < cacheNewguage.Length; idx++)
                    if (cacheNewguage[idx].DockWhere == dockWhere && cacheNewguage[idx].EqualsInput(input))
                        return cacheNewguage[idx];

            lock (checkNewguage)
            {
                checkNewguage.DockWhere = dockWhere;
                dockWhere = checkNewguage.DockWhere;

                if (cacheNewguage != null)
                    for (int idx = 0; idx < cacheNewguage.Length; idx++)
                        if (cacheNewguage[idx].DockWhere == dockWhere && cacheNewguage[idx].EqualsInput(input))
                            return cacheNewguage[idx];

                Newguage indicator = new Newguage();
                indicator.BarsRequired = BarsRequired;
                indicator.CalculateOnBarClose = CalculateOnBarClose;
#if NT7
                indicator.ForceMaximumBarsLookBack256 = ForceMaximumBarsLookBack256;
                indicator.MaximumBarsLookBack = MaximumBarsLookBack;
#endif
                indicator.Input = input;
                indicator.DockWhere = dockWhere;
                Indicators.Add(indicator);
                indicator.SetUp();

                Newguage[] tmp = new Newguage[cacheNewguage == null ? 1 : cacheNewguage.Length + 1];
                if (cacheNewguage != null)
                    cacheNewguage.CopyTo(tmp, 0);
                tmp[tmp.Length - 1] = indicator;
                cacheNewguage = tmp;
                return indicator;
            }
        }
    }
}

// This namespace holds all market analyzer column definitions and is required. Do not change it.
namespace NinjaTrader.MarketAnalyzer
{
    public partial class Column : ColumnBase
    {
        /// <summary>
        /// Gauge Testing
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.Newguage Newguage(System.Windows.Forms.DockStyle dockWhere)
        {
            return _indicator.Newguage(Input, dockWhere);
        }

        /// <summary>
        /// Gauge Testing
        /// </summary>
        /// <returns></returns>
        public Indicator.Newguage Newguage(Data.IDataSeries input, System.Windows.Forms.DockStyle dockWhere)
        {
            return _indicator.Newguage(input, dockWhere);
        }
    }
}

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    public partial class Strategy : StrategyBase
    {
        /// <summary>
        /// Gauge Testing
        /// </summary>
        /// <returns></returns>
        [Gui.Design.WizardCondition("Indicator")]
        public Indicator.Newguage Newguage(System.Windows.Forms.DockStyle dockWhere)
        {
            return _indicator.Newguage(Input, dockWhere);
        }

        /// <summary>
        /// Gauge Testing
        /// </summary>
        /// <returns></returns>
        public Indicator.Newguage Newguage(Data.IDataSeries input, System.Windows.Forms.DockStyle dockWhere)
        {
            if (InInitialize && input == null)
                throw new ArgumentException("You only can access an indicator with the default input/bar series from within the 'Initialize()' method");

            return _indicator.Newguage(input, dockWhere);
        }
    }
}
#endregion

Attached Thumbnails
New Drop Down in Toolbar-12-28-2010-7-46-06-am-error.png  
Reply With Quote
 
  #20 (permalink)
Elite Member
duluth,mn
 
Futures Experience: Advanced
Platform: ninja,thinkorswim
Broker/Data: Amp-Zenfire
Favorite Futures: ES,Options
 
Posts: 648 since Feb 2010
Thanks: 81 given, 1,349 received


Ok so i think i know what is wrong but I don't know how to fix it. Basically you have a key for Dundas Guages. I don't know how to get ninja to know about this key. So i guess i have to learn how to build this in visual studio then export as a compiled dll i think. I will keep trying. If anyone has any ideas let me know.

Tim

Reply With Quote

Reply



futures io > > > > > New Drop Down in Toolbar

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
Adding a 2nd Toolbar on a NT chart? fosch NinjaTrader Programming 6 October 6th, 2016 01:38 PM
Custom Toolbar Button for NT7 protrader007 The Elite Circle 38 February 24th, 2013 09:38 AM
Asia Stocks Drop at Open; Some See Opportunities Quick Summary News and Current Events 0 August 4th, 2011 10:00 PM
Toolbar Buttons tm10 Elite Automated Trading 8 March 21st, 2011 02:30 PM
How the Drop in Home Sales May Actually Be a Good Thing Quick Summary News and Current Events 0 June 22nd, 2010 07:40 PM


All times are GMT -4. The time now is 12:16 AM.

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-10 in 0.13 seconds with 20 queries on phoenix via your IP 54.90.207.75