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 Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              578 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              334 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              554 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X