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

Donīt understand error message

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

    Donīt understand error message

    Hi,

    I donīt understand why this does not work:
    Code:
       if (CrossAbove(DTest_Trading(period).Plot0[0], 0, 1));
                {
                    EnterLong();
                }
    D_Test_Trading is a simple indicator Iīve built on my own, .Plot0[0] is the current value of the indicatorīs line. NT gives me error codes CS 1502 and CS 1503 (issues with converting data type etc.). Usually an indicator can cross a double or int number using CrossAbove(). Whatīs wrong?
    Thanks!

    #2
    The first one should be a dataseries and you're submitting a double, thus please remove the index and retry -

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by casabella, Today, 04:12 AM
    0 responses
    11 views
    0 likes
    Last Post casabella  
    Started by Ludwik, Today, 03:52 AM
    0 responses
    7 views
    0 likes
    Last Post Ludwik
    by Ludwik
     
    Started by wuannetraam, Today, 02:40 AM
    0 responses
    10 views
    0 likes
    Last Post wuannetraam  
    Started by cyberpete76, 03-27-2023, 12:29 AM
    7 responses
    272 views
    1 like
    Last Post slightly  
    Started by renewsaltwater, Today, 01:15 AM
    0 responses
    4 views
    0 likes
    Last Post renewsaltwater  
    Working...
    X