Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

also number of contrat

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

    also number of contrat

    hello how to also set the contract number in strategie

    #2
    Hello Yesiam,

    You can hard code the Quantity for any order in the Enter method overload parameters.

    For example:

    EnterLong(2, "myEntry");

    EnterLong(int quantity, string signalName)

    This would place an order with a contract size of 2.



    You can also set the Default quantity when starting a script in the Strategy Parameters.
    To do this set 'Set order quantity' to 'Default Quantity', and set a quantity.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you , how to deal with the strategy say " remit"

      Comment


        #4
        in c# than you

        Comment


          #5
          Hello Yesiam,

          I am not understanding.

          Can you clarify your inquiry?

          Are you receiving an error message?
          If so, please include the error message.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            I want to remit all the loss after a gain I these not the coded in ninjascript

            Comment


              #7
              Hello Yesiam,

              Thank you for your response.

              Please provide a bit more detail on this. Are you looking to measure the gain to ensure you gain back a previous loss?

              I look forward to assisting you further.

              Comment


                #8
                No example I lost 8 position
                Then after these 8 positions I won 1 position
                I remit these 8 losses
                After a gain
                I want to do a similar thing at her

                With ninja script i am not able to do a thing

                Comment


                  #9
                  Hello Yesiam,

                  Thank you for your response.

                  Please see my response at the following link: http://ninjatrader.com/support/forum...86&postcount=4

                  You can specify the order quantity in the order methods.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by DJ888, 04-16-2024, 06:09 PM
                  6 responses
                  18 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by Jon17, Today, 04:33 PM
                  0 responses
                  1 view
                  0 likes
                  Last Post Jon17
                  by Jon17
                   
                  Started by Javierw.ok, Today, 04:12 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post Javierw.ok  
                  Started by timmbbo, Today, 08:59 AM
                  2 responses
                  10 views
                  0 likes
                  Last Post bltdavid  
                  Started by alifarahani, Today, 09:40 AM
                  6 responses
                  41 views
                  0 likes
                  Last Post alifarahani  
                  Working...
                  X