Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to import indicator code

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

    How to import indicator code

    Hi, I have question. I am really new to ninjatrader and I saw this code in a thread.

    Name : TTMSqueeze
    #myTTMSqueezeBol
    declare lower;
    input Length = 20;
    input price = close;
    ######################
    def e1 = (Highest(High, length) + Lowest(low, length)) / 2 + Average(close, length);
    def osc = Inertia(price - e1 / 2, length);
    plot oscp = osc;
    def diff = reference bollingerbands(length = 20)."upperband" - reference KeltnerChannels."Upper_Band";
    plot mid = 0;
    mid.assignValueColor(if diff >= 0 then Color.UPTICK else Color.DOWNTICK);
    #oscp.assignValueColor(if osc[1] < osc[0] then Color.CYAN else Color.magenta);
    oscp.assignValueColor(if osc[1] < osc[0] then
    if osc[0] >= 0 then
    #UpPos
    createColor(0, 255, 255) else
    #UpNeg
    createColor(204, 0, 204)
    else if osc[0] >= 0 then
    #DnPos
    createColor(0, 155, 155) else
    #DnNeg
    createColor(255, 155, 255));
    oscp.setPaintingStrategy(PaintingStrategy.HISTOGRA M);
    mid.setPaintingStrategy(PaintingStrategy.POINTS);

    How do I import this, so I can use the indicator. I tried playing around abit but it didn't work. Thank you.

    #2
    TheAnalyst13,

    That code is not NinjaScript code. You will need to convert it first.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      How do you do that? You mean write the code into a NT script or is there an actual converter?

      Comment


        #4
        adding software to ninja

        Hello,

        If i have a program to add to ninja ,can you walk me through the steps to set it up?

        I have no clue.

        Thanks

        Comment


          #5
          You need to convert the code from whatever language that was to NinjaScript by hand.

          laredo,

          Not sure what you have. You would most likely want to contact the original vendor of the software for instructions. I would have no idea how to install your particular 3rd party software.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            tabmaster

            Its just tabmaster ,that softwware.

            I do something on the control panel I know.

            Comment


              #7
              Hi,

              As Josh mentioned, you would need to contact the vendor of the 3rd party software for set up instructions. We do not assist with this.
              Vince B.NinjaTrader Customer Service

              Comment


                #8
                I'm trying to download an indicator from the forum. I follow the steps.
                But when I save the file to the desktop, it saves the file as a EFW file. And then when I try to import the file, it can't be found. I must be doing something wrong.

                Thanks for your help.

                Comment


                  #9
                  Hi silvester17, welcome to the NinjaTrader support forums!

                  Do you run a security product that automatically quarantines downloaded zip files to EFW files? You can try renaming the file to the extension zip again then and you should be good to go importing it.

                  Comment


                    #10
                    Originally posted by NinjaTrader_Bertrand View Post
                    Hi silvester17, welcome to the NinjaTrader support forums!

                    Do you run a security product that automatically quarantines downloaded zip files to EFW files? You can try renaming the file to the extension zip again then and you should be good to go importing it.
                    Bertrand,

                    Yes it was my firewall. It is working now. Thank you very much

                    Comment


                      #11
                      need indicator that synthesizes two symbols and plots H and L

                      Rather than merging two symbols into one symbol, I prefer an indicator that synthesizes two symbols and plots the resultant bar high and low. I'm not strong on programming NT. Can it easily be done with a wizard. If not how would the indicator reference both symbols?

                      Comment


                        #12
                        Multi-series indicators will be available in NT7.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Thanks Josh. I see I placed that last in the wrong thread but, per this thread, where do I place in imported indicator. I assume I unzip it into a specific folder?

                          Comment


                            #14
                            Leave the file as a zip and go to File->Utilities->Import NinjaScript.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              Originally posted by NinjaTrader_Josh View Post
                              Leave the file as a zip and go to File->Utilities->Import NinjaScript.
                              Hi,

                              How do I import .cs file?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              581 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              338 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              554 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              552 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X