Introducing: Seconds Timeframe on Charts by Dhan

Dear Traders,

At Dhan, we understand the importance of charts for Traders and we made it one of our primary areas to focus on from our early days with a clear thought process to offer you a world-class charting experience.

We integrated two of the leading charting libraries - TradingView and ChartIQ, and ofcourse as you would know we continue to work very closely with TradingView to bring lots of innovation, features and capabilities to our user. We continue to offer the latest libraries of TradingView across all our platforms including the dedicated Trade from Charts experience on tv.dhan.co. We also introduced India specific time-frames like 25 min, 75 min & 125 mins; ensured seamless synchronisation of drawings, indicators, templates, and layouts across all our platforms for consistent experience. Furthermore, we have diligently developed user-requested technical indicators and remain committed to ongoing enhancements to deliver the best possible charting experience for your trading needs.

Also as most of our Traders on Dhan already are aware - Dhan was the first Indian Stock Trading platform to integrate directly on TradingView.com via Trade Panel; and recently we also announced our new order type - Webhooks, where traders can now trade in Options (and all segments) directly on TradingView.com.

Today, we are thrilled to announce a groundbreaking enhancement to your charting experience on Dhan’s TradingView library – the introduction of the “Seconds Timeframe” in Dhan Charts!

Your feedback and suggestions have been the driving force behind this development, we’re delighted to roll out three new seconds-based timeframes: 5 seconds, 15 seconds, and 30 seconds. With this, you’ll now have unparalleled access to real-time market data that is better than before. Additionally, with this Dhan continues to introduce yet another industry first feature for Traders in India.

These new timeframes will empower you to make quicker, more informed decisions and take advantage of even the smallest of trading opportunities, specially for scalpers who would like to keep a track of early breakouts. It will be easy to uncover hidden patterns with a level of granularity that was previously unavailable.

You will find the new timeframes listed alongside the existing ones.To access these timeframes, simply click on the time frame drop down in the top menu of charts. Under the subsection “Seconds” select the desired timeframe and you are good to go.

Between 9:15 am and 3:30 pm, a total of 22,500 seconds are available for trading. For every instrument, we will be plotting 4,500 candles (calculated as 22,500/5). Each candle comprises 5-6 data points, including Open, High, Low, Close, Volume (Vol), and Open Interest (OI). Therefore, this amounts to a substantial 27,000 data points for a single instrument in a day, making it an unusually heavy data load. To ensure smooth and improved chart performance, we have decided to limit the seconds charts to cover a duration of two days. This optimization will help maintain the quality of the charts while still providing valuable insights for your trading needs.

As you explore the new timeframes, we encourage you to provide us with your valuable feedback. Our team is committed to continuously refining and improving the feature based on your suggestions.

For now, the seconds charts are available on Dhan’s TradingView console on tv.dhan.co, and will soon be extended to our other platforms - Dhan (Web and App) and also Options Trader (Web and App).

Thank you for trusting us & being a part of the Dhan community, and we look forward to seeing you thrive with our latest update.

Happy Trading!
Naman

15 Likes

thank you for this new feature… 1st in market

2 Likes

ankho mai aasu aa gaye guys :sob: :sob: :heart: itni khushi @Naman @Dhan

2 Likes

Why are these not available in Dhan APIs as well? That’s like saying in real time,I trade on15s, but if I want to automated it, I cannot.

Hi @displayflex Well, most of the features on Dhan are user requested; its important part of our journey to ensure we build what we want.

1 Like

Hi, @PravinJ Could not find any actionables from your side from our previous reply. I am assuming you mean I need to request this feature and then hope it gets accepted. So here it is: Can we please add seconds timeframe to the APIs as well?

Hi @displayflex Abhishek, suggest taking a look at the web market feed API via websocket, Live Market Feed - DhanHQ Ver 2.0 / API Document

This is actively used by many of our API based traders.

Hi, @PravinJ

Thank you for your suggestion.

I tried using it and codified my strategy.

Here’s what I had to do to build it:

1- Get the tick data, and the keep it in a candles variable.
2- Create a CandleBuilder sort of a thing which combines the data for the right set of 15 second intervals and give me back the candles.
3- Apply my indicators on these candles (ha, right? won’t make sense to apply indicators on tick data for my use case, so needed candles)
4- Jai Mata Di

As a developer, here are my concerns that could very easily be solved if dhan starts exposing seconds data:

  1. If my program ends for whatever reason, and then is restarted, there is no way to backfill the lost data because tick data is for incremental, not historical.
  2. If I need to do an analysis on the historical data, absolutely no way again.
  3. Lets say In the morning I was trading 24000 CE of Nifty, and then at 12pm, my program realizes it needs to switch to 24800 because of delta adjustments, it will again. have to wait for 5-10 minutes to get the initial data. Then indicators would actually start giving non NaN values.

All of this can be solved if we treat 15s, 30s etc. as normal timeframes and start sharing historical data for the same. If anything, even if it is available for last 2 trading days, would solve a lot of things.

Anything here? @PravinJ @Hardik

Hi @displayflex We will evaluate this, but being very honest that we unlikely will move in that directions.

In seconds time frame the data consumption and storage are high (high is understatement) and as you rightly mentioned - the only use-case this solves for and also your first and important concern is to backfill lost data; it isn’t a primary use case to solve for.

Dhan plans and aims towards to being best execution platform - be it through our apps or web platforms, of via our APIs, we do not see us as data provider and as a per exchange norms we can’t be as well. Any use-case towards data, one will have to get it directly via exchanges.

1 Like

Thanks, @PravinJ, for your response. Since dhan’s app (on web and mobile) already provide this data (and store it as well for the last 2 days) via the ticks.data endpoint, is it not possible to expose just that bit for use-cases like mine where I just need the last few candles so that I don’t have to wait every time I switch an instrument?

I think historical data, as your rightly said, would take enormous amount of storage, but if something is already stored and available via APIs in the manual trading mode on Dhan, maybe it would be OK to allow that via SDKs as well.

Please let me know your thoughts on this. (Or if there any way I can leverage the getDataS endpoint for this purpose.)

Well yes, we do save this on our platform for past 2 days. The view here is we are not a data provider, and for that reason wouldn’t want to venture on that side.

If we provide a service, we also have to ensure we serve it right and all time. We as a organisation are focused on building execution engine, so that makes it deviation. Even from a platform perspective, we hold and process lot of data and analytics across our platforms - however we do not provide them on APIs. I hope I am able to make a point here, we prefer to provide few services where we can excel, there will always be few exceptions and use-cases that we have to let go.

2 Likes

Got it, thank you so much!