Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Entry at specific level

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

    #46
    Originally posted by NinjaTrader_Brandon View Post
    Hello arroganzmaschine,

    Thanks for the clarification.

    I see that you are charting the FGBL 06-14. This instrument is not set to rollover in NinjaTrader until March 7th. Charting this instrument before the rollover with NinjaTrader's default merge policy will result in al lhistorical data being from the 03-14 contract and a large spike from the difference in price.

    If you want to only view data for the selected contract you will need to go to Tools> Options> Data
    Under MergePolicy select DoNotMerge

    Below I have provided a link to the Understanding merge policies section of our help guide.


    The other option would be that you can modify when the instrument rolls over.
    Below I have provided a link to our NinjaTrader 7 Tips - Adjust & Customize Roll Over Dates YouTube video.
    http://www.youtube.com/watch?v=zzXBE...A140D7&index=9
    Thank you! That looks ok right now. I will write, if there are any further issues. Many thanks to fast support.

    Comment


      #47
      Dear community,

      how can I draw horizontal lines on every 100-level with an indicator. For example, I want a horizontal line on 9400, 9500, and 9600 in the FDAX and that for every 100 level. How can I draw these lines with an indicator?

      Thanks in advance.

      Comment


        #48
        Hello arroganzmaschine,

        Thanks for your post.

        To do this you would need to use DrawHorizontalLine() and use a variable for the Y value.
        You would then need to define the variable with a looping Command

        Below I have provided a links to sections of our help guide on this.
        DrawHorizontalLine() http://www.ninjatrader.com/support/h...zontalline.htm
        Looping Commands http://www.ninjatrader.com/support/h...g_commands.htm
        BrandonNinjaTrader Customer Service

        Comment


          #49
          Originally posted by NinjaTrader_Brandon View Post
          Hello arroganzmaschine,

          Thanks for your post.

          To do this you would need to use DrawHorizontalLine() and use a variable for the Y value.
          You would then need to define the variable with a looping Command

          Below I have provided a links to sections of our help guide on this.
          DrawHorizontalLine() http://www.ninjatrader.com/support/h...zontalline.htm
          Looping Commands http://www.ninjatrader.com/support/h...g_commands.htm
          I started writing this indicator. It has no properties, just this logic:

          Code:
          DrawHorizontalLine("tag" + yVar, yVar, Color.AntiqueWhite);
          Now I want to have three parameters. One is the thickness, one is the color and one is the DashStyle of the line.

          I tried to insert this code into the indicator:

          Code:
                  #region Variables
                  // Wizard generated variables
                      private Color userColor = Color.Coral;
                      private DashStyle userStyle = DashStyle.Solid;
                      private int lineWidth = 2;
                      
                  // User defined variables (add any user defined variables below)
                  #endregion
          That also works. But when I try to define the parameters region like this:

          Code:
                  #region Properties
                  public int lineWidth
                  {
                      get { return lineWidth; }
                      set { this.lineWidth = value; }
                  }
                  #endregion
          it doesn't work and the compiler says, that lineWidth is already defined in my Indicator. But I haven't done anything. So how can I set properties manually to my indicator like the ones I defined "private"?

          Thanks in advance.

          Comment


            #50
            Do you have any ideas?

            Comment


              #51
              Hi arroganzmaschine,

              The lineWidth has already been declared in #region Variables.

              If you would like a public variable that returns the private variable, then you need a unique name.

              Typically I just use a capital letter to begin a public variable and a lower case letter for the private variable.

              For example:
              [Description("Width of line")]
              [Category("Parameters")]
              public int LineWidth
              {
              get { return lineWidth; }
              set { this.lineWidth = value; }
              }
              Chelsea B.NinjaTrader Customer Service

              Comment


                #52
                Thank you. That solved my Problem.

                Is it possible to give an alert if the price is five Ticks near a horizontal line?

                Comment


                  #53
                  Arroganzmaschine,

                  You want to test when the price is near the horizontal line as such -
                  Code:
                  if(Close[0] > horizontallineprice - 5 * TickSize && Close[0] < horizontallineprice + 5 * TickSize && Close[0] != horizontalprice)
                  {
                       //do something
                  }
                  Cal H.NinjaTrader Customer Service

                  Comment


                    #54
                    Originally posted by NinjaTrader_Cal View Post
                    Arroganzmaschine,

                    You want to test when the price is near the horizontal line as such -
                    Code:
                    if(Close[0] > horizontallineprice - 5 * TickSize && Close[0] < horizontallineprice + 5 * TickSize && Close[0] != horizontalprice)
                    {
                         //do something
                    }
                    And how can I get all horizontal Lines i draw with the price?

                    Comment


                      #55
                      Hello arroganzmaschine,
                      Originally posted by arroganzmaschine View Post
                      And how can I get all horizontal Lines i draw with the price?
                      Below is some unsupported code to print horizontal line y-axis values.
                      foreach(IDrawObject draw in DrawObjects)
                      {
                      if (draw.DrawType == DrawType.HorizontalLine)
                      {
                      IHorizontalLine hLine;
                      hLine = (IHorizontalLine) draw;
                      if (hLine == null)
                      return;

                      Print(hLine.Y);
                      }
                      }
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #56
                        Hey Chelsea,

                        I need something new for NinjaTrader.
                        I attached a picture here. Do you know this? Or can you help me where I can find such indicator?

                        Einfach Bilder oder Fotos kostenlos hochladen bei Pic-Upload. Leicht und bequem Bild oder Foto hochladen.


                        Best regards
                        Max

                        Comment


                          #57
                          Hello,

                          While I'm not sure what is in this screenshot, there is a divergence indicator that has a histogram on our forums.

                          This is the D3SpotterV3 indicator.
                          http://www.ninjatrader.com/support/f...php?linkid=594
                          Chelsea B.NinjaTrader Customer Service

                          Comment


                            #58
                            Originally posted by NinjaTrader_ChelseaB View Post
                            Hello,

                            While I'm not sure what is in this screenshot, there is a divergence indicator that has a histogram on our forums.

                            This is the D3SpotterV3 indicator.
                            http://www.ninjatrader.com/support/f...php?linkid=594
                            That looks quite good. But I think the one in my screenshot seems to be an oscillator or something else. Do you have anymore suggestions?

                            Thank you so far!

                            Comment


                              #59
                              Hi Max,

                              I've asked around here at the office but we are not recognizing this indicator. You may have more luck asking the person who posted this image which indicator is being used.
                              Chelsea B.NinjaTrader Customer Service

                              Comment


                                #60
                                Originally posted by NinjaTrader_ChelseaB View Post
                                Hi Max,

                                I've asked around here at the office but we are not recognizing this indicator. You may have more luck asking the person who posted this image which indicator is being used.
                                It's something like an oscillator, but I also don't know the source.

                                Thank you very much.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by geddyisodin, Today, 05:20 AM
                                5 responses
                                32 views
                                0 likes
                                Last Post NinjaTrader_Gaby  
                                Started by bmartz, Today, 09:30 AM
                                2 responses
                                12 views
                                0 likes
                                Last Post bltdavid  
                                Started by f.saeidi, Today, 11:02 AM
                                1 response
                                4 views
                                0 likes
                                Last Post NinjaTrader_BrandonH  
                                Started by geotrades1, Today, 10:02 AM
                                4 responses
                                12 views
                                0 likes
                                Last Post geotrades1  
                                Started by rajendrasubedi2023, Today, 09:50 AM
                                3 responses
                                16 views
                                0 likes
                                Last Post NinjaTrader_BrandonH  
                                Working...
                                X