Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing 5 min indicator on close of 1 min bar

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

    Accessing 5 min indicator on close of 1 min bar

    Hey Guys, hope this makes sense ...

    I would like to get a general setup condition from my 5 min series and then check for exact entry conditions from the 1 minute bar i.e. on close of 5min bar I determine that my general entry conditions exist. Can I then continue to monitor the same indicator (based on 5 min bar) on close of the 1 min bar? Essentially I would just like a little more granularity for entering on the 5 min chart, rather than waiting for bar close.

    So I guess it would look like this
    Primary series=5 min
    Secondary=1 min

    myValue=ANIndicator(1,2,3);
    if MyValue==4) //entry conditons met
    { enter=true; }
    if (BarsInProgress == 1 && enter)
    {
    finalValue=ANIndicator(1,2,3); // But i want the ANIndicator to be using the data from the 5 min chart, not the 1. Is this possible?
    if (finalValue==5)
    {EnterLong();}
    }

    #2
    Is it as easy as this?

    if (BarsInProgress == 1)
    { value=ANIndicator(1,2,3)[0][0]; }

    Comment


      #3
      if (BarsInProgress == 1)
      finalValue = ANIndicator(BarsArray[0], 1, 2, 3)[0];
      RayNinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_Ray View Post
        if (BarsInProgress == 1)
        finalValue = ANIndicator(BarsArray[0], 1, 2, 3)[0];
        Perfect.

        Many thanks Ray.

        Comment

        Latest Posts

        Collapse

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