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

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 funk10101, Yesterday, 09:43 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by TheWhiteDragon, 01-21-2019, 12:44 PM
        5 responses
        551 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by rtwave, 04-12-2024, 09:30 AM
        5 responses
        37 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by funk10101, Today, 12:02 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by GLFX005, Today, 03:23 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X