Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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,
          hi, most of my programming experience was back in engineering school doing fortran. so i have heard programming got alot easier since those days.:sarcastic: so is it possibel to explain step by step in detail to a newbie like me how to put the price type parameter in an indicator like the stochastics that comes with ninja or the stochastics_with smoothing which is available for download on the ninja_support site? is it as simple as going to the editor in the ninja control center and opening the indicator …

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jclose, Today, 09:37 PM
          0 responses
          5 views
          0 likes
          Last Post jclose
          by jclose
           
          Started by WeyldFalcon, 08-07-2020, 06:13 AM
          10 responses
          1,413 views
          0 likes
          Last Post Traderontheroad  
          Started by firefoxforum12, Today, 08:53 PM
          0 responses
          11 views
          0 likes
          Last Post firefoxforum12  
          Started by stafe, Today, 08:34 PM
          0 responses
          11 views
          0 likes
          Last Post stafe
          by stafe
           
          Started by sastrades, 01-31-2024, 10:19 PM
          11 responses
          169 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X