• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to display custom value in the Market Analyzer Column

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to display custom value in the Market Analyzer Column

    I am trying to display a value in the Market Analyzer Column
    I am trying this code (according to this page https://ninjatrader.com/support/help...zer_column.htm)

    protected override void OnMarketData(MarketDataEventArgs marketDataUpdate)
    {
    CurrentValue = marketDataUpdate.Price;
    }

    During compilation I am getting the error

    The name 'CurrentValue' does not exist in the current context.

    Please advise

  • NinjaTrader_JoshG
    replied
    The indicator already will not be able to draw drawing objects when used in the Market Analyzer, so there will be no special considerations you need to make there. Are you seeing that when you attach an indicator to your Market Analyzer that it is drawing on your chart?

    Leave a comment:


  • zextra
    replied
    The issue I have is that the indicator draws graphical lines on the chart, and hence the drawing part needs to be disabled when loading the indicator in the market analyzer. How can I check in the indicator code, I need something like this

    if (Not loaded in market analyzer)
    {
    // Draw the ilne
    }

    Leave a comment:


  • NinjaTrader_JoshG
    replied
    You would see it near the top of your code. A MarketAnalzyer Column also will display under the appropriate "MarketAnalzyerColumns" folder in the NinjaScript Editor.
    namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns

    Leave a comment:


  • zextra
    replied
    Ah ok, I got it now.

    Can you please tell me how to check if the indicator is an instance of MarketAnalyzerColumns?

    Leave a comment:


  • NinjaTrader_JoshG
    replied
    Hello Zextra,
    Thanks for your post.

    Are you creating this as an indicator or is this code being used inside the "MarketAnalyzerColumns" namespace?
    Last edited by NinjaTrader_JoshG; 10-16-2018, 11:00 AM.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by frankduc, Today, 07:02 AM
0 responses
0 views
0 likes
Last Post frankduc  
Started by i2w8am9ii2, Today, 06:57 AM
0 responses
1 view
0 likes
Last Post i2w8am9ii2  
Started by sidviciousX, Today, 06:47 AM
0 responses
1 view
0 likes
Last Post sidviciousX  
Started by buzzripper, Today, 06:14 AM
0 responses
1 view
0 likes
Last Post buzzripper  
Started by NinjaCustomer, Today, 06:04 AM
0 responses
5 views
0 likes
Last Post NinjaCustomer  
Working...
X