NexusFi: Find Your Edge


Home Menu

 





NT8: Calling on an indicator value (external symbol)


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 ajk1 
London - England
 
Experience: Intermediate
Platform: NT, TW
Trading: Futures & Options
Posts: 35 since Dec 2016
Thanks Given: 60
Thanks Received: 12

Hi,

How do I call an idicator value from another symbol?
Lets' say I am building an indicator and applying it to chart of Wheat.
Lets say that the indicator is X+Y... and Y is the moving average of CL (crude oil).

I have already added the data series:

 
Code
else if (State == State.Configure)
			{
				AddDataSeries("CL 08-17", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
			}
But in the OnBarUpdate section, how to call a CL indicator value ?

Thanks
AK


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Czechia Live at 52.5% as England Rides 4-2 Wave to Co-Fa …
Prediction Markets & Event Contracts
Trump Media to sell instant access to market-moving soci …
Traders Hideout
No book, only a stair: journaling fills where price move …
Cryptocurrency
Thanks Mike. Godspeed.
The Elite Circle
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
  #3 (permalink)
 
ratfink's Avatar
 ratfink 
Birmingham UK
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: TST/Rithmic
Trading: YM/Gold
Posts: 3,550 since Dec 2012
Thanks Given: 17,423
Thanks Received: 8,427



ajk1 View Post
Hi,

How do I call an idicator value from another symbol?
Lets' say I am building an indicator and applying it to chart of Wheat.
Lets say that the indicator is X+Y... and Y is the moving average of CL (crude oil).

I have already added the data series:

 
Code
else if (State == State.Configure)
			{
				AddDataSeries("CL 08-17", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
			}
But in the OnBarUpdate section, how to call a CL indicator value ?

Thanks
AK

Always by referencing the bars series by index.
Start with the online help guides, expect it to be frustrating until it becomes automatic, after which it's only difficult.

Use Google, Help->F1 doesn't always work.

https://ninjatrader.com/support/helpGuides/nt8/en-us/








Cheers


Travel Well
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on June 24, 2017


© 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