Announcement

Collapse
No announcement yet.

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.

      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.

          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).

              Comment

              Latest Posts

              Collapse

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