NexusFi: Find Your Edge


Home Menu

 





Code Language ID Request


Discussion in Traders Hideout

Updated
    1. trending_up 2,337 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

Code Language ID Request

  #1 (permalink)
compupix
Long Beach, CA USA
 
Posts: 9 since Jul 2014
Thanks Given: 3
Thanks Received: 0

Can someone please tell me what language this code is written in:
a = (mov != 0) and (mov != mov[1]) ? mov : nz(trend[1])

Thanks,
Drew

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Are there any eval firms that allow you to sink to your …
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
NexusFi Journal Challenge - April 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
The Program
18 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 
Hulk's Avatar
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
Posts: 369 since May 2014
Thanks Given: 731
Thanks Received: 901



compupix View Post
Can someone please tell me what language this code is written in:
a = (mov != 0) and (mov != mov[1]) ? mov : nz(trend[1])

Thanks,
Drew

Could be java or C#. If I recall correctly, ThinkScript has a java like syntax that could look like this fragment. On the other hand, it could be a fragment of C# code from Ninja.

Essentially, I can tell that "a", "mov" and "trend" are variables, the latter 2 with lookback capability and "nz" seems to be a method (function). The ? and : is an if-then-else construct that says if the condition "(mov != 0) and (mov != mov[1])" is true then assign the value in variable "mov" to the variable "a" otherwise assign the output of the call "nz(trend[1])" to the variable "a".

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on July 21, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts