NexusFi: Find Your Edge


Home Menu

 





Access an Indicators for its Label


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
Fernand0
Argentina
 
Posts: 19 since Apr 2018
Thanks Given: 8
Thanks Received: 3

Hi guys, there is any way to get the value of the indicator..? or i have to copy the indicator from scratch?

 
Code
EMA ema = null;

IndicatorList.Clear();
foreach (IndicatorRenderBase indicator in indicatorCollection)
{
	
	IndicatorList.Add(indicator.GetType().ToString() + " as " + indicator.Name);
	
	if (indicator.Name == "EMA")
	{
		ema = indicator as EMA;
	}
	
}

Draw.TextFixed(this, "Indicators", String.Join("\n", IndicatorList), TextPosition.TopLeft);

// I can't get any value of "ema"
Draw.TextFixed(this, "EMA1", ema.Value[0].ToString(), TextPosition.TopRight);
Thank you for your time.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Third Circuit Backs Kalshi in Landmark Ruling -- Predict …
Prediction Markets & Event Contracts
Tradeify 3.0 Overhauls Futures Prop Firm Model -- One-Ti …
Funded Trading Evaluation Firms
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
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
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks




Last Updated on June 4, 2018


© 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