Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there a programmable way to find the Daily High/Low?

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

    #16
    Hi,

    Another frustrating attempt at doing anything productive with MTF Indicators in ver.7

    I am simply trying to plot the previous hours closing levels and the previous days closing levels(sesion EOD as defined in instrument manager).

    I can see 5min closes when using 1min primary bars.
    Also 59min closes.

    Can't plot anything greater on 1 min charts.

    Additionally, has MTF in 7 been tested to Production standard?

    Thank you




    protected override void Initialize()
    {
    // This works
    Add(PeriodType.Minute, 5);

    //This doesn't
    //Add(PeriodType.Minute, 60);
    //This doesn't
    // Add(PeriodType.Day, 1);

    Add(new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Line, "LongStopIn"));

    Overlay = true;
    }

    /// <summary>
    /// Called on each bar update event (incoming tick)
    /// </summary>
    protected override void OnBarUpdate()
    {
    // Use this method for calculating your indicator values. Assign a value to each
    // plot below by replacing 'Close[0]' with your own formula.

    // Can only plot values < 59 min
    LongStopIn.Set(Closes[1][1]);

    }

    Comment


      #17
      NT7 has been in beta for quite some time and we're getting close to production now, however unfortunately some bugs may still be found - for your current issue : are there any errors in your log tab as you try running your test code?

      You likely just miss the needed CurrentBars check at the OnBarUpdate() start -

      if (CurrentBars[0] < 0 || CurrentBars[1] < 0) return;

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      646 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      367 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X