Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Demo Trading TD Ameritrade

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

    Demo Trading TD Ameritrade

    I'm running on the sim platform/account with TD Ameritrade as the data. My strategy backtests fine on historic data but testing live doesn't generate any trades. Why is this?

    #2
    Hello Kentoes,

    Thank you for the post.

    I couldn't really say what may be happening without more specific details of the situation.

    Is the strategy enabled and green in the control center?

    Are any errors or warnings being logged?

    What have you otherwise done to debug the situation at this point?

    If the strategy is green and enabled you would likely need to use some Prints in the script to identify what is happening in the logic. If one of the conditions is not true or if something else is happening that should help highlight the problem to know how to proceed.


    I look forward to being of further assistance.

    Comment


      #3
      Thanks. Green in the control center. No errors. The Output screen and the log say:
      Code:
      Enabling NinjaScript strategy 'JOBBO/198208632' : On starting a real-time strategy - StartBehavior=WaitUntilFlat EntryHandling=All entries EntriesPerDirection=1 StopTargetHandling=By strategy position ErrorHandling=Stop strategy, cancel orders, close positions ExitOnSessionClose=False SetOrderQuantityBy=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=False CancelExitsOnStrategyDisable=False Calculate=On bar close IsUnmanaged=False MaxRestarts=4 in 5 minutes
      None of my print screen statements are showing like they do when I run historical back tests.

      My strategy runs on 15 min. charts but also references daily bars series. The chart data series has 2 days to load and the strategy has 20 bars required to trade. I suspect the problem might lie here.

      Comment


        #4
        Hello Kentoes,

        Thank you for the update.

        I suspect you are correct, as a test you could try using 30 days to load on the chart and see if that makes it work. If that is the case and you want to load less data you can set the bars required for both indicators and strategies by using BarsRequiredToTrade and BarsRequiredToPlot.





        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        111 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        59 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        38 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        42 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        78 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X