Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Code Language ID Request

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

    Code Language ID Request

    Can someone please identify the language used in the following code:

    trend= (mov != 0) and (mov != mov[1]) ? mov : nz(trend[1])
    isTrending = rising(close, trendDetectionLength) or falling(close, trendDetectionLength)

    Thanks,
    Drew

    #2
    Hello Drew,

    Thank you for your note

    The first line is doing an inline check for the condition
    if((mov != 0) && (mov != mov[1]))

    If it is true assign the value mov to trend, if false assign nz(trend[1]) to trend

    The second line looks to be checking for rising or falling conditions for the close price over a defined length
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by t.kelly4149, Today, 05:36 PM
    1 response
    5 views
    0 likes
    Last Post bltdavid  
    Started by SilverSurfer1, Today, 06:29 PM
    0 responses
    16 views
    0 likes
    Last Post SilverSurfer1  
    Started by trader3000a, Today, 01:06 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by marcus2300, Today, 11:45 AM
    3 responses
    31 views
    0 likes
    Last Post marcus2300  
    Started by pel11, Today, 11:06 AM
    0 responses
    13 views
    0 likes
    Last Post pel11
    by pel11
     
    Working...
    X