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

How to set a risk of 1% of the account size on each trade?

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

    How to set a risk of 1% of the account size on each trade?

    Hi!

    How could I set a risk of 1% of the account size on each trade?

    I saw that the enterLong and enterShort functions have a parameter named quantity, but i don't understand what it really represents. What i would like to achieve is controlling the size of the positions in dollar. Is there a way to know the right quantity to input for a wanted dollar size ? For example, for an account of 1000$, enter a long of 10$ precisely (risking 1% per trade), and increase position sizes as the account grows.

    #2
    Hello havy.tom24,

    The quantity for an order is the number of contracts for that order.

    Calculating a number of contracts based on account size or another value would require custom code to calculate this.


    The Instrument.MasterInstrument.TickSize and .PointValue can be used. For example on the ES the TickSize is .25 and the point value is $50, making each tick $12.5.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks your reply,

      I understand Tick value, but in the case of BTC, I still don't get how to know how many tick values is 1 contract. I need to know how much money I risk when I open a position (long or short) of quantity 1. Could you please clarify that point?

      Comment


        #4
        Hello havy.tom24,

        The two are not related. A Tick can refer to the smallest price increment an instrument can change and can also refer to information about a trade occurring (real-time incoming ticks).

        A contract size, or quantity, is the number of shares. This is not a price.

        The number of shares multiplied by the point value would show how much gain or loss for those shares as the price goes up and down.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Ok, thank you. Have a good day.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jeronymite, 04-12-2024, 04:26 PM
          2 responses
          28 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by Mindset, 05-06-2023, 09:03 PM
          10 responses
          262 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by michi08, 10-05-2018, 09:31 AM
          5 responses
          741 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by The_Sec, Today, 02:29 PM
          0 responses
          2 views
          0 likes
          Last Post The_Sec
          by The_Sec
           
          Started by tsantospinto, 04-12-2024, 07:04 PM
          4 responses
          62 views
          0 likes
          Last Post aligator  
          Working...
          X