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

Strategy Wizard, Double Parameter not working

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

    Strategy Wizard, Double Parameter not working

    I entered a relatively simple strategy using the strategy wizard. When I go to implement the strategy and all the default inputs come up, it shows my profit target and stop loss at 1 rather than the 9% and 5% I respectively set it at. When I change this number, it reverts back to 1. Thoughts on how to solve?

    #2
    When using CalculationMode.Percent, a value of 1 would be 100%.

    If you intend to have your stop/target at 9%, please use a value of 0.09
    MatthewNinjaTrader Product Management

    Comment


      #3
      I am using a variable "ProfitTarget" and "StopLoss" with the .09 and .05 values. I don't have a 1 entered for the calculationmode.

      Comment


        #4
        Hello,

        Thanks for the clarification - please double check your User Defined Inputs from the Strategy Wizard and ensure the Min. value is less than 1. Please try using a value of 0 here instead and it should accept an input of .09 or .05
        MatthewNinjaTrader Product Management

        Comment


          #5
          Got it... thank you.

          Comment


            #6
            I cannot get my strategy to draw the max when running my strategy nor the arrow I would like to see when an entry signal is taken. Can you take a look?

            I am looking for the max for the past 2 years or 504 days.
            Attached Files

            Comment


              #7
              Does it not draw at all? Or are you only seeing the most recent occurrence drawn?

              Are there any errors listed on the Log tab of the Control Center related to this strategy?
              MatthewNinjaTrader Product Management

              Comment


                #8
                I don't see anything at all... maybe I am missing something. I am very new to this platform and have next to no programming experience. I don't see the 2 year high line nor do I see the arrow that I designate to fire when my entry position fires as well.

                Comment


                  #9
                  Are you running this directly from the chart? Are you are setting 'Enabled' to 'True'?

                  Please review our Help Guide article on Running a NinjaScript Strategy from a Chart

                  MatthewNinjaTrader Product Management

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Tim-c, Today, 02:10 PM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by Taddypole, Today, 02:47 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post Taddypole  
                  Started by chbruno, 04-24-2024, 04:10 PM
                  4 responses
                  50 views
                  0 likes
                  Last Post chbruno
                  by chbruno
                   
                  Started by TraderG23, 12-08-2023, 07:56 AM
                  10 responses
                  399 views
                  1 like
                  Last Post beobast
                  by beobast
                   
                  Started by lorem, Yesterday, 09:18 AM
                  5 responses
                  25 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Working...
                  X