NexusFi: Find Your Edge


Home Menu

 





Two indexes total sum.


Discussion in NinjaTrader

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




 
Search this Thread

Two indexes total sum.

  #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:	172
Size:	57.8 KB
ID:	41036  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
 
  #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,731


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 Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on June 14, 2011


© 2024 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 - Privacy Policy - Downloads - Top
no new posts