Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PriceTypeSupported

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

    PriceTypeSupported

    I just noticed something that I have been taking for granted. I include
    Add(EMA(Close,
    78));

    and

    Add(EMA(Typical,78));

    in my strategy and there is no difference in the plots. It appears that any pricetype other than Close is ignored. What do I need to do to make the strategy honor the pricetype I specify? Probably something obvious but I've never seen it so please advise.

    Thanks,
    Mike

    #2
    Mike, which NT version are you working on currently? I checked on mine here and different input series were influencing the EMA results as expected for me.

    Thanks

    Comment


      #3
      6.5.1000.18 and I've tried it on 2 computers and pricetype set to anything other than close reverts to close when I load the strategy.

      Comment


        #4
        I could not reproduce here, are you sure it uses close, likely it seems to be this way as the values are just too close to each other for the EMA's - can you please try for example an EMA on High / Low? Would those also be exactly the same value?

        Comment


          #5
          Thanks Bertrand...I know it's not honoring the pricetype I defined because the label on the chart shows "Close". Further, I placed another indicator on the chart of the same configuration with the exception that it has "Typical" as the pricetype and they are definitely different. Now for the funny part. I created a brand new strategy that has nothing but the Add() statement in it. That works correctly with my custom indicators as well as the nt standard indicators. But the same indicator when declared inside my custom strategy doesn't work. So, there must be something different about my strategy but I don't understand how that can be.

          Any clues?

          Mike

          Comment


            #6
            Do you use any custom formatted label for example in your strategy? If you like I can give it a run on my end.

            Comment


              #7
              Nope no custom labelling...sure I can send you the file via private email. I don't want to provide it here for public viewing.

              Mike

              Comment


                #8
                Sure, completely understand - you can reach me at the support at ninjatrader dot com Attn Bertrand - thanks.

                Comment


                  #9
                  Well I figured it out. I Add() several custom indicators to the chart. One in particular was causing the problem. It had "PriceType = Data.PriceType.Close;" Each time I added this custom indicator to the chart via the Add() method, ALL other indicators would revert to Close pricetype. Comment that offending indicator, reload the strategy, and all the other indicators would then show as "Typical".

                  Needless to say, I removed PriceType = Data.PriceType.Close; from my custom indicator.

                  Mike

                  Comment


                    #10
                    Ok, glad to hear it and thanks for sharing the resolution here.

                    Comment


                      #11
                      You're welcome and thank you Bertrand. I always appreciate working with you.

                      Mike

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      633 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      364 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      105 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      567 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      568 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X