Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 sofortune, Today, 11:48 AM
          1 response
          5 views
          0 likes
          Last Post Danila
          by Danila
           
          Started by schlabsm3129, 02-06-2024, 06:28 PM
          2 responses
          32 views
          0 likes
          Last Post karenmkrohn  
          Started by Mr Bread, Today, 12:01 PM
          0 responses
          4 views
          0 likes
          Last Post Mr Bread  
          Started by Danila, Today, 11:40 AM
          0 responses
          5 views
          0 likes
          Last Post Danila
          by Danila
           
          Started by PopovDS, Today, 11:17 AM
          0 responses
          11 views
          0 likes
          Last Post PopovDS
          by PopovDS
           
          Working...
          X