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 kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      12 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      59 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      41 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      47 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      38 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X