Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

many log messages

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

    many log messages

    Hello,

    I see many messages in the log tab. Does this have any impact? Is there an error somewhere in a code?.....?

    Thank you!
    Tony
    Attached Files

    #2
    Hello tonyny,

    Thanks of your question.

    We have moved this ticket to the indicator development forum as the question pertains to NinjaScript behaviors.

    It looks like you have a script added that is making Log calls from the OnStateChange NinjaScript method. This wouldn't be anything serious, but would be burdensome to review the log and trace files should you need to open a support ticket for another matter.

    I would suggest making a copy of your workspace, and then test to reproduce the messages, removing a chart window each time you test until you identify a specific window that creates the log messages. After that, I suggest testing the components in that chart individually in the same fashion so you can identify a specific component that is creating the log messages.

    After you identify the scripts that make these log entries, you can remove them or modify them so they no longer make the logs.

    Keep in mind with the NinjaScript lifecycle, simply opening an Indicators dialog will cause the first part of the LifeCycle to be processed and you will see State.SetDefaults and State.Terminated. I suggest focusing on simply opening NinjaTrader, opening the workspace, removing a chart, saving the workspace, closing NinjaTrader and testing again until you get to a specific window that makes the logs. Once you get to a specific window, remove a component from the window, save the workspace, restart NinjaTrader and open the workspace again to test with that component removed. You will then be left with the specific script or scripts that have this logging added.

    NinjaScript LifeCycle - https://ninjatrader.com/support/help...fecycle_of.htm

    We look forward to assisting.


    Comment


      #3
      I want to create the very most basic moving average indicator based on only the lows of lets say the past 14 bars. Pretty much all moving average indicators plot the average of the highs and lows and some other factors. I know I can play around in properties to get most indicators to show their lows but I would like have a hard coded example. Do you any of you fine Ninjatrader Reps have any code references?

      Thanks, FuturesPhantom....

      Comment


        #4
        Hello FuturesPhantom,

        You can open the indicator source code in the NinjaScript Editor to see how they are calculated.

        Indicators that calculate using the Input Series will use the input series provided to them to calculate the indicator plot. You can see that this is what is used in our Moving Average indicators. Indicators that are hard coded to use a different Price Series will always use that Price Series.

        Input Series - https://ninjatrader.com/support/help...nt8/?input.htm

        Working with Price Series - https://ninjatrader.com/support/help...ice_series.htm

        Let us know if you have any additional questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 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
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        550 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X