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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        67 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        36 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        61 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X