Announcement

Collapse
No announcement yet.

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 -

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X