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 llanqui, Today, 03:53 AM
              0 responses
              2 views
              0 likes
              Last Post llanqui
              by llanqui
               
              Started by burtoninlondon, Today, 12:38 AM
              0 responses
              10 views
              0 likes
              Last Post burtoninlondon  
              Started by AaronKoRn, Yesterday, 09:49 PM
              0 responses
              14 views
              0 likes
              Last Post AaronKoRn  
              Started by carnitron, Yesterday, 08:42 PM
              0 responses
              11 views
              0 likes
              Last Post carnitron  
              Started by strategist007, Yesterday, 07:51 PM
              0 responses
              14 views
              0 likes
              Last Post strategist007  
              Working...
              X