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

metatrader indicator to ninjatrader

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

    #16
    Originally posted by Jeremy Bankes View Post
    I recreated the Waddah_Atta_Explosion MT4 indicator for NT8.

    Hopefully this helps some of you!
    Hello Jeremy,
    I Download directly from Github, but seems not be compatible with last version of NT8
    Can somebody help me?

    Thank you

    Attached Files

    Comment


      #17
      Originally posted by coyah View Post

      Hello Jeremy,
      I Download directly from Github, but seems not be compatible with last version of NT8
      Can somebody help me?

      Thank you

      Hi There Coyah,

      We're running the same versions of NinjaTrader. Perhaps the indicator isn't installed properly. I just created a release on GitHub which might have an installation process you're more familiar with. There's a little bit more of a process involving the NinjaScript Editor to compile the source code yourself. I did release the Indicator here on the ecosystem, but I think it was taken down cause I accedentally compiled it into a binary.

      Anyway, hopefully this works for you.
      WaddahAttarExplosion Download Importing to NinjaTrader 8 is Easy! To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps: Download the app or add-on file to your deskto...


      ~ Jeremy

      Comment


        #18
        Originally posted by Jeremy Bankes View Post


        Hi There Coyah,

        We're running the same versions of NinjaTrader. Perhaps the indicator isn't installed properly. I just created a release on GitHub which might have an installation process you're more familiar with. There's a little bit more of a process involving the NinjaScript Editor to compile the source code yourself. I did release the Indicator here on the ecosystem, but I think it was taken down cause I accedentally compiled it into a binary.

        Anyway, hopefully this works for you.
        https://github.com/JeremyBankes/Wadd...leases/tag/1.0

        ~ Jeremy
        Thank you so much for you return.
        I downloaded the new one.

        But now i got another error.
        Im new in Ninja Trade, and dont know much about.

        Now the error changed to that one;

        I renamed the @macd @bollinger @sma and @stdDev (since i got a message i alredy got this indicators)
        and now get this message :\


        Click image for larger version  Name:	NT8.PNG Views:	0 Size:	6.4 KB ID:	1110960
        Attached Files

        Comment


          #19
          Originally posted by coyah View Post

          Thank you so much for you return.
          I downloaded the new one.

          But now i got another error.
          Im new in Ninja Trade, and dont know much about.

          Now the error changed to that one;

          I renamed the @macd @bollinger @sma and @stdDev (since i got a message i alredy got this indicators)
          and now get this message :\


          Click image for larger version Name:	NT8.PNG Views:	0 Size:	6.4 KB ID:	1110960
          No worries,

          Hmm, strange. I don't have time to look into the problem at the moment, but for now you can compile the script manually. NinjaTrader doesn't make the process to hard.

          Just open the NinjaScript editor (Control Center > New > NinjaScript Editor). With the editor open, if you just place "WaddahAttarExplosion.cs" (Just the .cs file, NOT the folder) in your "Documents\NinjaTrader 8\bin\Custom\Indicators" folder, the file should automatially be compiled (There will be a processing icon in the bottom left of the NinjaScriptEditor, and a success chime should play). If that doesn't happen, you can also press the compile button in top menu bar in the Editor. After that, you should be able to add the indicator to a chart.

          Best of luck,
          ~ Jeremy

          Comment


            #20
            Hello coyah,

            Thank you for your reply.

            Renaming the indicators caused the issue. When you import a script, it may prompt you that indicators already exist on your PC and ask you if you wish to replace the scripts. You should always select "No" unless otherwise instructed. This will allow you to import the script and not overwrite the system indicators.

            Please let us know if we may be of further assistance to you.
            Kate W.NinjaTrader Customer Service

            Comment


              #21
              Originally posted by NinjaTrader_Kate View Post
              Hello coyah,

              Thank you for your reply.

              Renaming the indicators caused the issue. When you import a script, it may prompt you that indicators already exist on your PC and ask you if you wish to replace the scripts. You should always select "No" unless otherwise instructed. This will allow you to import the script and not overwrite the system indicators.

              Please let us know if we may be of further assistance to you.
              Hey Kate,
              Thank you for your reply
              I re-installed Ninja and renamed all folders
              And this time choose no, to not replace any indicator but unfortanely the problem still
              Dont know how to proceed


              Comment


                #22
                Hello coyah,

                Thank you for your reply.

                We would probably need to schedule a remote session with you for one of our technicians to assist you in resolving as you may not have corrected the issue properly.

                Please contact us via email at platformsupport [at] ninjatrader [dot] com with a brief description of the issue in the body of the email and we will be happy to assist further.

                Please let us know if we may be of further assistance to you.
                Kate W.NinjaTrader Customer Service

                Comment


                  #23
                  Thank you Jeremy Bankes for converting this to NT8!!!

                  Comment


                    #24
                    I'm also getting an error on standard installation. Answered no to all the usual duplicate issues.
                    Would love to have access to this indicator!
                    @coya were you ever able to install this successfully? Click image for larger version

