Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Creating ATM order -2 ticks

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

    Creating ATM order -2 ticks

    Hello,
    I am wanting to create an ATM limit order to be placed 2 ticks away from current price in the current bar. There is to be no reference to previous bars lows and highs.
    Is there a command to reference the current price and then place the order 2 ticks from that?
    Any help would be greatly appreciated.


    THanks

    #2
    Hello jthom,

    I am not sure if I follow. Are you referring to an entry order that has an ATM strategy attached? If so, unfortunately this is not supported upon trading manually; you would need to submit the entry order manually 2 ticks away. You could create an automated strategy that will submit the entry order as per your conditions. More information can be found at the link below.


    If you like the profit target or stop loss to be submitted 2 ticks away from the entry price, you would enter a value of 2 in your ATM strategy. More information can be found at the following link.

    Comment


      #3
      Hey,

      Eventually worked it out.
      AtmStrategyCreate(Action.Buy, OrderType.Limit, Close[0] -2 * TickSize, 0, TimeInForce.Day, orderId, "Blah Blah", atmStrategyId);

      Works only from close price of previous bar. Is it possible to program a cancelation of the order (after 30 seconds) if not filled?

      Comment


        #4
        You can let the strategy run on CalculateOnBarClose = false so it updates tick by tick and not only on the close (realtime use only) -



        For the cancellation, you could add a 30 second series to access its timestamps (Times) or use a custom event / timer -

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        58 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        39 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        19 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        21 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        51 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X