Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Take one order per cross over

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

    Take one order per cross over

    Hi,

    Is there any logic that would tell a strategy to only take one trade per Moving Average crossover once specific parameters are met? IE. if there's a cross over(long or short) and all my setup conditions are met, take the trade, and if there's another set of conditions met in the same direction, to not take that trade?

    Cheers,
    Seastragg

    #2
    Hello Seastragg,

    Thank you for your post.

    What is your entries per direction setting for the strategy? You can find this in the strategy parameters. Setting entries per direction to 1 would make it so that the strategy can only have one open trade in the same direction at once (it doesn't matter the quantity of the trade, only that there's only one entry).

    Here's a link to our help guide regarding EntriesPerDirection:


    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Perfect Thanks!
      Last edited by Seastragg; 01-16-2020, 03:22 PM.

      Comment


        #4
        I might have jumped the gun on reading it too fast. If I'm reading it correctly, it will only prevent orders from being taken if you are already IN the market? What I'm looking for is a way to prevent any subsequent entries in a particular direction (regardless if they meet my criteria or not) so that if there is a crossover, it will only take 1 short and aim for a target until it crosses back (even if there are 3 more trades valid in that direction) and then it will only take 1 long once the criteria is met.

        Is there any logic to help with that scenario?

        Comment


          #5
          Hello Seastragg,

          Thank you for your reply.

          Absolutely. You could use a bool that gets set to true when a trade is taken, then reset it to false when a new crossover happens, and add a condition that the bool has to be false in order to place the trade - that'd be the simplest way I can think of.

          I've attached a similar example strategy (it's a Strategy Builder strategy, but if you like you can unlock the code). This should help you get the idea of how this could be set up.

          Please let us know if we may be of further assistance to you.
          Attached Files

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          50 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          69 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X