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 hdge4u, Today, 09:09 PM
      0 responses
      15 views
      0 likes
      Last Post hdge4u
      by hdge4u
       
      Started by hdge4u, Today, 09:02 PM
      0 responses
      8 views
      0 likes
      Last Post hdge4u
      by hdge4u
       
      Started by stormcloudseven, Today, 08:41 PM
      1 response
      9 views
      0 likes
      Last Post DavidTrades  
      Started by GussJ, Today, 01:24 PM
      0 responses
      23 views
      0 likes
      Last Post GussJ
      by GussJ
       
      Started by frslvr, Today, 12:40 PM
      0 responses
      16 views
      0 likes
      Last Post frslvr
      by frslvr
       
      Working...
      X