• 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 lavalampmj, Today, 05:25 PM
          0 responses
          5 views
          0 likes
          Last Post lavalampmj  
          Started by Antares66, Today, 05:19 PM
          0 responses
          2 views
          0 likes
          Last Post Antares66  
          Started by jmneto, Today, 05:18 PM
          0 responses
          6 views
          0 likes
          Last Post jmneto
          by jmneto
           
          Started by Bobbyj78, Today, 02:21 PM
          2 responses
          15 views
          0 likes
          Last Post bltdavid  
          Started by EnveousColnago, Today, 02:10 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Ariana  
          Working...
          X