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 f.saeidi, Today, 10:19 AM
      0 responses
      2 views
      0 likes
      Last Post f.saeidi  
      Started by kujista, Today, 06:23 AM
      4 responses
      14 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by traderqz, Yesterday, 09:06 AM
      2 responses
      16 views
      0 likes
      Last Post traderqz  
      Started by traderqz, Today, 12:06 AM
      3 responses
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by RideMe, 04-07-2024, 04:54 PM
      5 responses
      28 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X