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:
- 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. - 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); }));
Comment