NexusFi: Find Your Edge


Home Menu

 





New Drop Down in Toolbar


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one timmyb with 17 posts (9 thanks)
    2. looks_two bukkan with 6 posts (2 thanks)
    3. looks_3 Big Mike with 2 posts (0 thanks)
    4. looks_4 gomi with 1 posts (0 thanks)
    1. trending_up 9,362 views
    2. thumb_up 11 thanks given
    3. group 6 followers
    1. forum 27 posts
    2. attach_file 2 attachments




 
Search this Thread

New Drop Down in Toolbar

  #11 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

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

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #12 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361


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

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #13 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271


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)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361


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.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #15 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361

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

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #16 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,443 since Jun 2009
Thanks Given: 33,217
Thanks Received: 101,603


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

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #17 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361


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

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #18 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361

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.

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #19 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361

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
Click image for larger version

Name:	12-28-2010 7-46-06 AM error.png
Views:	260
Size:	120.7 KB
ID:	27394  
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #20 (permalink)
 timmyb 
duluth,mn
 
Experience: Advanced
Platform: ninja,thinkorswim
Broker: Amp-Zenfire
Trading: ES,Options
Posts: 654 since Feb 2010
Thanks Given: 81
Thanks Received: 1,361


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

Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on July 9, 2011


© 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
no new posts