Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 help - EndDay

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

    NT7 help - EndDay

    Hi,

    there is a tiny misswrite in the help. in EndDay reference the syntax isn't right:
    Syntax
    Bars.Session.SessionsOfDay[int sessionOfDay].BeginDay

    insteed of BeginDay will be EndDay.

    thanks

    #2
    Thanks for making us aware.

    Comment


      #3
      others

      ...........
      Last edited by marotom; 01-18-2010, 01:19 PM.

      Comment


        #4
        there are any comment to NT7 help

        I'm a beginner in programmig and my english knowledge isn't good, so it may happend I coudn't understand all text right. but I found them during translate the help and would be my questions to this:

        1. in BoolSeries Class, DateTimeSeries Class in .Set part there are: The following code samples demonstrates calculating the range of each bar and storing the value in a BoolSeries object. is it right?
        2. in FloatSeriesin part FloatSeries.Set(floatvalue) at the example:float range = (float) High[0] - Low[0]; sholud be: (float) (High[0] - Low[0]); and FloatSeries.Set(intbarsAgo, boolvalue) is it realy bool value? not float? this situation is tha same at IntSeries.Set(intbarsAgo, boolvalue)?
        3. in the NT7 Features & Development Status can be read:Changed Volume from type "int" to type "long". in the help can find int yet.
        4. in the NT7 Features & Development Status can be read:New Account Access - We added methods to get access to live brokerage account values such as cash balance. - I haven't yet found this section. where can I read about it? it would be important to read about it. there are some methods and properties to this especially to Gain account? e.t.c balance, avg. price, margin, used Lot...
        5. in GetCurrentAsk() section instead of subsituted would be right substitute?

        6. I won't be a fault-finder but the style and grammar of the help its (very) difficult for me to understand proper everything.

        thanks: Tamás

        Comment


          #5
          1. Unfortunately I did not quite understand your question. The .Set is used in storing values in any of the _____Series classes. So that does apply to BoolSeries and DateTimeSeries and any others.

          2. You are correct. Thank you. It should be "float value".

          3. Volumes have indeed been changed from "int" to "long". You can find an example of this in GetCurrentAskVolume() and GetCurrentBidVolume().

          4. The section is called GetAccountValue(). It currently does not have any documentation yet.

          5. You are right. Thank you.

          6. Please bear in mind that the NT7 documentation is a Work In Progress. For most documentation needs you may find it easier to refer to NT6.5 documentation at this point in time.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            re:Help

            Hi Josh,

            thanks for your answer. It's a little complicated quite understandably draft for me. I am sorry for it.
            in the #1. point I wanted to explain:
            there is in the help:

            BoolSeries.Set(boolvalue)
            Setting a value on a BoolSeries object is automatically aligned to the current bar being evaluated. This ensures values across all BoolSeries objects are always in sync by the CurrentBar index. The following code samples demonstrates calculating the range of each bar and storing the value in a BoolSeries object.

            protected override void OnBarUpdate()
            {
            // Is the close > than the open
            myBoolSeries.Set(Close[0] > Open[0] ? true : false);
            }


            is it possible it is said if Close[0] > Open[0] to be a range? (I refer the text in red above). I can't find the right word to this in my language. we use another expression.
            #4. how can you see, when we can get methods and properties of Account access for connect Gain?

            thanks in advance. Tamás
            Last edited by marotom; 01-18-2010, 03:23 PM.

            Comment


              #7
              Hi Tamás,

              The text in red would be a typo. Thank you for making us aware of it. Close[0] > Open[0] just checks if the close is greater than the open. If it is, we assign a true value to the BoolSeries, otherwise, we assign a false value.

              #4. You can try these:
              For Buying Power: GetAccountValue(AccountItem.BuyingPower)
              For Cash Value: GetAccountValue(AccountItem.CashValue)
              For Realized PnL: GetAccountValue(AccountItem.RealizedProfitLoss)
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                hello Josh!
                Many thanks for answer.

                Comment


                  #9
                  LowestBar()

                  Hello,

                  there is an observation in help:
                  in the LowestBar() section the exemples is:
                  Print(HighestBar(SMA(20), Bars.BarsSinceSession - 1).ToString());
                  Insteed of HighestBar should be LowestBar.

                  Thanks. have a good weekend!

                  Comment


                    #10
                    Thanks for bringing this to our attention. This is a typo.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Hello,

                      I've found tiny typo in NT7 help:
                      - in Slope() section: at Parameters list:endBar insteed of endBarsAgo
                      - in Falling() section: at (Falling(SMA(20)) miss at the and a ) signal.
                      - in Rising() section: at (Rising(SMA(20)) miss at the and a ) signal.

                      other question.: can be used LRO and MRO with indicators? if yes, how should I write the syntax?

                      thanks for correction and answer.
                      by.

                      Comment


                        #12
                        Thanks for the spot marotom.

                        You can use LRO and MRO in indicator logic. All you need to do is call the method as seen in the examples in Help Guide.

                        int barsAgo = MRO(delegate {return Close[0] > Open[0];}, 1, 10);
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Hello Josh,

                          thanks for answer. therefore I asked because it doesen't work the same logic with LRO. this is my example:
                          it works:
                          int barsAgo2 = MRO(delegate {return SMA(14)[0] > SMA(14)[1];}, 2, 30);
                          if (barsAgo2 > -1)
                          Print("The bar high was SMA_MRO: " + CurrentBar + " " +" Num: " + barsAgo2 + " High :" + High[barsAgo2]);

                          but it doesen't work. nothing happend..
                          int barsAgo4 = LRO(delegate {return SMA(14)[0] > SMA(14)[1];}, 2, 30);
                          if (barsAgo4 > -1)
                          Print("The bar high was SMA_LRO: " + " Num: " + barsAgo4 + " High :" + High[barsAgo4]);

                          I haven't glue what can be the problem. could you me help?

                          thanks in advance. Tamás
                          Last edited by marotom; 01-27-2010, 02:30 PM.

                          Comment


                            #14
                            Try printing barsAgo directly without a filter check. You will likely find it to be a value of -1. When it is -1 it means your test condition was not true when evaluated through that look back period.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #15
                              Originally posted by marotom View Post
                              this is my example:
                              it works:
                              int barsAgo2 = MRO(delegate {return SMA(14)[0] > SMA(14)[1];}, 2, 30);
                              if (barsAgo2 > -1)
                              Print("The bar high was SMA_MRO: " + CurrentBar + " " +" Num: " + barsAgo2 + " High :" + High[barsAgo2]);

                              but it doesen't work. nothing happened..
                              Each of these examples references "SMA(14)[1]", so you might try doing the following statement first:

                              Code:
                              if (CurrentBar < 1) return;
                              Or, perhaps this would work:

                              Code:
                              int barsAgo2 = (CurrentBar < 1) ? -1 : MRO(delegate {return SMA(14)[0] > SMA(14)[1];}, 2, 30);

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by TheTradingMantis, 01-19-2023, 02:05 AM
                              42 responses
                              911 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by _Zero_, 04-10-2020, 03:21 PM
                              144 responses
                              7,893 views
                              6 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by Richozzy38, Yesterday, 01:06 PM
                              7 responses
                              28 views
                              0 likes
                              Last Post Richozzy38  
                              Started by swjake, Today, 12:04 PM
                              5 responses
                              16 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by forrestang, Today, 01:41 PM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_Erick  
                              Working...
                              X