Can someone show me what the line of code would look like to "get" (read) the Color value. Also, if I need to set up / define it first, please include that.
Here is my declaration section,
so I would think I can access the structure from within NinjaTrader.Gui.Chart;
#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
using System.Windows.Forms;
#endregion
Here is where I read drawn objects
// loop through all drawn obncts to locate each Andrew Pitchfork that was manually drawn
foreach (IDrawObject draw in DrawObjects)
{
// Determinite if selected object is an Andrews Pitchfoirk
if (draw.UserDrawn && draw.DrawType == DrawType.AndrewsPitchfork )
{
// when found then get amd save to variables bars ago and price values of the 3 points
// Then I use the 3 points in the calculations and drawing of the DGLs
pitchfork = (IAndrewsPitchfork) draw ;
Here is where I try to use the color I get fro iAndrewsPitchfork
DrawLine("JOR"+JOR_Line_Cnt.ToString(), false, pitchfork.Anchor1BarsAgo, JOR_Anchor_Price1, JOR_Draw_End_Bar, JOR_Tmp_Price, pitchfork.Pen.Color, DashStyle.Solid, 2);
TIA to those who are willing to help. I'm getting smarter each time I fall in a new hole.
John
Comment