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

hi substring issue

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

    hi substring issue

    hi
    i m writing indicator in which i put this condition:
    if ((RSI(Low,14,0)[1] < 35) && (bottomsstringseries[1].Substring(0,2)==("LB")))
    but when the indicator reach it it disapper from indicator panel and it appears that the code is looping away from the chart
    and if i remove the substring method and but certain value"LB15"
    if ((RSI(Low,14,0)[1] < 35) && (bottomsstringseries[1]==("LB15")))
    or even fake value
    if ((RSI(Low,14,0)[1] < 35) && (bottomsstringseries[1]==("LB")))
    it works fine but sure not giving me the values i need
    the same happens with contain compare method
    what is the wrong

    #2
    problem solved

    hi
    it was null problem and out of range for substring after i put string value as base for my string series
    i increased the string value from a to aaa and it is ok

    Comment


      #3
      Thank you for the update on this matter, ahmedallam.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      12 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      15 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Working...
      X