Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

compile error message ?

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

    compile error message ?

    hi support.
    i am getting a compile error on the "stochastics with smoothing2" attachement.
    i was amending the original "stochastics with smoothing" indicator.
    do you see what the problem is?

    i was following the directions to add the "price type" into an indicator.
    they worked for another indicator i did it too.
    but with this one i get this error message.
    here are the directions i followed.

    " 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

    thanks
    Attached Files

    #2
    Hi Lightfoot500,

    Thank you for posting.

    This error most likely indicates that the name space is the same for both of these indicators.

    Can you find the line on the second one -
    Code:
    Public Class StochasticsWithSmoothing : Indicator
    You can change the name to StochasticsWithSmoothing2, right click and compile.

    If this doesn't work, can you please send me both indicators to support[at]ninjatrader[dot]com with ATTN Cal in the subject line and a reference to this post.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hi Cal,
      that name had already been changed to "stochasticswithsmoothing2"
      what folder are all the indicators stored in normally ?
      I will send it to you ,
      thanks very much

      Comment


        #4
        Hi Lightfoot,

        I received your email this morning. I will begin looking into it.

        Thank you for your patience.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        43 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        68 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        56 views
        0 likes
        Last Post CarlTrading  
        Working...
        X