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

Plans for Highest/Lowest with IDataSeries?

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

    Plans for Highest/Lowest with IDataSeries?

    Any idea if ninja will be supporting a HighestBar/LowestBar where you can pass in a data series and a lookback? Or do I have to "roll my own" method for doing that?

    Thanks

    #2
    We already have this implemented...I believe this is what you want:


    RayNinjaTrader Customer Service

    Comment


      #3
      But will that work with indicators? Or is that the highest/lowest for price? Say I want the highest MACD high from the session start, it does not allow me to pass in a data series to find that.

      Comment


        #4
        Right, it will not work for data series, I overlooked that subtle detail. You will have to roll your own however, I will add this to our list.
        RayNinjaTrader Customer Service

        Comment


          #5
          This has been implemented for NT 6.5 due out this fall.
          RayNinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Ray View Post
            This has been implemented for NT 6.5 due out this fall.
            Was this ever implemented for 6.5 ? If so, how would I code the following:
            For example, the following code:
            Code:
            if(Volume[0] = Volume [[COLOR=blue]Lowestbar[/COLOR](Volume, lookback)] )
                  Values[0].Set(Volume[0]);
            resulted in
            The name 'Lowestbar does not exist in the current context
            Thank you in advance for your response.

            Comment


              #7
              The syntax is LowestBar(IDataSeries series, int lookBackPeriod) with a capital B not a lower case one.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Hi,
                Is there a method for obtaining Highest/Lowest for a specific past lookbackperiod, i.e, one that starts n bars ago instead of at the current bar?

                TIA

                Comment


                  #9
                  Unfortunately not but I will add it to our list.
                  RayNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Perr0Grande, Yesterday, 08:16 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by f.saeidi, Yesterday, 08:12 AM
                  3 responses
                  24 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by algospoke, Yesterday, 06:40 PM
                  1 response
                  14 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by quantismo, Yesterday, 05:13 PM
                  1 response
                  14 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by The_Sec, 04-16-2024, 02:29 PM
                  3 responses
                  16 views
                  0 likes
                  Last Post NinjaTrader_ChristopherS  
                  Working...
                  X