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 cmtjoancolmenero, Yesterday, 03:58 PM
            11 responses
            39 views
            0 likes
            Last Post cmtjoancolmenero  
            Started by FrazMann, Today, 11:21 AM
            0 responses
            5 views
            0 likes
            Last Post FrazMann  
            Started by geddyisodin, Yesterday, 05:20 AM
            8 responses
            52 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by DayTradingDEMON, Today, 09:28 AM
            4 responses
            27 views
            0 likes
            Last Post DayTradingDEMON  
            Started by George21, Today, 10:07 AM
            1 response
            22 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Working...
            X