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

Prior Day,Week,Month Indicator

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

    Prior Day,Week,Month Indicator

    I have been going around in circles, hopefully someone here can help me. I am writing an indicator that displays the previous day, week and month high and lows but for some reason it is not display the current data.
    Attached Files

    #2
    Hello cutzpr,

    Thank you for your note.

    Are you seeing any errors in the log tab when you apply the indicator?

    It looks like you are passing a negative value for a bars ago value,

    Code:
      Draw.Text(this, "prMonthLow", false, "prMonthLow",[B] -1, [/B]prMonthLow, 5, Brushes.Red, TagFont, TextAlignment.Left, Brushes.
    Negative bar indexes are not supported in NT8. If you get rid of the negative, do you see the values?

    If you comment out line 138, requiring IsFirstTickOfBar,

    Code:
    //if (IsFirstTickOfBar)
    Do you see text?

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      I am finding this indicator isn't outputting anything. Were you able to correct the issue you were having?

      I'm finding that the only way to determine the prior week/month OHLC is to have a ton of intraday data loaded. Which is unfortunate.

      I would love to simply add a Monthly data series and look at the previous bar for the last OHLC, but it doesn't seem as simple as that.
      Last edited by neoikon; 04-26-2018, 10:39 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by algospoke, Yesterday, 06:40 PM
      2 responses
      24 views
      0 likes
      Last Post algospoke  
      Started by ghoul, Today, 06:02 PM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      46 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      23 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      181 views
      0 likes
      Last Post jeronymite  
      Working...
      X