Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Two Stop Questions

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

    Two Stop Questions

    I have two questions about placement of stops:

    1. What is the reason why NT cannot place a stop loss and a trailing stop on the same order? Is this something that may be added in the future? It would be great to be able to set a stop loss, and then set a trail stop under the stoploss.

    2. Yes. I know you can code your own fancy stop loss mechanisms. I have tried this by placing a stop loss via SetStopLoss as a function of price, PNL, etc, etc. However, I have found that placing/updating a stop loss every bar (and certainly every tick) is hugely memory intensive. Not only that, but it seems to be very IO intensive ( gauging by the sound of my hard drive during an active order). Why is this? Is it the tick-by-tick test ofthe stop? Any suggestions? Doing a year long backtest or Market Replay of six months brings my system down if I dynamically place the stop loss. It is almost like the prior SetStopLoss still exists and the memory consumption grows without bounds.

    #2
    Hi Serac, for your first question, this is unfortunately a current limitation in the managed mode, the Set() stops would be assigned per signal name / order and thus only one method could be working on it at any time - I will forward your feedback to product management though, so it could be considered for future version of the platform.

    For the second issue, I would need to give your code a run here to see how it behaves - have you considered recoding the logic so the Set method to change / update the stop would only be called if the stop value / price changed at all? This would likely decrease the processing needed.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    21 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X