Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterLongStopMarket State

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

    EnterLongStopMarket State

    Hi

    I´m working on a strategy that if a certain parameter is met it enters a EnterLongStopMarket or EnterShortStopMarket for a period of bars at a certain number of ticks offset from the close of the bar, i want to know if there´s an state that can help me to avoid getting more signals while the EnterLongStopMarket or EnterShortStopMarket are placed, I already got to avoid signals while it is long or short with the MarketPosition.Long or short, but not the EnterLongStopMarket or EnterShortStopMarket when it´s submitted and it´s waiting to be touched.

    Thank you

    #2
    Hello henryd333,

    When the order is submitted is this being assigned to a variable in OnOrderUpdate()? Does the logic you want to suppress while the order is open have in the conditions that the order must not be null and in OrderState.Working or OrderState.Accepted?

    Below is a link to examples.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea

      This logic in onbarupdate. Does it need to be on Onorderupdate?

      Comment


        #4
        Hello henryd333,

        The order object updates from OnOrderUpdate and this is where you will need to assign this to a variable.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X