Name:	Error Feb 2021.png
Views:	921
Size:	8.3 KB
ID:	1140342

                    Comment


                      #25
                      Hello TomTownsend,

                      Thank you for your reply.

                      I was able to manually import the indicator from the link in Post #17 above. Download the one that says "Source Code (.Zip)". Once downloaded, extract the folder contents. Find the WaddahAttarExplosion.cs file in the extracted folder, then copy this to Documents > NinjaTrader 8 > bin > Custom > Indicators. Once complete, run a Compile in the NinjaScript Editor (New > NinjaScript Editor > right click > Compile). You should now see the indicator in your indicators list.

                      Please let us know if we may be of further assistance to you.
                      Kate W.NinjaTrader Customer Service

                      Comment


                        #26
                        I was able to download and compile it per your instructions, thank you so much!

                        Comment


                          #27
                          Hi Kate,
                          I was able to import and compile as you suggested.
                          My question is in the code. On a few instruments, the histogram doesn't go above 1. On line 54, I tried decimals but received errors.
                          I'm don't know code that well and was wondering if you or the staff would be able to assist creating a dead zone for that could go as low as .200 or better show me how?

                          Thank you,
                          Brett

                          Comment


                            #28
                            Hello bjames,

                            Thank you for your reply.

                            Just to be clear, in platform support, we do not create/write strategies/indicators, we do not provide debugging services. However, I would suggest perhaps private messaging Jeremy Bankes since he was the originator of the NinjaTrader 8 version of this indicator to see if he has suggestions of changes you could make to the indicator yourself. I would note that as currently written, the indicator requires an int value for the DeadZonePip property, so it wouldn't be possible to input a decimal for that as it is now.

                            Please let us know if we may be of further assistance to you.
                            Kate W.NinjaTrader Customer Service

                            Comment


                              #29
                              Originally posted by Jeremy Bankes View Post

                              If you find any other issues or have any suggestions I'm all ears.

                              ~ Jeremy


                              Hi Jeremy Bankes, I have a suggestion, but first thanks for you sharing this lovely contribution with the community!

                              I've successfully added trend colour changes to a number of different indicators, but I'm only a very newbie at ninja script.

                              With my other conversions for trend change with various moving averages, I'll show you how I would've added it to your indicator,
                              and perhaps you could add the final bit that I'm stuck on?
                              I'll paste little bits of your existing code so you can recognise where I'm adding things in bold:

                              protected int LastTime1 = 1;
                              protected int LastTime2 = 1;
                              protected int LastTime3 = 1;
                              protected int LastTime4 = 1;
                              protected int Status = 0, PrevStatus = -1;
                              protected double bask, bbid;
                              private bool TrendIsUp;
                              private bool TrendIsDown;​


                              <scroll down>
                              AddPlot(new Stroke(Brushes.Green, 2), PlotStyle.Bar, "Histogram1");
                              AddPlot(new Stroke(Brushes.Magenta, 2), PlotStyle.Bar, "Histogram2");
                              AddPlot(Brushes.Blue, "Line1");
                              AddPlot(new Stroke(Brushes.Blue, 2), PlotStyle.Dot, "Line2");
                              BColor = Brushes.Snow;
                              SColor = Brushes.DimGray;


                              <scroll down to the end of your OnBarUpdate>
                              PrevStatus = Status;
                              if (Status != PrevStatus) {
                              LastTime1 = 1;
                              LastTime2 = 1;
                              LastTime3 = 1;
                              LastTime4 = 1;
                              }
                              }
                              TrendIsUp = Line1(0) > Line1(1) 0;
                              TrendIsDown = Line1(1)
                              < Line1(0);

                              if (TrendIsUp) PlotBrushes[0][0] = BColor;
                              else
                              if (TrendIsDown) PlotBrushes[0][0] = SColor;


                              <then scroll to the end of region>
                              ​ [NinjaScriptProperty]
                              [Display(Name = "AlertExitShort", Description = "Determines wether you will get short exit alerts", Order = 10, GroupName = "Parameters")]
                              public bool AlertExitShort { get; set; }

                              [NinjaScriptProperty]
                              [XmlIgnore]
                              [Display(Name="Long Color", Description="Buy Color", Order=11, GroupName="Parameters")]
                              public Brush BColor
                              { get; set; }

                              [Browsable(false)]
                              public string BColorSerializable
                              {
                              get { return Serialize.BrushToString(BColor); }
                              set { BColor = Serialize.StringToBrush(value); }
                              }

                              [NinjaScriptProperty]
                              [XmlIgnore]
                              [Display(Name="Short Color", Description="Sell Color", Order=12, GroupName="Parameters")]
                              public Brush SColor
                              { get; set; }

                              [Browsable(false)]
                              public string SColorSerializable
                              {
                              get { return Serialize.BrushToString(SColor); }
                              set { SColor = Serialize.StringToBrush(value); }
                              }


                              #endregion​

                              The idea being that Line1 will switch colours depending on whether or not it's trending.

                              Thanks again for your indicator!

                              Comment


                                #30
                                Hello davydhnz,

                                You may be looking for IsRising(Values[0]) / IsFalling(Values[1]).




                                You may find the logic in the ColorThePlot indicator helpful.
                                Description: This indicator can be used to color the rising and falling conditions of most any other indicators plot when used as the input series to this indicator. ColorThePlot offers the ability to select rising and falling colors, sound alerts, email, alerts, Direction change marking, panel color based on direction, bar coloring based on direction. [&#8230;]
                                Chelsea B.NinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by alifarahani, Today, 09:40 AM
                                4 responses
                                21 views
                                0 likes
                                Last Post alifarahani  
                                Started by gentlebenthebear, Today, 01:30 AM
                                3 responses
                                16 views
                                0 likes
                                Last Post NinjaTrader_Jesse  
                                Started by PhillT, Today, 02:16 PM
                                2 responses
                                7 views
                                0 likes
                                Last Post PhillT
                                by PhillT
                                 
                                Started by Kaledus, Today, 01:29 PM
                                3 responses
                                11 views
                                0 likes
                                Last Post NinjaTrader_Jesse  
                                Started by frankthearm, Yesterday, 09:08 AM
                                14 responses
                                47 views
                                0 likes
                                Last Post NinjaTrader_Clayton  
                                Working...
                                X