Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter limit market

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

    Enter limit market

    Hi, i want to put an limit order that when touched by the price generates a market order . FOr example: price is 1400 i put a limit buy at 1390. when the prices reaches 1390 it generates a market porder, is it possible?
    because i was trying to do it with just EnterLong/shortLimit but sometimes it gives me this error. But it was just a enterlonglimit so how is that possible?
    Attached Files
    Last edited by AlessioCianini12; 02-01-2022, 01:36 PM.

    #2
    Hello AlessioCianini12,

    Thank you for your post.

    You could simply submit a market order when the current price reaches your specified entry point rather than using a limit or stop limit order.

    This looks like a problem with a stop or target being submitted to the wrong side of the market when an entry is made, however. You can try to mitigate this by moving your stops further from the entry price to try to avoid situations in which the price moves quickly as the entry fills, but there's always the possibility that this could still occur. You can also consider changing your RealTimeErrorHandling to RealtimeErrorHandling.StopCancelCloseIgnoreRejects and monitoring for a rejection in OnOrderUpdate(). You can then program in your own handling for when a stop is rejected, possibly resubmitting the stop at a different level or just submitting a market order to close the position in question.



    Please let us know if we may be of further assistance to you.

    Comment


      #3
      ok but when something happen i put a limit entry buy order 3 tiks under the current price. how can i do in order to use a market order?

      Comment


        #4
        Hello AlessioCianini12,

        Thank you for your reply.

        You would simply want to save the Close[0] price at the time your condition would normally place the limit order to a variable, then check if the current Close price is less than or equal to that variable's value. If it is, the limit order would have been hit, so you can then submit a market order.

        Please let us know if we may be of further assistance to you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        65 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        139 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 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