• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

new column Market Analyzer

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

    new column Market Analyzer

    Hello, as i add new columns to MA based on indicator data ie the plot values. is there any feature request to display the 'bars ago' value. Ie so is not just the current bar value be it on bar close or on every tick etc ? i could create an indicator to offset the value if i want to see X bars ago and supply a parameter i guess and then set in the plot value for the 0 ie current value ?
    It seems to me this would be useful to know given this exists in strategy builder comparing offsets or bars ago values?
    thanks

    #2
    Hello explorer101,

    You are wanting to display the value from a previous bar by setting a Bars ago property for an Indicator added to the Market Analyzer, is this correct?

    I am not seeing there is an existing feature request for this, but I am happy to submit one on your behalf.
    Once I have a tracking ID I'll post in this thread for future reference.

    You could alter an indicator and use two series. The first series would have the actual stored value saved as the bar updates, the second series (which can be a plot) would be set to the value of n bars ago of the first series.

    In the scope of the class
    Code:
    private Series<double> calculatedValues;
    
    [XmlIgnore()]
    public Series<double> MyPlot
    {
        get { return Values[0]; }
    }
    
    [NinjaScriptProperty]
    public int BarsAgo
    { get; set; }
    In OnStateChange():
    Code:
    if (State == State.SetDefaults)
    {
        AddPlot(Brushes.Blue, "MyPlot");
        BarsAgo = 3;
    }
    else if (State == State.DataLoaded)
    {
        calculatedValues = new Series<double>(this);
    }
    In OnBarUpdate():
    Code:
    calculatedValues[0] = High[0] - Low[0];
    MyPlot[0] = calculatedValues[BarsAgo];
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks chelsea - that was my idea to alter the indicator or have another version for MA. I wonder still if it would be useful if possible for users who dont know ninjascript to have this bars ago offset option (as in strategy builder) without needing to code this. That is if this is possible ?
      In the meantime ill follow your suggestion which is what i was thinking on, just wondered if something was in the works

      Comment


        #4
        Hello explorer101,

        I've received tracking ID# SFT-4472 for this request to use bars ago with indicator columns in the Market analyzer.

        As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

        Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GARZONJ, Yesterday, 11:22 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by mike09, Yesterday, 07:37 PM
        1 response
        22 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by jilokasin31417, Today, 08:27 AM
        3 responses
        10 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by yoweti, Today, 09:59 AM
        1 response
        12 views
        0 likes
        Last Post yoweti
        by yoweti
         
        Started by aboparai1, Today, 09:41 AM
        0 responses
        10 views
        0 likes
        Last Post aboparai1  
        Working...
        X