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:
- Click Tools -> Export -> NinjaScript...
- Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
- Click the 'Export' button
- Enter a unique name for the file in the value for 'File name:'
- Choose a save location -> click Save
- Click OK to clear the export location message
- (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
Once exported, please attach the file as an attachment to your reply.
Comment