• 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

  • 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:


  • 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

Latest Posts

Collapse

Topics Statistics Last Post
Started by billythekid72, Today, 09:47 AM
1 response
5 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by JohnS52, Today, 09:49 AM
0 responses
6 views
0 likes
Last Post JohnS52
by JohnS52
 
Started by DTSSTS, Today, 08:29 AM
2 responses
17 views
0 likes
Last Post DTSSTS
by DTSSTS
 
Started by mtamaku, Today, 08:39 AM
3 responses
14 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by Douglee, Today, 08:11 AM
2 responses
13 views
0 likes
Last Post Douglee
by Douglee
 
Working...
X