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

support/resistance

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

    support/resistance

    im using a sample reference to create a support/resistance indicator. this is what i have so far: edited: updated with 150 bars initial setting
    Attached Files
    Last edited by jcard55; 05-05-2009, 12:16 PM.

    #2
    jcard55,

    Right now you are using "startBar" for your MAX() function. You have not defined what this startBar is and that you need to do so before your code will do anything. You need to place in how many bars back you want to check for the highest high.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      jcard55,

      When you want to look for 50 bars you need to first ensure you actually have 50 bars. Please see this tip: http://www.ninjatrader-support2.com/...ead.php?t=3170
      Josh P.NinjaTrader Customer Service

      Comment


        #4
        Originally posted by NinjaTrader_Josh View Post
        jcard55,

        When you want to look for 50 bars you need to first ensure you actually have 50 bars. Please see this tip: http://www.ninjatrader-support2.com/...ead.php?t=3170
        i see what the tip is saying, however it seems to be working as normal even when set to 999 bars, e.g. no error message and using the most recent hi/lo when previous data up to the set number on bars is not available.

        Comment


          #5
          jcard55,

          It may or may not work. If you find it working then that is great.
          Josh P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by zstheorist, Today, 07:52 PM
          0 responses
          3 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          149 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          5 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          5 views
          0 likes
          Last Post tkaboris  
          Working...
          X