Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

what's causing this?

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

    what's causing this?

    Hi,

    I am developing an indicator which functions correctly. I am modifying it somewhat and when I added the following line of code, the indicator pane just goes blank and the price chart arrows that it prints disappear. I commented out various lines of code one at a time and recompiled and reloaded the indicator. Each time everything was ok, except for this line:

    prevLowIndex = MRO(delegate {return BottomBeingMade[1]==true && BottomBeingMade[0]==false;},1,CurrentBar);

    Using this line of code, the indicator still compiles ok. The variables are of the correct boolseries type and I believe are ok as other parts of the code makes use of these variables. prevLowIndex is set to int type.

    Any ideas? Thanks

    #2
    followup

    I was able to rectify the situation by changing the look back period of the boolean statement from [1] to [0]. Compiled and ran fine, but of course this changes the whole effect I get so doesn't solve the problem.

    Am I attempting something here that I'm not supposed to be doing, ie referencing a historic value of my data series within the MRO statement?

    Comment


      #3
      I suspect the following tip will provide some insight.

      RayNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X