I have just started to explore 7. So far I really like what I see. But I am running into some issues.
How would I get a Line drawn by indicator code that is placed on a 5 Min Chart to show up on the 500 Volume Chart. Is there some Sample Code for this. The attached image of the 5 Min and 500 Volume chart shows what I have so far. And I have a attached a very simple indicator to draw the line on the 5 Min Chart.
Is there an OverLoad that I have missed that would Enable the line to be drawn on (All charts)? If not, could that be included?
Thanks for pointing me in the right direction.
#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;
#endregion
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
/// <summary>
/// Enter the description of your new custom indicator here
/// </summary>
[Description("Enter the description of your new custom indicator here")]
public class htcDrawLineTest : Indicator
{
#region Variables
// Wizard generated variables
// User defined variables (add any user defined variables below)
#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()
{
Overlay = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (ToTime(Time[0]) == 11500)
// Draws a Line
//ILine line = DrawLine("tag1", false, 10, 1000, 0, 1001, Color.LimeGreen, DashStyle.Dot, 2);
// The ILine will NOT COMPILE
if (ToTime(Time[0]) == 11500)
DrawLine("TestLine", true, 20, 1204, 0, 1204, Color.Blue, DashStyle.Solid, 5);
}
#region Properties
#endregion
}
}

Comment