Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Scratching Trades

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

    Scratching Trades

    I have my strategy entries programmed now and they seem to work as intended. However I would like to add a condition that would automatically scratch the trade (ie close the position) if the price was below a certain value just before the close. How would I do that?

    #2
    You would need to add a time filter condition and then check for your condition occuring to ExitLong / ExitShort open positions.

    Comment


      #3
      Thanks for the reply. At risk of appearing ignorant can you confirm the following.

      Do I just need to add an additional condition under "condition and actions" in for example Set 2 that will exit my trade if the time and price conditions are met?

      If I specify a command such as "exit long position" I'm assuming that this will only trigger if I have a long position already established?

      Comment


        #4
        Correct, just add the exits in a new condition set - yes ExitLong() is ignored if no long position is existing.

        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