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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      79 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 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
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X