Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error Message Entry-Limit-OCO

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

    Error Message Entry-Limit-OCO

    Hello,

    for not missing entries I do for short-entries a limit at the bid (and not anymore at the ask) and for long-trades a limit at the ask (instead of the bid).

    Today after closing a trade there appeared the 2 attached messages. I do not understand what caused this, when logic works then it has to work always, no?

    And I do not understand why in the message is "buy-stop".... in the code I have limit for short and long. What might have caused the error so that I can try to avoid this.

    Thank you!
    Tony
    Attached Files
    Last edited by tonynt; 09-03-2019, 12:32 AM.

    #2
    Hello tonynt,

    Thanks for your post.

    The stop order is being rejected as its price is incorrect (according to the message you see). When the stop order is rejected then that is contributing to the OCO error so you need to fix the stop order price value and ensure it is correct for the current price.

    Comment


      #3
      Hello,

      thank you for your reply. When having short and long entrystopmar****rders is there to add something in the code for having both working? When condition for buystopmarket is true the order is working but the sellstopmar****rder is not placed when conditions for sellstopmar****rder is true. Same when the condition for the sellstopmar****rders is true and the order is working then the buystopmarket is not placed when condition for buystopmarket is true. Seems form the script can only be one direction be working. What has to be added please for having both?

      Thank you!
      Tony

      Comment


        #4
        Hello,

        thank you for your reply. When working with stopmar****rders I want to ask if there is something to add in the code so that it works ok because in my script it does the sellstopmar****rder when condition is true but then it does not place the buystopmar****rder when its conditions are true and vv. What has to be added to a script stragegy so that both orders can be placed from the script when conditions are true please.

        Thank you!
        Tony

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        116 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        61 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        40 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        44 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        82 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X