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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            595 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            554 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X