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 llanqui, 03-05-2025, 06:03 AM
        17 responses
        105 views
        0 likes
        Last Post bltdavid  
        Started by IDumpedCinderella, 03-12-2025, 11:34 PM
        2 responses
        25 views
        0 likes
        Last Post b.j.d
        by b.j.d
         
        Started by carnitron, 02-26-2025, 10:00 PM
        6 responses
        54 views
        0 likes
        Last Post carnitron  
        Started by davian05, 12-31-2024, 05:05 AM
        10 responses
        243 views
        1 like
        Last Post workfornowork  
        Started by timmbbo, 06-06-2022, 09:12 PM
        4 responses
        282 views
        0 likes
        Last Post Fertryd2  
        Working...
        X