Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multiple entries per direction

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

    multiple entries per direction

    Hi

    I'm trying to double a good trade in my strategy by copying and pasting that command in the C# programming window. I allow enough entries per direction in the analyzer, but it doesn't send out two of those orders. When I double the position size, it obviously shows up in the analyzer, but I would like to have this same effect by sending out a double order so that I can accurately see the number of orders in the results.
    How can I send out the same order twice? What am I missing?


    Thank you.

    #2
    weirdo, are you using different signal names? Have you tried both settings for Entry handling? If you set TraceOrders = true in the Initialize() section, the output window will tell you why your orders are being ignored.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Hey Austin,

      I tried both 'all entries' and 'unique entries' in the entry handling and it's the same.
      What are signal names?
      What I did was unlock the code and I am in the C# programming window. I don't think I see where the Initialize () section or TraceOrders is. Can you please explain that and what the output window is?

      Thank you very much.

      Comment


        #4
        When you create orders, the signal names are used to identify each order. The output window can be opened by going to Tools -> Output Window. Once you set TraceOrders = true and run the strategy (either as a backtest or a live test), the TraceOrders information will be sent to the output window.

        Would you mind posting the code you're using so we can see if there is anything else going on in your strategy that could be preventing your second orders?

        EDIT: Forgot to attach the screenshot showing the Initialize() section.
        Attached Files
        AustinNinjaTrader Customer Service

        Comment


          #5
          Hey Austin,

          I'm getting for the reason it was ignored "Ignore order amendment......'order already has this stop price/limit price/quantity'
          How do I make separate signal names?

          Thanks

          Comment


            #6
            weirdo, you just have to put in different strings for the orders. In the following code, each order is for one contract, but they have different signal names:
            Code:
            EnterLong(1, "signal name 1");
            EnterLong(1, "signal name 2");
            Attached Files
            AustinNinjaTrader Customer Service

            Comment


              #7
              Thanks Austin, that worked great.

              Comment


                #8
                Glad to hear you've got it working now. Please let us know if you have any other questions.
                AustinNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by trilliantrader, 04-18-2024, 08:16 AM
                4 responses
                18 views
                0 likes
                Last Post trilliantrader  
                Started by mgco4you, Today, 09:46 PM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by wzgy0920, Today, 09:53 PM
                0 responses
                10 views
                0 likes
                Last Post wzgy0920  
                Started by Rapine Heihei, Today, 08:19 PM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by Rapine Heihei, Today, 08:25 PM
                0 responses
                10 views
                0 likes
                Last Post Rapine Heihei  
                Working...
                X