• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.

    http://ninjatrader.com/support/helpG.../enterlong.htm

    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.
    http://ninjatrader.com/support/helpG...tegyProperties
    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.
              Patrick H.NinjaTrader Customer Service

              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.
                  Patrick H.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by GTBrooks, Today, 02:44 PM
                  0 responses
                  4 views
                  0 likes
                  Last Post GTBrooks  
                  Started by GLFX005, Today, 12:22 PM
                  3 responses
                  40 views
                  0 likes
                  Last Post GLFX005
                  by GLFX005
                   
                  Started by AspenHiker, Today, 08:37 AM
                  1 response
                  12 views
                  0 likes
                  Last Post NinjaTrader_Kate  
                  Started by MartinT, Yesterday, 01:12 PM
                  3 responses
                  16 views
                  0 likes
                  Last Post MartinT
                  by MartinT
                   
                  Started by caveat_lector, Today, 11:58 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_Heath  
                  Working...
                  X