ToS Market Forecast

rewardiaz

Member
VIP
Hello,

I am working with the Market Forecast Indicator and need guidance on how to differentiate the percentage of negative momentum from positive momentum within a specific time frame.

Example:

I have a 15D/10min chart and below is our regular Market Forecast. I'd like to:

1. SUM() total mMomemtum
2. SUM() total mNearTerm

Then figure out if there are more efforts to raise the price than to lower it. (just an idea)

Python:
# ########################################
# Market Forecast
def mMomemtum = MarketForecast();
def mNearTerm = MarketForecast().NearTerm;
def mIntTerm = MarketForecast().Intermediate;

Can someone help figure this one out or getting me in the direction?... I thought of using CompoundValue() to loop back as many candles as the chart but not sure this accurate way.

Many thanks
 
Last edited:
Solution
Okay, I was able to obtain the total numbers by using TotalSum() and I want to test this idea.

Below is the result, this is Tesla Stock, 360D/1h:

Screenshot 2024-08-22 165919.png

Study 1:
I fell down the rabbit hole thinking that if I totaled up the Momentum, I could figure out whether the stock is quietly experiencing a "spike" in momentum or not. The numbers do show a negative percentage :unsure: ... but with each stock, I notice a consistent difference of around 30%. Perhaps this is tell me something.

Study 2:
Rather than adding them up and comparing, I decided to Count() each candle that showed more momentum than the previous one and had a 50% positive shift, which happened to indicate a potential bullish cluster.

I'm not...
Okay, I was able to obtain the total numbers by using TotalSum() and I want to test this idea.

Below is the result, this is Tesla Stock, 360D/1h:

Screenshot 2024-08-22 165919.png

Study 1:
I fell down the rabbit hole thinking that if I totaled up the Momentum, I could figure out whether the stock is quietly experiencing a "spike" in momentum or not. The numbers do show a negative percentage :unsure: ... but with each stock, I notice a consistent difference of around 30%. Perhaps this is tell me something.

Study 2:
Rather than adding them up and comparing, I decided to Count() each candle that showed more momentum than the previous one and had a 50% positive shift, which happened to indicate a potential bullish cluster.

I'm not sure if this is a huge waste of time or if these numbers are relevant, but it's worth giving it a shot.

Hope this help orthers!
 
Solution

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

Hello,

I am working with the Market Forecast Indicator and need guidance on how to differentiate the percentage of negative momentum from positive momentum within a specific time frame.

Example:

I have a 15D/10min chart and below is our regular Market Forecast. I'd like to:

1. SUM() total mMomemtum
2. SUM() total mNearTerm

Then figure out if there are more efforts to raise the price than to lower it. (just an idea)

Python:
# ########################################
# Market Forecast
def mMomemtum = MarketForecast();
def mNearTerm = MarketForecast().NearTerm;
def mIntTerm = MarketForecast().Intermediate;

Can someone help figure this one out or getting me in the direction?... I thought of using CompoundValue() to loop back as many candles as the chart but not sure this accurate way.

Many thanks
1724374777137.png
just asked your initial query to copilot and this is the answer. you can do the same with gemini and chatgpt and maybe others to have a wider view of the question
 
Thanks a lot. I chose a slightly different path.

I need to check if these numbers have any meaning.... :unsure:

Python:
# ########################################
# Momemtum Percent
def TotalMomemtum = TotalSum(mMomentum);
def TotalNearTerm = TotalSum(mNearTerm);

# Calculate the percentage difference between mMomentumTotal and mNearTermTotal
def percentageDifference = (100 * (TotalMomemtum - TotalNearTerm) / TotalNearTerm) * -1;

# ########################################
# Labels for the total sums and percentage difference
AddLabel(showLabels, "Total Momentum: " + AsText(TotalMomemtum, NumberFormat.TWO_DECIMAL_PLACES),
    if TotalMomemtum > TotalNearTerm then GlobalColor("bull") else GlobalColor("bear"));
AddLabel(showLabels, "Total Near Term: " + AsText(TotalNearTerm, NumberFormat.TWO_DECIMAL_PLACES),
    if TotalMomemtum > TotalNearTerm then GlobalColor("bull") else GlobalColor("bear"));
AddLabel(showLabels, "Total: " + AsText(percentageDifference, NumberFormat.TWO_DECIMAL_PLACES) + "%",
    if TotalMomemtum > TotalNearTerm then GlobalColor("bull") else GlobalColor("bear"));
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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