Referencing another custom study from study

Scott111111

New member
I have played around with this and think that it is not possible. However, I thought that I would ask the community.

If you have multiple custom studies and would like to create a study that summarizes the results of the sub-studies is that feasible? I would like to avoid creating a really large study with duplicate code.

Would be something similar to this, however, I cannot find a way to use a custom study only works with functions

plot Data = VolumeAvg()."Vol" crosses above 100;


Thanks in advance
 
Solution
When creating scripts for use in charts, you cannot call for data from custom indicators by referencing them.
You can only call / reference ToS prebuilt studies provided by ThinkorSwim.

While you can reference ToS Studies, Strategies, and Patterns... It is not currently possible to reference custom Thinkscripts of any type...

For example, I often make a reference call to ToS prebuilt studies: ATR(), RSI(), ZigZagHighLow(), RayBullPower(), BalanceOfMarketPower(), Moving Averages, etc...

But I can't reference Mobius's Pivot Points.

To use custom studies, you need to cut and paste, and stuff the code into your script.

@Joeblack @hockeycoachdoug
My script can't find the function KNN_Awe_TTM.

Screenshot 2023-12-19 223221.png


While I'm writing an indicator, I am calling another indicator KNN_Aew_TTM. Code shows KNN_Aew_TTM in red which means KNN_Aew_TTM is missing.


1703284903853.png
 
I continue to have issues with color coded watch list columns. Here is the code I keep trying to get to work -

Code:
plot myVariable = TOP_Fibonacci_Cycle_Composite()."PlotDiffVar5" is less than or equal to 0;
AssignBackgroundColor(if myVariable then Color:GREEN else Color:RED);
myVariable.AssignValueColor(Color:BLACK);

Where TOP Fibonacci Cycle Composite is the indicator I am referencing. When the histogram plot of the indicator is above zero I want a green background watch list column and Red for below. Does anything stand out that I am missing? Thanks in advance for any help.
 
When creating scripts for use in charts, you cannot call for data from custom indicators by referencing them.
You can only call / reference ToS prebuilt studies provided by ThinkorSwim.

While you can reference ToS Studies, Strategies, and Patterns... It is not currently possible to reference custom Thinkscripts of any type...

For example, I often make a reference call to ToS prebuilt studies: ATR(), RSI(), ZigZagHighLow(), RayBullPower(), BalanceOfMarketPower(), Moving Averages, etc...

But I can't reference Mobius's Pivot Points.

To use custom studies, you need to cut and paste, and stuff the code into your script.

@Joeblack @hockeycoachdoug
 
Last edited:
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
217 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