Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Accessing High value in a multi time frame strategy

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

    Accessing High value in a multi time frame strategy

    Is there a way to access the High[0] value in a milti time frame strategy.

    Ex.

    High[0] - 15min ==> ?

    High[0] -30min ==>?

    #2
    imported post

    High[0] accesses the high of the current bar on the current series
    High[1] accesses the high of 1 bar back on the current series
    High[2] accesses the high of 2 bars back on the current series
    etc.

    Highs[0][0] accesses the high of the current bar on the first series
    Highs[0][1] accesses the high of 1 bar back on the first series
    Highs[0][2] accesses the high of 2 bars back on the first series
    etc.

    Highs[1][0] accesses the high of the current bar on the second series
    Highs[1][1] accesses the high of 1 bar back on the second series
    Highs[1][2] accesses the high of 2 bars back on the second series
    etc.

    Comment


      #3
      imported post

      Thanks, works nicely!.

      Comment


        #4
        imported post

        Dierk,

        Is there a way to access Indicator value in a TimeFrame,

        EX

        If I want to access theD value of STo in another Time Frame

        Stochastic(BarsArray[
        1], 5, 20, 5)[0].D;

        or

        Stochastic.D(BarsArray[1], 5, 20, 5)[0];

        or

        Stochastic(BarsArray[1].D, 5, 20, 5)[0];

        Thanks in advance.

        Comment


          #5
          imported post

          It would be this:

          Stochastic(BarsArray[1], 5, 20, 5).D[0];

          Ray

          RayNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          25 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          34 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          5 views
          0 likes
          Last Post cls71
          by cls71
           
          Started by mjairg, 07-20-2023, 11:57 PM
          3 responses
          214 views
          1 like
          Last Post PaulMohn  
          Started by TheWhiteDragon, 01-21-2019, 12:44 PM
          4 responses
          547 views
          0 likes
          Last Post PaulMohn  
          Working...
          X