Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RealTime Trades are recorded as all Longs or Shorts for a reversal strategy

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

    #16
    Hello lavalampmj,

    To confirm, you have changed the logic of the script to place an exit order for the entry and then a new entry to enter the opposite position, and the trades are showing as paired correctly, but are incorrectly showing as all shorts or all longs, is this correct?

    May I test the script to ensure there are exit orders for each entry and to reproduce the 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.


    Once exported, please attach the file as an attachment to your reply.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      Yes your summary is correct. Can I send the code via email?

      Comment


        #18
        Hello lavalampmj,

        If its a private strategy, creating a simple reduced test script is preferred.
        This could be simple and reverse direction every bars to demonstrate the behavior without any extra logic.

        If you would prefer to have a private conversation, please send an email to platformsupport [at] ninjatrader [dot] com.
        In the email please include a link to this forum thread.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        94 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        81 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        75 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Working...
        X