Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongLimit and EnterShortLimit simultaneously

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

    EnterLongLimit and EnterShortLimit simultaneously

    Hello,
    How can I put two Limit Pending Orders on both sides of the price?

    By doing this, only the first one is executed:
    EnterLongLimit(0,true,1, Close[0]-100, @"limitLong");
    EnterShortLimit(0,true,1, Close[0]+100, @"limitShort");

    Thanks in advance,
    Jose



    #2
    Hello toc17,

    Thanks for the post.

    Please see the details on the managed approach here:



    What you are seeing is this rule:

    "
    Methods that generate orders to enter a position will be ignored if:

    ...

    The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction

    "

    The unmanaged approach would need to be used to achieve this style of trade.

    Please let me know if I can assist further.

    Comment


      #3
      It works, thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      20 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      119 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X