Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simple Exit Strategy Problem

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

    Simple Exit Strategy Problem

    I can't get this to work testing in playback mode (if that matters). From what I understand this should exit any long position I have in the chart where this strategy is running. Can anyone tel me why it's not working?

    Click image for larger version

Name:	image.png
Views:	71
Size:	14.6 KB
ID:	1330092

    Code:

    Click image for larger version

Name:	image.png
Views:	68
Size:	44.1 KB
ID:	1330093

    Click image for larger version

Name:	image.png
Views:	66
Size:	28.7 KB
ID:	1330094







    #2
    Do you have an entry, or am I missing it? This only works for entries from the strategies. Entries taken manually will not be exited with a strategy.

    Comment


      #3
      Hello fullmoonguru,

      Strategies can only manage orders that they submitted, you would also need to have the strategy submit the original entry. For manual entries you would need to manually close the position.

      Comment


        #4
        Ugh, that's not convenient. I was assuming it could/would know if I was in a position. I do use a strategy to enter but it's not the same one.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        72 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        39 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 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