Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stops explained

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

    Stops explained

    Hello all,

    Is there a reference to which you can point me that a) explains how stops work in NT, and b) explains the ways to control the behavior of stop entries and exits?

    I'd like to understand what triggers a trade on EnterLongStop(), EnterShortStop(), ExitLongStop() and ExitShortStop().

    Some scenarios I'd like to code are:
    1. Entering a long (short) position at the offer (bid) if a trade has occurred above (below) a given price.
    2. Entering a long (short) position at the offer (bid) if a trade has occurred at or above (below) a given price.
    3. Working a bid (an offer) if my stop price goes offered (bid).

    #2
    Hello Kaydgee,

    There are buy stops and sell stops. You will use either one depeding on the statements used.

    Once the last traded price = the stop price, orders are submitted as market orders.

    There isn't a reference sample exactly on what you want, but the following links to method signatures and OnMarketData event handler should help:
    Close
    GetCurrentAsk()
    GetCurrentBid()
    OnMarketData()
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thank you, Ryan.

      Is it safe to say that one can accomplish the same effect as a stop order by continuously polling prices through the OnMarketData() method and then issuing a market order upon the appropriate "stop" trigger?

      Comment


        #4
        Yes, that's essentially how it's working. The main difference here is the location of the orders. In your example, the order is not submitted until the conditions are satisfied within your local NinjaTrader. When you submit a stop order using EnterShortStop, ExitLongStop, etc, your order is typically held with the broker or exchange.

        http://www.ninjatrader-support.com/vb/showthread.php?p=27076#post27076
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X