Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with porting Thinkscript to Ninjascript

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

    Help with porting Thinkscript to Ninjascript

    I'm trying to convert an indicator written for TOS to Ninjatrader. I'm kinda stuck with the following

    Highest(high[-RightBarsThreshold], RightBarsThreshold);

    I understand I should use HighestBar but the dataseries (1st param) can't point to an index. Should I roll my own? Any hints? TY!

    #2
    Is this looking for the highest bar or highest high price for X bars back?
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    Comment


      #3
      I believe ThinkScript's Highest function returns price not bar. Even finding the bar will work. I can convert to price from that.

      Comment


        #4
        Hello cay7man,

        Our Support Staff are not ThinkScript experts, but I have had a look at the documentation pages.

        It looks like MAX would be what you would want to use in NinjaTrader:

        MAX - https://ninjatrader.com/support/help...aximum_max.htm

        Highest (ThickScript Publicly available resource) - https://tlc.thinkorswim.com/center/r...alysis/Highest

        However, we would want to consider that MAX would be used like: MAX(InputsSeries, Period)[BarsAgo]

        It looks like ThinkScript lets you apply previous bar references as input, when we would append the "BarsAgo" reference at the end to reference "pervious" values.

        We look forward to assisting.

        Comment


          #5
          TY! Will give it a try. Would be nice if NT supports some functions in ThinkScript and Pinescript to allow porting of indicators from those platforms to NT easily...

          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
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 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