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 gravdigaz6, Today, 11:40 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by MarianApalaghiei, Today, 10:49 PM
      3 responses
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by XXtrader, Today, 11:30 PM
      0 responses
      4 views
      0 likes
      Last Post XXtrader  
      Started by love2code2trade, Yesterday, 01:45 PM
      4 responses
      28 views
      0 likes
      Last Post love2code2trade  
      Started by funk10101, Today, 09:43 PM
      0 responses
      9 views
      0 likes
      Last Post funk10101  
      Working...
      X