Mannarino Market Risk Indicator - MMRI

Status
Not open for further replies.

ILIKESTOCKS

Member
Greg has a theory about the market using this following equation: $dxy multiplied by 10 year yield (tnx) divided by 1.6
Anyway to create a label and script from this info? Thanks. Ideas?
 
Code:
declare lower;
input symbol1 = "$dxy";
input symbol2 = "TNX";
def price1 = close(Symbol1);
def price2 = close(Symbol2);
Plot Indicator = (Price1 * Price2)/1.6;
Indicator.SetDefaultColor(Color.yellow);

I don't know what you are trading? or what you are supposed to be looking for?
 

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

Code:
declare lower;
input symbol1 = "$dxy";
input symbol2 = "TNX";
def price1 = close(Symbol1);
def price2 = close(Symbol2);
Plot Indicator = (Price1 * Price2)/1.6;
Indicator.SetDefaultColor(Color.yellow);

I don't know what you are trading? or what you are supposed to be looking for?
The idea is to gauge the risk factor in investing from a rating of 50 to 300 based on the equation above. The lower value is rated as "Low Risk" while a value over 300 is suppose to indicate an "Extreme Risk." Something to that effect...
 
Code:
declare lower;
input symbol1 = "$dxy";
input symbol2 = "TNX";
def price1 = close(Symbol1);
def price2 = close(Symbol2);
Plot Indicator = (Price1 * Price2)/1.6;
Indicator.SetDefaultColor(Color.yellow);

I don't know what you are trading? or what you are supposed to be looking for?
Thank you. This was something new created by mannarino and He seemed to think this was a good canary in the coal mine for the overall market. Im not sure if it is its only based on one mans opinion as I know, but I could be naive in that assumption so I figured I would put it to the experts in this forum. Thank you for even recognizing the question it is appreciated. 😀
 
The idea is to gauge the risk factor in investing from a rating of 50 to 300 based on the equation above. The lower value is rated as "Low Risk" while a value over 300 is suppose to indicate an "Extreme Risk." Something to that effect...
I can't compare how this reacts when comparing a highly volatile stock IE: Tsla ,MRNA, asml vs a steady eddie such as IBM, XOM and such.
I feel that if you add a moving average to the indicator that will help
 
Hello folks, I'm new to trying any programming in Thinkscript. So I actually found this code here and modded it so that it would reflect the proper equation and I got it to show up as a number above the chart. Essentially the script takes the value of the USD and compares it to the 10year yield, then spits out a number based on a divider of 1.61 - So: (DXY) x (TNX)/1.61 = Result.

I've got it to display but was wondering if anyone could tell me how to add a few elements.
1. I'd like to add a label before the number - MMRI:
2. The box under the number presented is currently red. I'd like to have the box change color based on the numeric result of the calculation as follows:

50-100 = Green
101-200 = Yellow
201-300 = Orange
301+ = Red

Here is the code as I have it thus far:
declare lower; input symbol1 = "$dxy"; input symbol2 = "TNX"; def price1 = close(Symbol1); def price2 = close(Symbol2); AddLabel(yes, AsText((Price1 * (Price2/10))/1.6, NumberFormat.TWO_DECIMAL_PLACES));
 
Status
Not open for further replies.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
271 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