Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Show arrows only for the current day

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

    Show arrows only for the current day

    Hi,

    I developped an indicator which writes upArrows and downArrows on a chart when a specific condition is met. Because I use intraday data over a period of many months, I end up with millions of arrows printed on my charts.

    What should I look into (method/function) in order to come up with a restriction (IF, THEN) that looks for intraday bars belonging to the current day only.? This way I will have bars printed only for the current trading day, not the whole year.

    Thank you for your help.

    - MarcusPlexus

    #2
    Hello MarcusPlexus,

    One way to do this is by adding an additional condition that checks if the date portion of a bar matches the date of your system clock.

    Example:
    if (ToDay(Time[0]) == ToDay (DateTime.Now))
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Excellent. That's what I was looking for.

      Have a nice day.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      168 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      322 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      246 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X