Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Put order in High[1]

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

    Put order in High[1]

    I have a strategy with a button that places an order at High[1] + 2 ticks. If I want to place the order at the high of the current bar I have to wait for it to finish and sometimes the price goes away. How could I press the button while the bar[0] is being created and the order is placed when it closes at its high + 2 ticks? Thanks.

    #2
    Hello julifro,

    Below is a link to an example of placing an order when clicking a button. See regions 'Use case 2, submitting a limit order with limit price updated to indicator plot value'.


    For the bar price to update before the bar closes, Calculate must be set to OnPriceChange.

    TriggerCustomEvent() must be called to synchronize the bar series from the button Click event handler method.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X