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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      53 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      70 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X