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

Swing indicator edits

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

    Swing indicator edits

    Hello everybody,

    I`m new in the NT world, and i have a friend that will do a indicator edit for me and i would like to have as much information in forward so i can tell him exactly what to be done.

    I want to do the following edits to the swing:

    - Lines need to be plotted from the high/low to the Y-axis, and not stop by the next swing high/low

    - Swings from Chart A need to be Displayed in Chart B.

    I would like to know if anyone have suggestions so we will save much time!

    Thanks in forward!

    #2
    Rienb, welcome to the forums.

    You could just extend the last high / low swing with for example horizontal lines extended to the current bar -



    For the swings from another chart, you could call the Swing indicator multiple times with different settings.

    Indicators on multiple time frames will be supported with our NT7 -


    BertrandNinjaTrader Customer Service

    Comment


      #3
      When does Ninja 7 will be released? what is the target release date?

      Comment


        #4
        Rienb, we expect to release a public beta within the next month with a production release to follow several months after this.

        If you like to be considered for the next beta phase round, please send us a note to sales at ninjatrader dot com and include the following info -

        - Free or paying user
        - If paying, your license key #
        - Country of residence

        BertrandNinjaTrader Customer Service

        Comment


          #5
          We have been testing and searching for the right edit to make, but we did not succeed to create it right.

          Does anyone know what to do?

          Our feeling sais that we need to edit some in this area:
          /// <summary>
          /// This method is used to configure the indicator and is called once before any bar data is loaded.
          /// </summary>
          protected override void Initialize()
          {
          Add(new Plot(Color.Green, PlotStyle.Dot, "Swing high"));
          Add(new Plot(Color.Orange, PlotStyle.Dot, "Swing low"));

          Plots[0].Pen.Width = 2;
          Plots[0].Pen.DashStyle = DashStyle.Dot;
          Plots[1].Pen.Width = 2;
          Plots[1].Pen.DashStyle = DashStyle.Dot;
          Could anyone reply with the edit? i will be very thankfull!

          Comment


            #6
            Reinb, the settings you highlighted are for how the indicator and plots are displayed. What exactly are you trying to do?
            AustinNinjaTrader Customer Service

            Comment


              #7
              We are trying to let the swing indicator draw lines that are as the horizontal lines you can draw manually so i can see the swing hi or low even from 3 days back without scrolling, or manually place the lines.

              Comment


                #8
                Reinb, it isn't possible to have an indicator interact with manually drawn objects. If you have a problem with getting a little snippet of code to work we can help you with that but we can't lay out and/or create an entire indicator for you. Thank you for understanding.
                AustinNinjaTrader Customer Service

                Comment


                  #9
                  I understand,

                  The only thing i would like to see at the Swing indicator is that i can choose to let the lines draw not until the next hi or low but all the way to the Y axis.

                  any way to fix this easy?

                  Comment


                    #10
                    Rienb, as per my first reply, you could extend them via horizontal lines i.e. -

                    Code:
                     
                    DrawHorizontalLine("tag1", Swing(3).SwingHigh[0], Color.Blue);
                    DrawHorizontalLine("tag2", Swing(3).SwingLow[0], Color.Blue);
                    BertrandNinjaTrader Customer Service

                    Comment


                      #11
                      ...

                      This might help.

                      I only have as cs file.
                      Attached Files
                      Last edited by dj22522; 02-10-2010, 07:22 PM.

                      Comment


                        #12
                        Originally posted by dj22522 View Post
                        This might help.

                        I only have as cs file.
                        When right clicking on chart and selecting indicator, in the "Plots" section there is only the option to change the colours of the "Swinghigh/Swinglow"
                        Can anyone add to the "Plots" section so we can change the colour of the swing "lines"?

                        Many thx.

                        Comment


                          #13
                          This would have to be custom coded into the indicator as additional parameters. There are no additional plots so you would have to add one for the color you want separately and adjust the code to use it.

                          Please see here for an example of creating color inputs: http://www.ninjatrader-support2.com/...ead.php?t=4977
                          Josh P.NinjaTrader Customer Service

                          Comment


                            #14
                            Originally posted by dj22522 View Post
                            When right clicking on chart and selecting indicator, in the "Plots" section there is only the option to change the colours of the "Swinghigh/Swinglow"
                            Can anyone add to the "Plots" section so we can change the colour of the swing "lines"?

                            Many thx.
                            if you open the script in ninjascript editor, search for the text: "green" then you come out at the swing high, then scroll a bit up or down than search for red.

                            i`ve made them turquoise so if you cant get it working i can post it here....

                            Comment


                              #15
                              Originally posted by dj22522 View Post
                              This might help.

                              I only have as cs file.
                              Thanks,

                              That worked great!

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by usazencort, Today, 01:16 AM
                              0 responses
                              1 view
                              0 likes
                              Last Post usazencort  
                              Started by kaywai, 09-01-2023, 08:44 PM
                              5 responses
                              603 views
                              0 likes
                              Last Post NinjaTrader_Jason  
                              Started by xiinteractive, 04-09-2024, 08:08 AM
                              6 responses
                              22 views
                              0 likes
                              Last Post xiinteractive  
                              Started by Pattontje, Yesterday, 02:10 PM
                              2 responses
                              21 views
                              0 likes
                              Last Post Pattontje  
                              Started by flybuzz, 04-21-2024, 04:07 PM
                              17 responses
                              230 views
                              0 likes
                              Last Post TradingLoss  
                              Working...
                              X