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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        84 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        90 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        70 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        86 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        63 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X