• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using different tick bars renko, i get error

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

    Using different tick bars renko, i get error

    Hello:
    Im using renko 3 and renko 9 tick bars...

    I used addrenko(instrument.fullname,9, marketdatatype.last)

    How can i call an indicator for this bar array to use in combination with renko 3 indicators?

    I tries rsi( barsarray[1], 14,3) but ninjatrader does no recognize it and telss me it does not exist..

    #2
    Originally posted by Yandychang View Post
    Hello:
    Im using renko 3 and renko 9 tick bars...

    I used addrenko(instrument.fullname,9, marketdatatype.last)

    How can i call an indicator for this bar array to use in combination with renko 3 indicators?

    I tries rsi( barsarray[1], 14,3) but ninjatrader does no recognize it and telss me it does not exist..
    NinjaScript, like its parent, C#, is cAsE SeNsItIvE. You must pay attention to the case of what you write in code.

    Comment


      #3
      case sensitivity is not an issue...

      I was just typing quick, without attention to detail, I wanted to know the correct syntax.
      I got it to work, I had functional error, although the syntax was correct. However, It worked but now I get the attached error. now I get an issue that I cant figure out because I dont remember changing anything before the error came up. I only got a new chart... and changed the amount of days to look back. Any help would be appreciated.
      Attached Files
      Last edited by Yandychang; 07-26-2014, 12:43 PM. Reason: Got it to work... thank you very much

      Comment


        #4
        Originally posted by Yandychang View Post
        I was just typing quick, without attention to detail, I wanted to know the correct syntax.
        I got it to work, I had functional error, although the syntax was correct. However, It worked but now I get the attached error. now I get an issue that I cant figure out because I dont remember changing anything before the error came up. I only got a new chart... and changed the amount of days to look back. Any help would be appreciated.
        I would suggest that you do a CurrentBars check, to ensure that you have valid bar object to access. You probably want to escape while CurrentBars[1] < 3, as your Rising() and Falling() calls are looking 3 bars back.

        You will need to check both CurrentBars objects for validity regardless.
        Code:
        if (CurrentBars[1] < 3 || CurrentBars[0] < 3) return;
        at the top of your OnBarUpdate() handler.

        Comment


          #5
          Thank you thats exactly what it was... it worked well...

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by tpdk2012, Today, 12:51 AM
          0 responses
          4 views
          0 likes
          Last Post tpdk2012  
          Started by simonerg, Today, 12:13 AM
          0 responses
          7 views
          0 likes
          Last Post simonerg  
          Started by rickyblah12, 07-20-2019, 01:01 PM
          2 responses
          19 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Started by edunwa, Yesterday, 04:11 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_EricB  
          Started by Grano, Yesterday, 06:07 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_EricB  
          Working...
          X