• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error - Playback - Trail Stops

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

    Error - Playback - Trail Stops

    Hello,

    I have a strategy that works fine at regular speed 1x. However when i am playing this strategy back at higher speed > 10x because i have a trail stop, it errors out with attached messages. How can i prevent it from error-ing out and also capture that error and continue the strategy without it being disabled ?

    I have a feeling it's because of the trail stops not able to move as fast as the price with the increased playback speed. Can you suggest or point me in the right direction on how to prevent this from happening.


    Thanks,

    Attached Files

    #2
    Hello priceisking,

    Can you provide a reduced version of this script with just the necessary logic to reproduce this behavior?

    To export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:
    1. Click Tools -> Export -> NinjaScript...
    2. Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
    3. Click the 'Export' button
    4. Enter a unique name for the file in the value for 'File name:'
    5. Choose a save location -> click Save
    6. Click OK to clear the export location message
    By default your exported file will be in the following location:
    • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
    Below is a link to the help guide on Exporting NinjaScripts.
    http://ninjatrader.com/support/helpG...-us/export.htm

    Are you able to reproduce this behavior with a trailing example that I've linked below?
    https://ninjatrader.com/support/foru...269#post802269
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I've sent you an email with the zip file. Please confirm you received it. I have coded the logic with about 11 levels of trails instead of auto trailing.

      I will try to reproduce the behavier with the link and let you know on that front as well.

      Comment


        #4
        Hello priceisking,

        As you would like to take this conversation private, I will respond to your email once I see this and continue conversing in email.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by saeed, Today, 12:32 PM
          3 responses
          33 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Started by motog4, Today, 11:42 AM
          3 responses
          20 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Started by derivtrader, Today, 11:20 AM
          5 responses
          27 views
          0 likes
          Last Post derivtrader  
          Started by TAJTrades, Today, 10:34 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChrisL  
          Started by timcjpfx, Today, 10:20 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X