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

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.


    Are you able to reproduce this behavior with a trailing example that I've linked below?
    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 Rapine Heihei, Today, 08:19 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by Rapine Heihei, Today, 08:25 PM
          0 responses
          6 views
          0 likes
          Last Post Rapine Heihei  
          Started by f.saeidi, Today, 08:01 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by Rapine Heihei, Today, 07:51 PM
          0 responses
          8 views
          0 likes
          Last Post Rapine Heihei  
          Started by frslvr, 04-11-2024, 07:26 AM
          5 responses
          98 views
          1 like
          Last Post caryc123  
          Working...
          X