Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

First Trade - Set To Entry Only

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

    First Trade - Set To Entry Only

    Hi,

    When enabling a strategy, how do I set the strategy to only place an entry order for the first signal? For example I'm flat, enable strategy. Next signal comes along and It's executing an entry order and also an exit order ( I had no posistion yet).

    Please note strategy was created using Strategy Builder, so no commands please. Strategy is not set to fill historical orders.

    Thank you.

    #2
    Welcome to the forums here Bob, could you please clarify what you mean by 'Strategy is not set to fill historical orders'?

    Do you mean 'Wait Until Flat' is enabled from Tools > Options > Strategies > NinjaScript?

    Comment


      #3
      Hi,

      To clarify, I do not have the radio button checked for 'Immediatey submit live working historical orders' in the Ninjascript Strategies Options tab.

      Thank you.


      Comment


        #4
        Ok, correct - with this mode you would not see any historical strategy position being managed with exit order, it would only take the next freshly generated entry.

        Comment


          #5
          It's not taken the next generated order though.

          If quantity = 10,000, it places an entry of 10,000 contracts and also a close position of 10,000. That's fine once I'm in a position, but first trade should only be for 10,000, not 20,000.

          It appears the strategy believes I have an open position once I enable it.

          Thanks.
          Last edited by bob77713; 02-20-2013, 10:17 AM.

          Comment


            #6
            You might have a virtual position, but this would not be a real position as in the terms of managed by the strategy. Is this a reversal type of system? Do you perhaps have duplicate Exit calls in your conditions that would not be needed, since the Enter() method would already do the reverse for you if needed?

            Comment


              #7
              I was able to figure it out on my own.

              For the 'Order Handling' of strategy, change the 'Sync Account Position' to True.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              666 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              376 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              110 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              575 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              580 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X