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.

      http://www.ninjatrader-support.com/v...ead.php?t=3170
      RayNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sidlercom80, Today, 04:57 AM
      0 responses
      1 view
      0 likes
      Last Post sidlercom80  
      Started by patricia70, Today, 03:57 AM
      0 responses
      4 views
      0 likes
      Last Post patricia70  
      Started by pjsmith, Today, 03:25 AM
      0 responses
      6 views
      0 likes
      Last Post pjsmith
      by pjsmith
       
      Started by cincai, Today, 01:04 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by voltation, Today, 12:37 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Jason  
      Working...
      X