Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Showing clock / time anywhere on chart

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

    Showing clock / time anywhere on chart

    Hi,

    I would like to show the clock with the current time on the chart. I run my charts maximised with the windows taskbar auto-hide feature on, so I don't see any clock for the current time.

    Is there a simple option to turn on a 'Time marker' for the x-axis on the chart which behaves the same as the Price Marker on the y-axis?

    Alternatively, is there an indicator similar to Bar Timer which would display a clock on the bottom edge of the chart?

    Alternatively, if I want to code it myself, rather than copying Bar Timer which is quite complex, is there a recommended way to do it? Or is that usage of the 'Timer' the only way to do it?

    Thanks

    #2
    Hi adamus, there's unfortunately no 'current time' marker counterpart - I would simply code an indicator running COBC false and using DrawTextFixed to show the DateTime.Now (your current PC time). If you convert it to string there are some display options then, like short or long time format whatever you prefer.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      thanks for the advice.

      Regards
      Adam

      Comment


        #4
        Mindset coded this.

        Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.

        Comment


          #5
          Nice, thanks

          Comment


            #6
            Can you show me how to code this? The link doest work anymore.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by bortz, 11-06-2023, 08:04 AM
            47 responses
            1,605 views
            0 likes
            Last Post aligator  
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            8 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            4 views
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            13 views
            0 likes
            Last Post Javierw.ok  
            Working...
            X