# In search of source code for MarketSentiment

#### Stax

##### New member
Trying to locate the code behind MarketSentiment, or at least create something that closely resembles the study. Any help would be appreciated.

#### Attachments

• 1.JPG
11 KB · Views: 23
Last edited by a moderator:
Solution
Trying to locate the code behind MarketSentiment, or at least create something that closely resembles the study. Any help would be appreciated.

Its basically just a really slow Stochastic-D line with no inputs to change the lengths. But you'll have to tinker with the lengths to get it exactly right. In any event, I'd hardly say that it has anything to do with sentiment, and the fact that this code is concealed as proprietary is laughable.

Code:
``````def x = highest(high,50);
def y = lowest(low,50);
def z = (close - y) / (x - y) * 100;
plot a = average(z,50);``````

Trying to locate the code behind MarketSentiment, or at least create something that closely resembles the study. Any help would be appreciated.

Its basically just a really slow Stochastic-D line with no inputs to change the lengths. But you'll have to tinker with the lengths to get it exactly right. In any event, I'd hardly say that it has anything to do with sentiment, and the fact that this code is concealed as proprietary is laughable.

Code:
``````def x = highest(high,50);
def y = lowest(low,50);
def z = (close - y) / (x - y) * 100;
plot a = average(z,50);``````

Its basically just a really slow Stochastic-D line with no inputs to change the lengths. But you'll have to tinker with the lengths to get it exactly right. In any event, I'd hardly say that it has anything to do with sentiment, and the fact that this code is concealed as proprietary is laughable.

Code:
``````def x = highest(high,50);
def y = lowest(low,50);
def z = (close - y) / (x - y) * 100;
plot a = average(z,50);``````

Thanks, Joshua. Appreciate it.

87k+ Posts
327 Online

## The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
• Exclusive indicators
• Proven strategies & setups
• Private Discord community
• Exclusive members-only content
• 1 full year of unlimited support

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?