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

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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      59 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      21 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      10 views
      0 likes
      Last Post cre8able  
      Working...
      X