Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ErrorMessage Sellstop

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

    ErrorMessage Sellstop

    Hello,

    I have error messages when placing a sellstoplimit. Example here: price YM was 26754 when I wanted to place the sellstoplimit. And in the attached message it shows 26747 x 26749 which is correct from my code "entryOrderSbo1a=EnterShortStopLimit(0,true,1,shor tlinevalue, shortlinevalue-2*TickSize, "Sbo1a");" (shortlinevalue is the red dashed line with value 26749.)

    Why appears an error message with "limit price cant be greater than stop price" please?

    Maybe I have not fully understood the sellstop and buyorder logic for coding, sorry if so, and thank you for showing me.

    Thank you!
    Tony
    Attached Files
    Last edited by tonynt; 09-06-2019, 04:12 AM. Reason: correction

    #2
    Hello tonynt,

    Thanks for your post.

    In the case of the EnterShortStopLimit(), as the error message advises, you would need to set the limit price to be less than or equal to the stop price. In reviewing the help guide example for EntershortStopLimit() it appears to show the opposite, so I will submit a change to the help guide example.

    For the EnterLongStopLimit(), the limit price would need the greater than or equal to the stop price.

    Comment


      #3
      Hello,

      thank you forr your reply. I want to ask about using sellstopmarket order and buystopmar****rder in a script strategy. When my conditions are true for a sellstopmar****rder then this is place but when later the conditions for buystopmar****rder is true then there is no order placed. Same when condition for buy... is true first then this order is place but then the sell.... is not place with conditions true in the script. What is necessary to add to a script strategy so that this is working for both please.

      Thank you!
      Tony

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      23 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      120 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X