Code Language ID Request - Traders Hideout | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Traders Hideout

Code Language ID Request
Started:July 21st, 2014 (08:00 PM) by compupix Views / Replies:318 / 2
Last Reply:July 21st, 2014 (10:49 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Code Language ID Request

Old July 21st, 2014, 08:00 PM   #1 (permalink)
Trading Apprentice
Long Beach, CA USA
Futures Experience: Intermediate
Platform: ThinkorSwim
Favorite Futures: Options
Posts: 9 since Jul 2014
Thanks: 3 given, 0 received

Code Language ID Request

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


Reply With Quote

Old July 21st, 2014, 08:00 PM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.


Old July 21st, 2014, 10:49 PM   #3 (permalink)
Elite Member
Texas, USA
Futures Experience: Intermediate
Platform: X_TRADER Pro, Custom
Broker/Data: Nanex, IQFeed
Favorite Futures: Futures, Spreads
Hulk's Avatar
Posts: 199 since May 2014
Thanks: 478 given, 420 received

This post has been selected as an answer to the original posters question Answer

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])


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".

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Traders Hideout > Code Language ID Request

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Easy Language code into Thinkscript sboarder13 ThinkOrSwim 19 March 26th, 2014 07:59 PM
Easy Language code help piko873 EasyLanguage Programming 2 November 6th, 2013 10:09 AM
yet another MT4 code to NT7 request? danjuma NinjaTrader 6 September 14th, 2012 01:29 PM
Easy Language code question quantismo EasyLanguage Programming 3 April 3rd, 2012 08:36 PM
Reversal Candle Code Request ceramictilepro NinjaTrader Programming 6 August 31st, 2011 12:40 PM

All times are GMT -4. The time now is 06:32 AM.

Copyright © 2016 by 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.
no new posts

Page generated 2016-10-24 in 0.08 seconds with 24 queries on phoenix via your IP