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

User defined Variables: Font? Enum Pull-Down list?

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

    #16
    Thanks Bertran, by the way, if I have entered an order then in the next two bars for example there is another signal for entry. Can I enter again an order without exiting the pending order?

    Comment


      #17
      You're welcome, you can enter an order again then, but the still working one could be filled of course as well depending on where it's placed, so you might end up with a non expected final position size in this case.
      BertrandNinjaTrader Customer Service

      Comment


        #18
        Is it also be applicable in AtmStrategyCreate method? I've used AtmStrategyCreate method with limit to the low[0]. How about the orderId and atmstrategyId? What will happen to them?

        Comment


          #19
          If there's a working order and ATM they would contain a value and if you were working alongside our 'SampleAtmStrategy' subsequent orders would be ignored, as it would demand for the order and atmStrategId to be in a reset state before allowing a new entry.
          BertrandNinjaTrader Customer Service

          Comment


            #20
            How about I will make my code like this:

            //if (orderIdS.Length == 0 && atmStrategyIdS.Length == 0)
            //{
            atmStrategyIdS = GetAtmStrategyUniqueId();
            orderIdS = GetAtmStrategyUniqueId();

            // Change CL_Scalp of your desired choice ATM template for this strategy
            AtmStrategyCreate(Cbi.OrderAction.Sell, OrderType.Limit, Low[0], 0, TimeInForce.Day, orderIdS, AtmStrategyTemplate, atmStrategyIdS);
            //}

            I will not include the reset.

            Comment


              #21
              This would still only enter if both order and strategyId are in reset state (string length 0 == empty).
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Salahinho99, 05-05-2024, 04:13 AM
              8 responses
              65 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Seneca, 08-25-2020, 08:31 AM
              3 responses
              5,946 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by Tradereh2020, Today, 06:29 AM
              0 responses
              3 views
              0 likes
              Last Post Tradereh2020  
              Started by slightly, Today, 12:49 AM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Started by casabella, Today, 04:12 AM
              1 response
              20 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Working...
              X