Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

ENtry stop order

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

    ENtry stop order

    Please could you explain if a stop order used for an entry is trigered on the current bar or on the next bar.
    Also programing a strategy I do not see the difference between a market if touch order and a stop order
    Thank you very much

    #2
    Hello Kamala,

    Thank you for your post.

    Order are submitted on the close of the bar when processing over historical data or when you run the strategy with the CalculateOnBarClose option set to True. If you set CalculateOnBarClose to False then the strategy will calculate intra-bar on real-time data and therefore submit any orders in real-time as intra-bar as well.

    Stop Market orders will trigger when the price meets them and then they become a Market Order.
    Market If Touch are orders that become market when the price touches them.
    A Sell Stop Market Order must be submitted below the current price and a Sell Market If Touch order must be submitted above the current price. Vice Versa for Buy orders.

    Please let me know if you have any questions.

    Comment


      #3
      Thank you for your reply
      Please could you tell me where do I set it to true or false?
      Thanks a lot

      Comment


        #4
        Hello Kamala,

        Thank you for your response.

        CalculateOnBarClose is used in NinjaTrader 7 and Calculate is used in NinjaTrader 8. You can find details on both at the following links.

        CalculateOnBarClose: https://ninjatrader.com/support/help...onbarclose.htm
        Calculate: https://ninjatrader.com/support/help.../calculate.htm

        Please let me know if you have any questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by traderqz, Today, 12:06 AM
        10 responses
        18 views
        0 likes
        Last Post traderqz  
        Started by algospoke, 04-17-2024, 06:40 PM
        5 responses
        46 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by arvidvanstaey, Today, 02:19 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Zachary  
        Started by mmckinnm, Today, 01:34 PM
        3 responses
        5 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by f.saeidi, Today, 01:32 PM
        2 responses
        9 views
        0 likes
        Last Post f.saeidi  
        Working...
        X