Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

different historical and realtime order contracts

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

    different historical and realtime order contracts

    Hello,

    When I test my strategy in the historical all the orders are always with only 1 contract, but when I test my strategy in realtime sometime the orders are with more (2) contracts.

    I want that every order are with only 1 contrat.
    I use EnterShort(1, "S") and EnterLong(1, "L");

    I use the default strategy parameters configuration.

    should I change something in the default parameter configuration?

    Best Regards
    David

    #2
    Hello David,

    Can you show a screenshot of the Strategy Performance Orders tab showing that trades with a quantity of 2 are being submitted?

    May I test your script on my end?

    If not, may I have an example script that is able to demonstrate the behavior?

    To export a NinjaTrader 7 NinjaScript do the following:
    1. Click File -> Utilities -> Export NinjaScript
    2. Enter a unique name for the file in the value for 'File name:'
    3. Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
    4. Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message


    By default your exported file will be in the following location:
    • (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript\<export_file_name.z ip>


    Below is a link to the help guide on Exporting NinjaScripts.
    http://www.ninjatrader.com/support/h...nt7/export.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello, I sent you an private email.

      Comment


        #4
        Hello David,

        Is this is private and something that cannot be shared, please send an email to platformsupport [at] ninjatrader [dot] com.

        In the email include a link to this forum thread as well as the requested items.

        This is so that we may continue to track your inquiry and ensure we are providing a response in a reasonable amount of time.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        86 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X