Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ABSTRACT: Exiting Positions with an active Stop Loss?

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

    ABSTRACT: Exiting Positions with an active Stop Loss?

    Hello,
    Im looking for an abstract answer.
    How come i can:
    Close an EnterLong(signal) with ExitLong(signal),
    BUT
    Once i call SetStop and then EnterLong(signal) with ExitLong(signal)​ i now cant Market close and cancel stop autmatically?
    What do i have to do?


    ** I have a work around for this due to my system, but i noticed it and think it might help novices that are trying to do some intermediate level order management**
    Last edited by NUVERSA; 07-13-2024, 01:42 PM.

    #2
    Hello NUVERSA,

    I would suggest adding prints into the exit condition in that use case to make sure it is being called and also use TraceOrders. the order handling rules which ignore orders to prevent unwanted positions do not apply to market exit orders. If you call ExitLong while in a position that has a stoploss active the stoploss would be canceled when the position it targets is closed.



    Comment


      #3
      YES turns out it was memory leak trying destroy the very fabric of my existence.
      DONT FORGET TO NULL STUFF

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      134 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      118 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X