Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SampleAtmStrategy

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

    SampleAtmStrategy

    I ran the SampleAtmStrategy with simulated data feed. It initiated several orders and worked correctly. However, this is all I got in the Output Window;


    **NT** Enabling NinjaScript strategy 'SampleMACrossOver/b349a238bf6a47049b6dc58d6a1b1fd4' : On starting a real-time strategy - StrategySync=WaitUntilFlat SyncAccountPosition=False EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositio ns ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=False CancelExitOrdersOnDisable=True MaxRestarts=4 in 5 minutes
    **NT** Disabling NinjaScript strategy 'SampleMACrossOver/b349a238bf6a47049b6dc58d6a1b1fd4'

    Aren't the print statements supposed to show up there?

    #2
    Hello TMFT,

    Yes, the SampleAtmStrategy should Print() a few different items, but in your output you enabled SampleMACrossOver.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Ahh.. that would do it... did I mention I was old and feeble...

      Comment


        #4
        Happens to us all. Thanks for update here, and glad to hear it was a simple one.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          In the Sample ATM Strategy what is the significance of Cbi.MarketPosition.Flat as opposed to MarketPosition.Flat ?

          Code:
           if (atmStrategyId.Length > 0 && GetAtmStrategyMarketPosition(atmStrategyId) == Cbi.MarketPosition.Flat)
          				atmStrategyId = string.Empty;

          Comment


            #6
            Either one is fine.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            24 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            121 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            92 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            136 views
            0 likes
            Last Post cmoran13  
            Working...
            X