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 Ndakotan1313, 03-14-2024, 05:02 PM
            2 responses
            58 views
            0 likes
            Last Post blaise_code  
            Started by claxxical, 05-30-2017, 12:30 PM
            37 responses
            4,454 views
            0 likes
            Last Post Padan
            by Padan
             
            Started by SugarDefwebsite, Today, 02:18 AM
            0 responses
            4 views
            0 likes
            Last Post SugarDefwebsite  
            Started by usglucofreeze, Today, 01:19 AM
            0 responses
            7 views
            0 likes
            Last Post usglucofreeze  
            Started by f.saeidi, Today, 01:12 AM
            0 responses
            14 views
            0 likes
            Last Post f.saeidi  
            Working...
            X