Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Updated July 9, 2011
Top Posters
looks_one
timmyb
with 17 posts (9 thanks)
looks_two
bukkan
with 6 posts (2 thanks)
looks_3
Big Mike
with 2 posts (0 thanks)
looks_4
terratec
with 1 posts (0 thanks)
trending_up
9,805 views
thumb_up
11 thanks given
group
6 followers
forum
27 posts
attach_file
2 attachments
December 25th, 2010, 01:32 AM
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.
December 25th, 2010, 02:39 AM
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
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
December 25th, 2010, 02:55 AM
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
December 25th, 2010, 03:08 AM
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
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.
December 26th, 2010, 03:13 AM
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
December 27th, 2010, 11:00 AM
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,621 since Jun 2009
Thanks Given: 33,354
Thanks Received: 101,988
timmyb
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
December 28th, 2010, 07:29 AM
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
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
December 28th, 2010, 07:57 AM
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.
December 28th, 2010, 08:49 AM
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
December 28th, 2010, 09:22 AM
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
Last Updated on July 9, 2011