Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongStop

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

    EnterLongStop

    Hello. I'm beginning to use EnterLongStop and I don't know if I understand their behaviour. I think that when I put a EnterLongStop with a stop price over the actual price if the market goes to the stop price then it put a long order at this price. Moreover, when a candle finishes the LongStop order is cancelled, then if I want to maintain the order I must put the EnterLongStop another time, with the same stop price or another if I want. Is this true?

    It happens that I put the order every candle and when the price is touched sometimes it cancels the order, another it works well and another it works but it filled in the same instant. What can I am making bad?

    Thanks for all.

    #2
    Hello alibanez,

    Yes, the default behavior for orders is that they are cancelled if not they are not filled on the bar they're submitted to. You can resubmit the order each bar, or use the advanced overload that allows liveUntilCancelled.

    EnterLongStop(int barsInProgressIndex, bool liveUntilCancelled, int quantity, double stopPrice, string signalName)

    To track what your strategy is doing with orders, add TraceOrders = true; to your Initialize() method and view with Tools > output window.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    382 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    1 view
    0 likes
    Last Post oviejo
    by oviejo
     
    Started by pechtri, 06-22-2023, 02:31 AM
    10 responses
    125 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Yesterday, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Working...
    X