Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Display OHLC For Specific Time Bar

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

    Display OHLC For Specific Time Bar

    Is it possible to write an indicator that will display on the bar the OPEN or HIGH or LOW or CLOSE for a specific time bar?

    For example, display OPEN of 9:30 bar.

    If it's simple, would someone be kind enough to post the code?

    #2
    I am new here. But. Ii came across an indicator that might help you. search PriorWeekOHLC. Also look under indicator and see CurrenDayOHL.

    Comment


      #3
      Originally posted by ScorpioTravis View Post
      Is it possible to write an indicator that will display on the bar the OPEN or HIGH or LOW or CLOSE for a specific time bar?

      For example, display OPEN of 9:30 bar.

      If it's simple, would someone be kind enough to post the code?
      Code:
      [FONT=Courier New]
      [/FONT][FONT=Courier New][COLOR=#0000ff][FONT=Courier New][COLOR=#0000ff]double[/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New] barOpen = Open[GetBar(DateTime.Today.Add([/FONT][FONT=Courier New][COLOR=#0000ff][FONT=Courier New][COLOR=#0000ff]new[/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New] TimeSpan([/FONT][FONT=Courier New][COLOR=#800080][FONT=Courier New][COLOR=#800080]9[/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New],[/FONT][FONT=Courier New][COLOR=#800080][FONT=Courier New][COLOR=#800080]30[/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New],[/FONT][FONT=Courier New][COLOR=#800080][FONT=Courier New][COLOR=#800080]00[/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New])))];
      Print([/FONT][FONT=Courier New][COLOR=#800000][FONT=Courier New][COLOR=#800000]"Open of 9:30 bar: "[/COLOR][/FONT][/COLOR][/FONT][FONT=Courier New] + barOpen); //so you can verify it in the Output Window.
      [/FONT]

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      605 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      351 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      560 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      561 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X