Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Algo not working on Tick Chart

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

    Algo not working on Tick Chart

    The algo is suppose to be entering on 1 tick above previous high but its not anywhere close.


    Thank you!
    Ethan

    Attached Files

    #2
    Hello Ethan,

    Is this real-time or historical?

    May we have output from Prints and TraceOrders() saved to a text file showing the High[1] when the order is submitted and then the order as it progresses in OnOrderUpdate()?

    Below is a link to a forum post on debugging.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      The Output and order seem to match up. However the bar on the chart is different from what the TraceOrders() says. So maybe its the charts wrong?

      Thank you!
      Attached Files

      Comment


        #4
        Hello elcowen,

        There is no evidence of any discrepancy between the bar time on the chart and the output text file.
        Your screenshot does not have the databox open and is not showing the time of any bar. What are you comparing?

        If you feel that the open high low and close of a bar with a specific time stamp is not matching the open, high, low, and close of a bar with the same time stamp in the output, then print the time of the bar and the open high low and close, and on the chart show the data box with the mouse over the bar showing the open high low and close.

        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I want to reopen this thread. Attached you can see the bar (Green bar) High/Low aren't the same as whats the output window says (this bar would be the High[1] & Low[1]). Its off by 1-2 ticks

          It seems to be an issue with the previous bar? Sometime my order is 2 candles behind or moves in the middle of a candle rather than waiting until the end.

          At this point I'm at a loss for how to continue. Thank you for your expertise and help!



          Click image for larger version

Name:	image.png
Views:	93
Size:	10.1 KB
ID:	1228249

          Click image for larger version

Name:	image.png
Views:	86
Size:	38.3 KB
ID:	1228251​​


          Attached Files

          Comment


            #6
            Hello elcowen,

            I am seeing the print on bar 12:08:56 with the High0] at 3861.75 and the second screenshot showing that bar's high at 3862.

            However, the print shows the previous bar has a high of 3862.

            Is it possible the print is incorrect and the label is with the wrong value?

            Or is it possible that TickReplay was enabled and the wrong bar was referenced?

            Below is a link to a video testing for this behavior. I am not able to reproduce.


            Using the attached test script and the exact steps shown in the video, are you getting different behavior?
            PrintBarTime_NT8.zip
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            53 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            130 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            70 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            44 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            49 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X