Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

State of Indicators in Market Analyzer and NTMessage window

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

    State of Indicators in Market Analyzer and NTMessage window

    Hello fellow humans,
    I'm running into a weird issue. I've developed an indicator, which works as expected without errors.
    Now I want to use it inside the Market Analyzer (I have a specific plot to set the conditions etc.). The main logic and the conditions also work as expected.
    The two issues I'm running into are:
    1. I have certain logic which should only trigger on State.Realtime. Inside a chart the check for State == State.Historical works as expected, preventing said logic from being triggered on historical data.
      Inside the Market Analyzer however, this logic still gets executed. When I print the state, I get "Realtime" during historical data. The simplest way is to recreate this is to print the state within any indicator, add it to the marketanalyzer, use playback but on pause and load the column. You should see Realtime getting printed, when there is no Realtime data.
    2. When certain conditions are met, I'm showing a NTMessage like:
      Code:
      	if (ShowPullbackPopUp)
      	               ChartControl.Dispatcher.InvokeAsync(new Action(() => {
      	                   NinjaTrader.Gui.Tools.NTMessageBoxSimple.Show(Window.GetWindow(ChartControl.OwnerChart as DependencyObject), message, "SuperTrenderMA Message", MessageBoxButton.OK, MessageBoxImage.None);
      	               }));​
      Inside the Market Analyzer this causes the error that an object reference is not set and doesn't display the message. Is it in general not possible to display messages from within an indicator which is used in the market analyzer?

    #2
    Hello Human#102,

    For the first question that is currently an item that has been reported, you can track changes with that issue in the change log using the id 9420.

    The second item would be expected, there is no ChartControl when a chart is not present. You can invoke a messagebox by using the Log function with LogLevel.Alert.



    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    576 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X