Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print command not executed on Live trading

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

    Print command not executed on Live trading

    Hey,

    I am swing trading an automated strategy in Live account and I have a code, where it prints daily report at the start of the new day (using secondary data series, 1 minute).

    My primary data series is 900 tick. When I load the strategy, it prints daily reports from the past for as long as I have "Days to Load". Yet, this is my 4th day trading this strategy live and zero reports were printed, even though it had to print each morning.

    What can cause the issue? Additional data series? Something else?

    #2
    Hello UltraNIX,

    Without knowing what conditions the print is within it would be impossible to say what may be happening. What I could suggest would be to add more prints outside of the condition where your print currently is, that would let you know how far into your conditions/logic it is executing. Doing that will give you a better idea of what specifically needs checked at which point you could print any variables or other items used in the parent condition.

    I look forward to being of further assistance.

    Comment


      #3
      your code is printing all historical trades...... including ones you didn't take. It simply prints out the ones that your strategy would have taken if it was running.
      to print only real time trades try putting your print statement inside this
      if (State != State.Historical) {
      // your print statement
      }

      Comment


        #4
        it seems that strategy was probably out of sync last week. On Sunday, I restarted NinjaTrader, re-loaded the strategy and today, 2nd day in a row it prints as expected.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X