Export Custom Study Value

RogerC

New member
I created a custom study that I use on a chart. So the custom study is dependent on the time frame of that chart - consider the study with the dynamics of a moving average, which would have a bit different result if looking at a Daily time frame or a 4hr time frame, or a 1hr time frame.

I'd like to import the value for my custom study for an entire watchlist, based on the different time frames. Daily, 4hr, 2hr. Unfortunately, when I try to pull up the custom study value in a watchlist, it does't display. I'm happy to export the watchlist, if I can get the value of the custom study into a watchlist for different time frames. I'm thinking I might need to make the custom function more robust so there are three functions each with a specific time frame.
Problem A: I don't know how to make a custom study with a specific time frame. Any help here would be great.
Problem B: Once problem A is created, can I display it into a watchlist? Again help would be great.

Caveat and disclosure: My programmings skills are B-level, and still trying to learn TOScripting.
Thanks in advance for any help.
 
Solution
See this post:
https://usethinkscript.com/threads/...nkorswim-for-external-analysis.507/post-14606
and realize that you can use the same "order" with a value from your desired study to get values from your own study at any time frame interval you want.

There are other threads about exporting watchlists, but I don't think that will get you the values you want... if I read your post correctly. You'll have to export one symbol at a time, and unless you code like this:
Code:
def rsi_1 = RSI(price=Close(AggregationPeriod.MIN));
def rsi_60 = RSI(price=Close(AggregationPeriod.HOUR));
etc...
note code is hand typed here and may not actually run, but may be close
see...
See this post:
https://usethinkscript.com/threads/...nkorswim-for-external-analysis.507/post-14606
and realize that you can use the same "order" with a value from your desired study to get values from your own study at any time frame interval you want.

There are other threads about exporting watchlists, but I don't think that will get you the values you want... if I read your post correctly. You'll have to export one symbol at a time, and unless you code like this:
Code:
def rsi_1 = RSI(price=Close(AggregationPeriod.MIN));
def rsi_60 = RSI(price=Close(AggregationPeriod.HOUR));
etc...
note code is hand typed here and may not actually run, but may be close
see: https://tlc.thinkorswim.com/center/reference/thinkScript/Constants/AggregationPeriod
then you can run the script on your lowest timeframe and it will export (if you've put the values of them in the "order" all of the values for your timeframes at once.

Maybe this helps, I need more coffee
-mashume
 
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
228 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top