Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compiling Error CS1501 -> Add Method

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

    Compiling Error CS1501 -> Add Method

    I'm a newbie in the NT-forum and I've seen there are many experts around.

    Currently I'm trying to port all my indicators and systems to C# Ninja script.

    One of my indicators for my intraday systems is the yesterday high-, low-, close-line and the today's open line.

    In the helpfile and in some samples I found out, that for this reason I have to use the 'Add' method with PeriodType-Class (Day) to create multiple timeframe dataseries.

    I copied the sample source code from the helpfile into the Initialze script to see
    how this methods are working:

    Add(PeriodType.Minute, 3);
    Add("AAPL", PeriodType.Minute, 1);

    But by compiling the code, the system fires the following message:

    No overload method for 'Add' takes 2 .. ( 3 ) .. Argruments -- error code CS1501

    What is wrong with this code - can anybody help me ?

    #2
    Add() logic as per below only is supported for strategies but not for indicators.

    Comment


      #3
      Many thanks for your quick answer ...

      but is there another way to show the yesterdays high-, low-, close- and todays open line with a indicator (or whatever) in a intraday chart?

      Comment


        #4
        You could try the PriorDayOHLC indicator http://www.ninjatrader-support.com/H...orDayOHLC.html

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        153 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        305 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        244 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        345 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        176 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X