Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For example, ThinkOrSwim graphs permit multiple studies - like RSI, MACD, Stochastics, etc. Given the chart is showing minute bars, the "current" minute bar is redrawn with each trade. Also, each study is recalculated and is redrawn for the current minute bar.

Since ToS graphs update the studies for the current bar, can the results of each study be "captured" as they update the graph? That would be great as I would not have to write my own graph routine. Also capturing the trade price, time and volume would be the ultimate as no other real-time data feed would be needed!

Curious as the where the horsepower to make the current bar calculations occurs. I assume it is my computer as opposed ToS sending the bar info for each study for each trade.

What I have tried:

Looked for API to feed studies to with their parameters. (not found)
Then would pass real-time data feed (stock time & sales info) for each trade to API.
API would return results for each study.
Posted
Comments
Greg Utas 18-Aug-22 9:06am    
I know what you're talking about (apart from the specific reference to ToS) but have never tried to develop this kind of software. My guess is that your computer has to generate the studies based on the feed of trades. If you don't want to write that software yourself, you'd have to look for an open-source version on GitHub or wherever.

EDIT: I will revise that from guessing to being certain. Even an SMA, for example, has a vast number of timeframes, and there's no way any system is going to feed updated results for each of them.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900