Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Copy & Mod for Instrument.cs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Copy & Mod for Instrument.cs

    Hi,

    I'd like a column on the market analyzer where I can enter the price I'm interested in buying the stock at. I see the Instrument column is the only one that takes Input. Can I copy and then mod it to allow me to type in a price?

    it looks simple:

    //
    // Copyright (C) 2006, NinjaTrader LLC <[email protected]>.
    //
    #region Using declarations
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using NinjaTrader.MarketAnalyzer;
    #endregion

    // This namespace holds all market analyzer column definitions and is required. Do not change it.
    namespace NinjaTrader.MarketAnalyzer
    {
    /// <summary>
    /// </summary>
    public class Notes : NinjaTrader.MarketAnalyzer.ColumnBase
    {
    /// <summary>
    /// This method is used to configure the market analyzer column and is called once before any event mathod is called.
    /// </summary>
    protected override void Initialize()
    {
    CalculateOnBarCloseConfigurable = false;
    DataType = typeof(string);
    RelativeColumnWidth = 5;
    RequiresBars = false;
    Text = Instrument.Fullname;
    }

    /// <summary>
    /// </summary>
    /// <returns></returns>
    public override string ToString()
    {
    return "Instrument";
    }
    }
    }


    Would I just change the return "Instrument"; to blank? or can I change the Text = Instrument.Fullname; to Text = string or something?
    Last edited by stockgoblin; 11-24-2012, 08:51 PM.

    #2
    stockgoblin,

    Unfortunately there is no supported method of using the market analyzer this way. Sorry for any inconvenience.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Yea, so I can't just type something in a market analyzer column and have it sit there? Even with a modded indicator?

      Comment


        #4
        stockgoblin,

        It might be possible, but unfortunately the market analyzer was not designed with this in mind. I can make a suggestion to our development team to allow this, however I wouldn't be able to provide any code samples for doing this.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Thanks for the input stockgoblin, this is already an item (#1058) on our product enhancement tracking lists for future consideration, I've just added your vote in as well.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          333 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X