Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

High[0] (Low[0] Error CS0021

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

    High[0] (Low[0] Error CS0021

    Hi all,

    I'm trying to code an indicator that uses high[] and low[] in calculations. Nothing very difficult, but I really seem to miss something. I get an CS0021 error everytime I use high[] or low[]. Even when I just set a plot to the high[] value I get the error. I don't get it with Open[] or Close[].

    I tried to add a DateSeries that holds the high (low) value but the calculations don't seem to work.

    I'm thankfull for any help,

    Marco

    #2
    Hello Marco,
    To assist you further please send a toy code* reproducing the scenario to support[AT]ninjatrader[DOT]com

    Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

    I look forward to assisting you further.

    *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hi Joydeep,

      Sorry for having bothered you, I found it myself. I used invalid variable names.

      Thanks for your quick reply.

      Marco

      Comment


        #4
        Hello Marco,
        Glad to know you could resolve it.

        Please let me know if I can assist you any further.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        83 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        45 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        66 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        58 views
        0 likes
        Last Post CarlTrading  
        Working...
        X