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 Perr0Grande, Today, 08:16 PM
        0 responses
        2 views
        0 likes
        Last Post Perr0Grande  
        Started by elderan, Today, 08:03 PM
        0 responses
        3 views
        0 likes
        Last Post elderan
        by elderan
         
        Started by algospoke, Today, 06:40 PM
        0 responses
        10 views
        0 likes
        Last Post algospoke  
        Started by maybeimnotrader, Today, 05:46 PM
        0 responses
        9 views
        0 likes
        Last Post maybeimnotrader  
        Started by quantismo, Today, 05:13 PM
        0 responses
        7 views
        0 likes
        Last Post quantismo  
        Working...
        X