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 correctly use Highest/Lowest in strategy wizard

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

    How to correctly use Highest/Lowest in strategy wizard

    Hi Guys

    I am trying to develop an idea that needs for the chart
    to have the highest/lowest bar within the last 5 bars to
    trigger the rest of strategy. I have tried various combinations
    within the wizard and cannot seem to figure out the correct
    method.

    Any Suggestions.

    Thanks

    Lynn Atkinson

    #2
    For clarification...

    - You want to know how many bars ago was either the highest or lowest value?
    RayNinjaTrader Customer Service

    Comment


      #3
      Strategy for using highest/lowest

      Hi Ray

      The strategy would be like this.

      If a 34 period high has occurred withing last 10 bars followed by
      a 5 bar low, sell 5 bar low - 1 tick.

      Hopefully this will clarify what I am trying to do.

      Thanks

      Lynn

      Comment


        #4
        Close...

        You will need to be more specific.

        - 34 Period high to me is a price and not an event that I could write a condition for

        The following would be an example of an event.

        - In the last 10 bars the high seen must be the highest value of the last 34 bars
        RayNinjaTrader Customer Service

        Comment


          #5
          Highest/lowest

          Hi Ray

          I believe I am confusing both of us.

          Can you explain how to code the event you
          mentioned in wizard. I believe i could make
          something like that work.

          Lynn

          Comment


            #6
            See attached image.

            I am personally hosting an 8 hour seminar covering basic wizard based strategy development. More information - http://www.ninjatrader.com/webnew/ev...evelopment.htm
            Attached Files
            RayNinjaTrader Customer Service

            Comment


              #7
              Thanks

              Hi Ray

              thanks for your help on this idea,

              I will be interested in the online seminar as you can tell
              I need it.

              Thanks again

              Lynn

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by michi08, 10-05-2018, 09:31 AM
              3 responses
              740 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by sightcareclickhere, Today, 01:55 PM
              0 responses
              1 view
              0 likes
              Last Post sightcareclickhere  
              Started by Mindset, 05-06-2023, 09:03 PM
              9 responses
              258 views
              0 likes
              Last Post ender_wiggum  
              Started by Mizzouman1, Today, 07:35 AM
              4 responses
              18 views
              0 likes
              Last Post Mizzouman1  
              Started by philmg, Today, 01:17 PM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_ChristopherJ  
              Working...
              X