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

StopLoss Every Tick

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

    StopLoss Every Tick

    Hello,

    I have the problem, that my stopLoss isnt triggered since the bar has closed; because of that some Losses ar unnormal big.

    What i have to do?
    I tried it with setting CalculateOnBarClose to false, but nothing happens?
    Do i have to change the
    "UpdateOnBar()" method to another ?

    Isnt it possible in Ninja Trader to get stopped out if Calculating on Bar Close?

    best regards
    Last edited by FX90903; 03-06-2015, 08:04 AM.

    #2
    Hello FX90903,

    Are you testing this in real-time or with historical data / backtest?

    In realtime, the order will be stopped when the price is hit in real-time.

    In historical, Calculate on bar close is always True.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I backtest not in Realtime.

      I saw this post:
      You can submit orders to different Bars objects. This allows you the flexibility of submitting orders to different timeframes. Like in live trading, taking entry conditions from a 5min chart means executing your order as soon as possible instead of waiting until the next 5min bar starts building. You can achieve this by


      But the example isnt working. Is this way possible?

      best regards

      Comment


        #4
        Hello FX90903,

        Thank you for your response.

        The example would work for the Exit() and Enter() methods but not the Set() methods for stop loss and profit target.

        If you want to submit to a smaller time frame use an Exit() method and set the barsInProgressIndex to the smaller series BarsInProgress.

        Please visit the following link for more information: http://www.ninjatrader.com/support/h...nstruments.htm

        Please let me know if I may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kempotrader, Today, 08:56 AM
        0 responses
        6 views
        0 likes
        Last Post kempotrader  
        Started by kempotrader, Today, 08:54 AM
        0 responses
        4 views
        0 likes
        Last Post kempotrader  
        Started by mmenigma, Today, 08:54 AM
        0 responses
        2 views
        0 likes
        Last Post mmenigma  
        Started by halgo_boulder, Today, 08:44 AM
        0 responses
        1 view
        0 likes
        Last Post halgo_boulder  
        Started by drewski1980, Today, 08:24 AM
        0 responses
        4 views
        0 likes
        Last Post drewski1980  
        Working...
        X