Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
          BertrandNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cre8able, Today, 01:16 PM
          2 responses
          9 views
          0 likes
          Last Post cre8able  
          Started by chbruno, 04-24-2024, 04:10 PM
          3 responses
          48 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by samish18, Today, 01:01 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by WHICKED, Today, 12:56 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by WHICKED, Today, 12:45 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X