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 CortexZenUSA, Today, 12:53 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by CortexZenUSA, Today, 12:46 AM
        0 responses
        1 view
        0 likes
        Last Post CortexZenUSA  
        Started by usazencortex, Today, 12:43 AM
        0 responses
        5 views
        0 likes
        Last Post usazencortex  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        168 responses
        2,265 views
        0 likes
        Last Post sidlercom80  
        Started by Barry Milan, Yesterday, 10:35 PM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X