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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          213 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          126 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          145 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          229 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          190 views
          0 likes
          Last Post CarlTrading  
          Working...
          X