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 judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            21 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X