Getting started: custom indicator - NinjaTrader | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader

Getting started: custom indicator
Started:November 22nd, 2014 (12:12 PM) by choubix Views / Replies:204 / 0
Last Reply:November 22nd, 2014 (12:12 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

Getting started: custom indicator

Old November 22nd, 2014, 12:12 PM   #1 (permalink)
Trading Apprentice
Bangkok + Thailand
Futures Experience: None
Platform: none yet
Favorite Futures: guitar ;)
Posts: 10 since Aug 2012
Thanks: 2 given, 0 received

Getting started: custom indicator

Hi Everyone,

I have not been active online for some time (but I have been trading. Forex and volatility mostly) and I believe it is time for me to start toying with something else than excel...

Initially I wanted to learn some C# and get started on MC .Net but I quickly realized that NinjaTrader looked more approachable.

So here I am: trying to code my first indicator (smoothed RsRank, to change the color of my chart depending on whether it is a Bull/Bear market regimes as described here: // ).
The idea would be for me to try some strategies using DV2 and RSI2 as Entry points while looking at the current market regime using RsRank or TSI (something along that line: //

Replicating some youtube tutorials was fun and all but coding something (as simple as a smoothed RsRank) is not easy.

This is what I have done:
New ninjascript (indicator)
created 2 variables : LT_Close and ST_Close, values: 140 and 20 respectively

and in the OnBarUpdate:

double RsRank = ( ( Close[0] - LT_Close + Close[0] - ST_Close ) / 2 ) / ATR[10];

Even at this early stage, the code doesnt compile... (then I would have to smooth it as described in the link above of course)

Any pointer would be really appreciated (any book with examples or projects on how to learn coding with Ninjatrader available??)

Thanks in advance!

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > Getting started: custom indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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
Variable from custom Indicator Diamond5 NinjaTrader Programming 3 September 22nd, 2014 01:28 AM
Using Profile Indicator in Custom plugin zubairalimansoor Investor/RT 0 September 13th, 2014 03:01 PM
CUSTOM MACD INDICATOR STRICKLYD NinjaTrader 4 February 9th, 2014 11:00 AM
Custom Momentum Indicator nhboy603 AmiBroker 1 April 2nd, 2013 10:18 AM
Bad Custom Indicator on PC markbbn NinjaTrader 6 January 17th, 2012 03:21 AM

All times are GMT -4. The time now is 08:24 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-28 in 0.05 seconds with 19 queries on phoenix via your IP