Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help with multi-time frame

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

    Need help with multi-time frame

    I am testing with NinjaTrader_Josh's ZlagMATS which works with Ehlers ZeroLag MA. I attached it.

    I am not getting the results I expected, and I am guessing that I am not running the indicator on the correct timeframe, because if I change the primary timeframe it changes the results.

    My understanding from the documentation is that if we use the construct

    if (BarsInProgress == 1)
    {
    Close[0]
    }

    Then the [0] in Close[0] is referring only to the timeframe with the 1 index, without using BarsArray[1].

    Is this correct? There is no need to use BarsArray[1], because we are inside this construct?

    if it is then we should be able to do something from ZlagMATS like this:

    if (BarsInProgress == 1)
    {
    if(ToTime(Time[0]) >= 20000 && ToTime(Time[0]) <= 110000)

    Do something....
    }


    And in the above Time[0] would be referring to the timestamp of the timeframe with the 1 index, without using BarsArray[1].

    Is this correct?

    I'll leave it at that for now and ask a follow up depending on what the answer is.

    I've attached the indicator and Strategy.


    Attached Files
    Last edited by Crassius; 03-11-2012, 06:50 PM.

    #2
    Well, after much head scratching I think I have figured this out. Thanks for looking, but I have answered my previous questions.

    Comment


      #3
      Crassius,

      I am happy you have resolved your issue.

      Please let us know if you have any other questions.
      Adam P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      662 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      376 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      110 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
      580 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X