Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy opens with a position although I don't seem to have any

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

    Strategy opens with a position although I don't seem to have any

    I cancelled all orders, I disconnect, I removed sim accounts, yet everytime I enable the strategy, it begins with an open position and the strategy name is yellow (I usually see green). Logs show this:
    8/26/2020 9:06:26 AM Default Enabling NinjaScript strategy 'EngulfNoAtm/209687849' : On starting a real-time strategy - StartBehavior=WaitUntilFlat Position=GC 12-20 1L EntryHandling=All entries EntriesPerDirection=1 StopTargetHandling=Per entry execution ErrorHandling=Stop strategy, cancel orders, close positions ExitOnSessionClose=True / triggering 30 seconds before close SetOrderQuantityBy=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=False CancelExitsOnStrategyDisable=False Calculate=On bar close IsUnmanaged=False MaxRestarts=4 in 5 minutes
    8/26/2020 9:06:26 AM Default Strategy 'EngulfNoAtm/209687849': An order placed at '8/20/2020 5:08:00 PM' has been ignored since the order was submitted before the strategy property BarsRequiredToTrade had been met.
    8/26/2020 9:05:45 AM Default Cancel all orders account='G7088'
    8/26/2020 9:05:45 AM Default Cancel all orders account='Sim101'

    #2
    Hello brettcomardelle93,

    When you see that the strategy is yellow that would be caused by the start behavior waiting until flat. That is normal for a strategy which placed a historical position before entering. You can find a good deal about this topic in the following forum post:



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      How do I stop this historical position? I'm wanting this to only be using live, incoming data.

      Comment


        #4
        I figured it out. Now it doesn't use historical data.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        238 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        4 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Started by pechtri, 06-22-2023, 02:31 AM
        10 responses
        125 views
        0 likes
        Last Post Leeroy_Jenkins  
        Working...
        X