NexusFi: Find Your Edge


Home Menu

 





Two indexes total sum.


Discussion in NinjaTrader

Updated
    1. trending_up 3,454 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 yunakhan1 
ny ny
 
Posts: 4 since Oct 2009

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
Click image for larger version

Name:	Greenshot_2011-06-14_18-28-40.png
Views:	223
Size:	57.8 KB
ID:	41036  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CME Group Fee Schedule Changes Hit All Four Exchanges -- …
Traders Hideout
Prop Firm Tracked Payouts Hit $115M in Q1 but Growth Fla …
Funded Trading Evaluation Firms
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
April FOMC Minutes: Most Divided Fed Since 1992 -- Many …
Traders Hideout
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
 
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,734


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.


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on June 14, 2011


© 2026 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 - Downloads - Top
no new posts