Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time(in secs) for each candle?

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

    Time(in secs) for each candle?

    Hi,

    I am using volume based candles at the moment rather than time-based and I want to create an indicator that will show me how long each candle takes to form, like a volume histogram down the bottom, but showing the time for each candle obviously not the volume as each candle is the same volume.

    Can this be done? I need some help(actually a lot of help!) if it can, as I am very much a beginner with coding etc.

    Thanks!

    #2
    Hello Jumper,

    Thank you for your post.

    One of our users has shared a similar indicator that may do this for you. You can find it in our FileSharing section at the link below.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hmm thanks Ryan, thats almost along the lines of what I was after, but that seems to be averaging the time per bar/candle, so that if its under a set time, then it shows up.

      I'm just more after the pure time taken to form the current candle, and have it displayed as a histogram. Any other ideas? I would imagine it to be reasonably easy, just needs to count in seconds from the time the bar starts till it ends/next bar begins.

      Comment


        #4
        Hi Jumper,

        That's the closest I'm aware of that fits what you're looking for. I would think you could modify this by setting a value of 1 for period and a high threshold for displaying the indicator.

        You may look into hiring a 3rd party NinjaScript consultant if you want someone to develop the code to your exact specifications.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Hi Ryan,

          I have tried a few different settings on that one, but its not really what I'm after, thanks anyway. I'm not real keen on hiring someone to do what seems to be a relatively simple thing? Surely someone here knows how or can at least give me a few tips on how to make it?

          If anyone else knows how or wants to have a go at making this up if its not too hard, then that would be greatly appreciated! I think it would be a very handy tool, seeing how long each side(supply & demand) have in posesssion etc.

          Thanks!

          Comment


            #6
            do have a peep at
            Code:
             Bars.PercentComplete

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            42 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            25 views
            0 likes
            Last Post PaulMohn  
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            162 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            98 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            157 views
            2 likes
            Last Post CaptainJack  
            Working...
            X