Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

summation High/summation bar

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

    summation High/summation bar

    Hi,
    (1)I try to get the average of high by getting the summation of high from the first bar of session to the current bar and divides the summation of number of bars from the first bar of session to the current bar.Compiled but not plotting.Where am I wrong?Help needed.

    protected override void Initialize()
    {
    Add(new Plot(Color.Green, "Hiline"));
    PriceTypeSupported = true;
    }
    /// <summary>
    /// Called on each bar update event (incoming tick)
    /// </summary>
    protected override void OnBarUpdate()
    {

    int bar =Bars.BarsSinceSession;
    double mean =SUM(High,bar)[0];
    Hi.Set (mean);
    pp.Set (bar);
    Hiline.Set (Hi[0]/pp[0]);


    }
    #region Properties
    /// <summary>
    /// </summary>
    [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
    [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
    public DataSeries Hiline
    {
    get { return Values[0]; }
    }

    (2) If I want to do the same on different time frame(for eg,10 minutes, 23 minutes and so forth),Where should I start?
    Last edited by K. SATO; 05-02-2010, 03:57 PM.

    #2
    1. Can you please check your Control Center logs for any runtime errors?

    2. You would need to run your indicator on the different time frame you wish to use. Unfortunately NT6.5 does not support multi-time framed indicators.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi Josh,
      Today is the worst.I couldn't even load the indicator and the program had to shut down.I had sent the "log and trace" file to Ninja support and asked them to refer to this post. Note:- Only the two indicators created lately caused this problem,others are fine.
      Attached Files

      Comment


        #4
        Thanks K. SATO, we received those files and responded, please check your inbox. Thanks.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        670 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X