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.

    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        57 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        36 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        20 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        9 views
        0 likes
        Last Post cre8able  
        Working...
        X