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

round off at setprofit with calculation.percent

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

    round off at setprofit with calculation.percent

    Dear all

    How calculate NT8 the Round off for setprofittarget() using calculation mode percent.

    For example i would like to obtain a profit of 0.1% of ES futures. the current price is 2470 points and the result is 2.47. the minimum tick is 0.25.

    What is the profit in this case.

    best regards

    #2
    Hello memonic,

    Thank you for the post.

    I am reviewing your inquiry and will be back with a reply shortly.

    I look forward to assisting further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hello memonic,

      Thank you for your patience.

      When using percent as a calculation mode, 1 will represent %100. So for %1 of the ES, you will add 0.01 as a parameter in SetProfitTarget().

      Here is a link to our help guide on SetProfitTarget() parameters.


      If we may be of any further assistance, please let us know.
      Chris L.NinjaTrader Customer Service

      Comment


        #4
        Helo Chris L.

        Thanks for your answer. The round off of the minimum tick how is procesed?. For example 1% of profit for Es at price of 2470. the profit is 2.47, this value is not divisible by the minimum tick 0.25

        best regards

        Comment


          #5
          Hello,

          Thank you for your patience.

          Percent mode should only be used on instruments where there point value = 1, e.g. Stocks.

          With the point value of the ES is 50, so using percent mode can produce unexpected/confusing results.

          If there is anything else I may assist with please let me know.
          Chris L.NinjaTrader Customer Service

          Comment


            #6
            How can i made a stoploss dependent of the future price?.

            Comment


              #7
              Hello memonic,

              Thank you for the reply.

              You may use the Price parameter to specify your profit target. With this parameter, you will specify an absolute price for your stop loss/profit target.

              For example, if the ES is currently at 2470, my profit target will be 2471 and stop loss will be 2469 (just an example).

              If questions come up or if we may be of any further assistance, please let us know.
              Chris L.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by algospoke, Yesterday, 06:40 PM
              2 responses
              19 views
              0 likes
              Last Post algospoke  
              Started by ghoul, Today, 06:02 PM
              3 responses
              14 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by jeronymite, 04-12-2024, 04:26 PM
              3 responses
              45 views
              0 likes
              Last Post jeronymite  
              Started by Barry Milan, Yesterday, 10:35 PM
              7 responses
              21 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Started by AttiM, 02-14-2024, 05:20 PM
              10 responses
              181 views
              0 likes
              Last Post jeronymite  
              Working...
              X