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 kinfxhk, 07-14-2026, 09:39 AM
              0 responses
              127 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 07-13-2026, 10:18 AM
              0 responses
              105 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 07-13-2026, 09:50 AM
              0 responses
              85 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 07-13-2026, 07:21 AM
              0 responses
              105 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Started by kinfxhk, 07-11-2026, 02:11 AM
              0 responses
              86 views
              0 likes
              Last Post kinfxhk
              by kinfxhk
               
              Working...
              X