NexusFi: Find Your Edge


Home Menu

 





Two indexes total sum.


Discussion in NinjaTrader

Updated
    1. trending_up 3,694 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:	246
Size:	57.8 KB
ID:	41036  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
My Rant with AMP Futures
Trading Reviews and Vendors
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
What we know about Binances $6.3bn hack - BBC News
Cryptocurrency
AI for Traders — Agents, Memory, Tools & Real-Worl …
Elite Quantitative GenAI/LLM
 
  #3 (permalink)
 
Zondor's Avatar
 Zondor 
Portland Oregon, United States
Market Wizard
 
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