Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy defining stops

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

    Strategy defining stops

    I have a EnterLongStopLimit . I was wondering if I have to change the price point on the EnterLongStopLimit how do I change the price.

    EnterLongStopLimit( nNumberOfContracts,MyCloudLine[0], Low[0] - dStopLossFromChartinTicks*TickSize, "Long");

    If I leave this statement the order will work. A few bars later it will cancel the order. The bar after it will re submit.

    If the price point ,MyCloudLine[0] changes in price do I cancel my order and resubmit or do I just use the same statement.

    EnterLongStopLimit( nNumberOfContracts,MyCloudLine[0], Low[0] - dStopLossFromChartinTicks*TickSize, "Long");



    #2
    Now I have another question

    This Scenario works
    EnterLongStopLimit(nNumberOfContracts,MyCloudLine[0],MyCloudLine[0] - nBaseLineTickOffset*TickSize,"BaseLineLong");
    vs
    This gives an error.
    EnterLongStopLimit(nNumberOfContracts,MyCloudLine[0],Low[0] - nBaseLineTickOffset*TickSize,"BaseLineLong");

    Is it better to wait the order to be filled and then add a stop?

    When the order is filled I want the stop to be the candle low - 3 Ticks;

    Comment


      #3
      Hi ballboy11, thanks for your question.

      If you call the same order method with the same signal name the order will be "Changed" to the new price rather than "Canceled, then replaced".

      It appears you are talking about a stop-loss order but the method posted is submitting a Buy Stop Limit order which would be different than a Stop Loss that exits a position for you. A Buy Stop Limit order must have a stop and limit price above the market.

      We have an example here that shows how to apply protective orders to open positions:


      Please let me know if I can assist any further.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X