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 trilliantrader, 04-18-2024, 08:16 AM
              5 responses
              22 views
              0 likes
              Last Post trilliantrader  
              Started by Davidtowleii, Today, 12:15 AM
              0 responses
              3 views
              0 likes
              Last Post Davidtowleii  
              Started by guillembm, Yesterday, 11:25 AM
              2 responses
              9 views
              0 likes
              Last Post guillembm  
              Started by junkone, 04-21-2024, 07:17 AM
              9 responses
              68 views
              0 likes
              Last Post jeronymite  
              Started by mgco4you, Yesterday, 09:46 PM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Manfred  
              Working...
              X