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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      59 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      133 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X