Basic NinjaScript Help - NinjaTrader Programming | futures trading

Go Back

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

Basic NinjaScript Help
Started:October 28th, 2013 (02:08 PM) by Joseph689 Views / Replies:303 / 2
Last Reply:October 28th, 2013 (05:48 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

Basic NinjaScript Help

Old October 28th, 2013, 02:08 PM   #1 (permalink)
Elite Member
San Jose, Ca
Futures Experience: Beginner
Platform: MetaTrader 4
Broker/Data: Interactive Brokers
Favorite Futures: Forex
Joseph689's Avatar
Posts: 121 since Sep 2012
Thanks: 113 given, 36 received

Basic NinjaScript Help

Hello everyone,

I have some ideas for a basic time period type of indicator, but I really want to learn to do it on my own, and learn at the same time.

I know that c# and NinjaScript are the same, but yet there are differences in getting NT to draw on the chart exactly what you want.

I really would appreciate if someone would share with me a piece of code that would do the following; draw a box that would go from the high to the low, spanning a specific time period. The time period, box color/opacity, should all be adjustable.

This would get me started, and I would learn from the code and it would give me a starting point.

Thank you in advance.


Reply With Quote

Old October 28th, 2013, 02:08 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 October 28th, 2013, 05:48 PM   #3 (permalink)
Elite Member
Salt Lake City, UT
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Dormans/Zen-fire
Favorite Futures: 6E ES YM
Posts: 223 since Mar 2010
Thanks: 42 given, 310 received

Have you looked at their help documentation - use the help button in the menu and look for sample or example indicator code. There is an entire section on this.

I highly suggest their basic indicator tutorial to help get you started.

Then you should start looking at the available API, for example Drawxxxx where xxxx is items like Text, Arrow, Diamond, etc... Area/Region allows you to draw a box on the screen.

Many times the API call you want to use has example code in their definition. But you can also google for the call and many times find examples. Also use this forum and the NT Support Forum.

Another thing, if you see an indicator that is doing what you want to do, see if you can get the .cs file (source file). Review the file looking of the API call of interest and get a feel for how it was done there.

Reply With Quote
The following user says Thank You to tulanch for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Basic NinjaScript Help

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
Very basic scalper set up Xzap Traders Hideout 25 November 18th, 2013 08:39 AM
Help with very basic ThinkScript Strategy snipsta ThinkOrSwim Programming 6 August 6th, 2013 09:52 PM
Webinar: Basic NinjaScript coding, May 25th @ 4:30PM Eastern, 22:30 Berlin/Paris sam028 The Elite Circle 33 August 11th, 2011 10:37 AM
Basic market characteristics aediaz1 The Elite Circle 4 August 10th, 2011 10:18 AM
basic R question sam028 Matlab, R project and Python 2 March 20th, 2010 06:32 PM

All times are GMT -4. The time now is 06:47 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.09 seconds with 20 queries on phoenix via your IP