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 lorem, Today, 09:18 AM
        1 response
        4 views
        0 likes
        Last Post lorem
        by lorem
         
        Started by bmartz, Today, 09:30 AM
        0 responses
        3 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by GussJ, 03-04-2020, 03:11 PM
        14 responses
        3,244 views
        0 likes
        Last Post GussJ
        by GussJ
         
        Started by ArkansasClint, Today, 09:28 AM
        0 responses
        0 views
        0 likes
        Last Post ArkansasClint  
        Started by hazylizard, Today, 08:38 AM
        4 responses
        12 views
        0 likes
        Last Post hazylizard  
        Working...
        X