Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Nothing going to the output window

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

    Nothing going to the output window

    I have developed a strategy to trade on the intrabar based on the EMA value of the primary bar. I have backtested it & "OnBarUpdate" printed some values to ensure it is acting properly. Given everything looked ok as far as logic was concerned, I had to test against real time data so I could verify I was picking up the correct values then. The ouput window shows the initial set-up of the chart and the ouput from my first print command... then nothing.(?)

    Any idea why?

    #2
    Please check your Control Center logs for runtime errors.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks, I s/h looked there first.

      Not sure why. Am attempting to value value of the EMA of the primary bar 1 bar ago. It gives me the error that I am indexing out of range. It does not occur in a back test.

      EMABarAgo = EMA(BarsArray[0], Fast)[1]

      Getting the current value is okay:
      EMACurrent = EMA(BarsArray[0], Fast)[0]

      Comment


        #4
        Please see if this tip helps you: http://www.ninjatrader-support2.com/...ead.php?t=3170
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        83 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        47 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        66 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X