Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price Type option for NT8??

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

    Price Type option for NT8??

    Hi, is it possible in NT8 to set the price type to something other than close...like median of typical? I found this section below in NT7 but can't find the option in NT8. Thanks.
    NinjaScript > Language Reference > Indicator >

    PriceType
    Print this Topic Previous pageReturn to chapter overviewNext page
    Definition
    Type of price data such as open, high, low, etc...



    Property Value

    This property returns a PriceType value of either:



    PriceType.Close

    PriceType.High

    PriceType.Low

    PriceType.Median

    PriceType.Open

    PriceType.Typical



    Syntax
    PriceType

    #2
    Hello 90bideven,

    Thanks for your post.

    In NinjaTrader8 you would need to use/specify the price type in your code, for example Median[0] or Typical[0] or High[0], etc.

    With reference to the code-breaking change table, under NT7 pricetype the NT8 table specifies: "Default input is now strictly set through the UI. All objects will allow to select another input value. If your object has requirements to calculate on a specific price value, this should be hard coded to the bar value instead of preventing users to change the input." Reference: https://ninjatrader.com/support/help...ng_changes.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Appreciate the response...unfortunately with limited programming capability, this is probably out of my reach.

      Comment


        #4
        Hello 90bideven,

        Thanks for your reply.

        As you were showing Ninjascript I was assuming you were working in code.

        If you are wanting to find the price type selector when using an indicator, you can select it in the "input series" of the indicator in the indicator panel, please see the help guide here: https://ninjatrader.com/support/help...indicators.htm Please also observe the note: "Note: To take advantage of this feature NinjaScript indicators will need to implement the Input ISeries as their main data input."
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thanks Paul, yes I understand the "input series" in an indicator, I just wanted to compare the median, or typical price for instance of an instrument to its standard calculated closing price. As I recall it was easier to do in NT7.

          Comment


            #6
            Hello 90bideven,

            Thanks for your reply.

            I clearly am not understanding what you want to do so if you can recall what you did in NT7 to "compare the median, or typical price for instance of an instrument to its standard calculated closing price." I would be glad to advise how to do that in NT8.

            Paul H.NinjaTrader Customer Service

            Comment


              #7
              OK thanks, ultimately I want to plot two moving averages on the same instrument...ES let's say, 987 tick. Let's say I put on a 13 period EMA on the regularly calculated ES chart. I want to put on a 13 EMA to the median or typical price of the 987 tick ES as well...so I can compare the two MA's. Thanks.

              Comment


                #8
                Hello 90bideven,

                Thanks for your reply.

                Yes, that is just as easily done in NT8 as it was in NT7.

                I've created a short video to help: https://Paul-ninjaTrader.tinytake.co...E5OF85NjM5OTUw
                Paul H.NinjaTrader Customer Service

                Comment


                  #9
                  Perfect Paul! Thanks for going the extra mile, that is exactly what I wanted.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by elirion, Today, 01:36 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post elirion
                  by elirion
                   
                  Started by gentlebenthebear, Today, 01:30 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post gentlebenthebear  
                  Started by samish18, Yesterday, 08:31 AM
                  2 responses
                  9 views
                  0 likes
                  Last Post elirion
                  by elirion
                   
                  Started by Mestor, 03-10-2023, 01:50 AM
                  16 responses
                  391 views
                  0 likes
                  Last Post z.franck  
                  Started by rtwave, 04-12-2024, 09:30 AM
                  4 responses
                  34 views
                  0 likes
                  Last Post rtwave
                  by rtwave
                   
                  Working...
                  X