Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding Price type

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

    Adding Price type

    I came up with a price prediction algorithm and would like to add that to the price types you can select from the drop down in every indicator (close, high, low, median, typical, and so on). That way I won't have to re-program all the indicators I want to use this with. How can I do that?
    Thanks!

    #2
    Unfortunately lgarcia3, this is just not supported. You will have to add them to the indicators you wish to use it on.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      how complicated is it?

      hi, could any of you provide us with some basic direcitions on how to add the price type to an indicator??
      assuming we have the indicator open with the ninja editor, what is the code we enter and where?

      Comment


        #4
        In Initialize() add PriceTypeSupported = true;
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          a little more detail..

          thank you, Josh,
          much appreciated. i was also given these directions, a little more detail over at BigMikes.
          I quote,

          "Try this. Open the Stochastics indicator for editing. Right click and Save As a different name. Add this in the Initialize section:

          PriceTypeSupported = true;

          Then look for this line:

          nom.Set(Close[0] - MIN(Low, PeriodK)[0]);

          and change the Close[0] to Input[0] so it looks like this:

          nom.Set(Input[0] - MIN(Low, PeriodK)[0]);

          Then right click, select compile, click OK and close the editor. Load the indicator on your chart and test it. Dan"

          the link,
          http://www.bigmiketrading.com/ninjat...html#post34756

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Unsuitable, Today, 07:26 PM
          0 responses
          1 view
          0 likes
          Last Post Unsuitable  
          Started by jvanelli, Today, 06:36 PM
          1 response
          6 views
          0 likes
          Last Post jeronymite  
          Started by twitch251, Today, 05:14 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_ShawnB  
          Started by robforee2, Today, 05:07 PM
          0 responses
          3 views
          0 likes
          Last Post robforee2  
          Started by blar58, Today, 03:16 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Melissa  
          Working...
          X