NexusFi: Find Your Edge


Home Menu

 





Code Language ID Request


Discussion in Traders Hideout

Updated
    1. trending_up 2,346 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?
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
Trade idea based off three indicators.
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #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