Two indexes total sum. - NinjaTrader Programming | futures trading

Go Back

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

Two indexes total sum.
Started:June 14th, 2011 (06:29 PM) by yunakhan1 Views / Replies:1,053 / 2
Last Reply:June 14th, 2011 (06:42 PM) Attachments:1

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

Two indexes total sum.

Old June 14th, 2011, 06:29 PM   #1 (permalink)
Trading Apprentice
ny ny
Futures Experience: Intermediate
Platform: ninjatrader
Broker/Data: zen-fire
Favorite Futures: forex
Posts: 4 since Oct 2009
Thanks: 8 given, 0 received

Two indexes total sum.

I would like to create an indicator or chart which gives me total sum of two indexes on one screen. For example instead of putting 2 split charts have one like TICK+TICKQ. Any clue how to do this?

Attached Thumbnails
Two indexes total sum.-greenshot_2011-06-14_18-28-40.png  
Reply With Quote

Old June 14th, 2011, 06:29 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 June 14th, 2011, 06:42 PM   #3 (permalink)
Elite Member
Portland Oregon, United States
Futures Experience: Beginner
Platform: NinjatraderŽ
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay KlownbineŽ Trading of Globex
Zondor's Avatar
Posts: 1,276 since Jul 2009
Thanks: 1,227 given, 2,442 received

Sum of the value of two market metric indices

Use the Add method to create dataseries for TICK and TICKQ in your indicator. Declare two doubles, L1 and L2.

OnBarUpdate, when BarsInProgress=1 then L1, the latest value of TICK will be Closes[1][0] and when BarsInProgress=2, then L2, the latest value of TICKQ will be Closes[2][0].

So whenever there is an OnBarUpdate event with BarsInProgress other than zero, set the value of your output dataseries to L1+L2.

For additional information look up BarsInProgress in Ninjatrader Help.

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

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Two indexes total sum.

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
Scaling in and scaling out...when the total is NOT the sum of its parts RM99 Psychology and Money Management 8 April 11th, 2012 09:21 AM
Donald Sliter's strategy - relative strength between indexes ptcm The Elite Circle 7 January 1st, 2011 02:52 PM
What's wrong with my SUM logic? gordo NinjaTrader Programming 1 July 18th, 2010 08:04 PM
is Forex a zero sum game ? momop540 Traders Hideout 16 July 15th, 2010 09:27 PM

All times are GMT -4. The time now is 07:47 PM.

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-22 in 0.08 seconds with 20 queries on phoenix via your IP