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