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

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 bmartz, 03-12-2024, 06:12 AM
        4 responses
        32 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by Aviram Y, Today, 05:29 AM
        4 responses
        12 views
        0 likes
        Last Post Aviram Y  
        Started by algospoke, 04-17-2024, 06:40 PM
        3 responses
        28 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by gentlebenthebear, Today, 01:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by cls71, Today, 04:45 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X