• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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.

        http://www.screencast.com/t/NWZkZDA5NT

        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 superg3, Today, 12:33 AM
            0 responses
            3 views
            0 likes
            Last Post superg3
            by superg3
             
            Started by vppzepuq, Yesterday, 11:28 PM
            0 responses
            1 view
            0 likes
            Last Post vppzepuq  
            Started by Steve L, 05-25-2019, 10:04 PM
            1 response
            6 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by mestril, 05-25-2019, 10:22 AM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by hir04068, 05-25-2019, 09:29 PM
            7 responses
            21 views
            0 likes
            Last Post hir04068  
            Working...
            X