• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Code Language ID Request

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

  • compupix
    started a topic Code Language ID Request

    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

  • NinjaTrader_CalH
    replied
    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

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by Newtrader101, Today, 10:31 AM
0 responses
3 views
0 likes
Last Post Newtrader101  
Started by rwilliam, Yesterday, 03:55 PM
1 response
6 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by RandanAL, Today, 09:05 AM
0 responses
4 views
0 likes
Last Post RandanAL  
Started by cstern71, 09-02-2019, 10:30 AM
4 responses
63 views
0 likes
Last Post Lancer
by Lancer
 
Started by Hanstanz, Today, 04:44 AM
0 responses
12 views
0 likes
Last Post Hanstanz  
Working...
X