NexusFi: Find Your Edge


Home Menu

 





Two indexes total sum.


Discussion in NinjaTrader

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

Can you help answer these questions
from other members on NexusFi?
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #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