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 techgetgame, Today, 11:42 PM
        0 responses
        7 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Today, 11:36 PM
        0 responses
        1 view
        0 likes
        Last Post sephichapdson  
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,612 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Working...
        X