Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error with ATM , Maybe

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

    Error with ATM , Maybe

    I have been playing with this strategy but since I have added the ATM code it will not enter trades. The atm strategy is created so no idea. Is there something I am missing in the code?
    Attached Files

    #2
    mccallum,

    When you run this strategy, are you getting any error messages in your log tab of the control center?

    One thing I am noticing is that you are submitting market orders here but giving it a Limit price.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      I get no log errors but run the same strategy without ATM along side it, that one enters trades and this one does not. How do I adjust the entry price. I thought I was entering at market

      Comment


        #4
        Hello,

        Try :

        Code:
        AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Market, 0, 0, TimeInForce.Day, orderId, "FtseZ", atmStrategyId);
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          Thanks, ill see if that sorts the problem out.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          67 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          36 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          60 views
          1 like
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          62 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          53 views
          0 likes
          Last Post CarlTrading  
          Working...
          X