Market Maker Move Earnings Forecast Indicator for ThinkorSwim

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
This was shared by Ken Rose on Twitter. The indicator is called Market Maker Move and it helps to predict "potential movement of a stock related to an upcoming #Earnings earnings announcement".

HLJL6PP.jpg


thinkScript Code

Code:
#Follow ken on Twitter  @KRose_TDA
#Market Maker Move script is used on Ken Rose - Options Strategies Webcast presented Thursday nights @ 3PM ET- Scripting Studies on Thinkorswim Tuesday nights at 5:30PM ET 
#     https://events.thinkorswim.com/#/webcast
#declare lower;
#sets color for Label
input Label_Color_Choice = {"magenta", "green", "pink", "cyan", default "orange", "red", "blue", "gray", "violet"};
#sets color for Label
#determines if we show label
input show_label = yes;
#determines if we show label
#Defines earings time
def isBefore = HasEarnings(EarningTime.BEFORE_MARKET);
def isAfter = HasEarnings(EarningTime.AFTER_MARKET);
def isDuringOrUnspecified = HasEarnings() and !isBefore and !isAfter;
#Defines earings time

def StockPrice = close;
def Market_Maker_Move = GetMarketMakerMove();
def MMMpercent = Market_Maker_Move / StockPrice;
AddLabel(Market_Maker_Move >= 0 and show_label, "Market Maker Move =  " + AsDollars(Market_Maker_Move) + "  ...  " + AsPercent(MMMpercent), GetColor(label_color_choice));
#determines if we expand MMM line to edge of chart
input LineOnExpansion = yes;
#determines if we expand MMM line to edge of chart
def PrevClose = close(period = AggregationPeriod.DAY)[1];

############Below only finds the last bar on chart
def bar = if IsNaN(close)
             then if LineOnExpansion
                     then bar[1]
                     else Double.NaN
             else BarNumber();

def Highest_Bar = HighestAll(bar);
############above only finds the last bar on chart
#ssigns close + MMM if at last bar on chart
def barCount   = if bar == Highest_Bar
                 then (close + Market_Maker_Move)
                 else double.NaN;
####Delete Pound Signs After Test
plot upper = if Highest_Bar == bar
         then HighestAll(barCount)
           else Double.NaN;

upper.sethiding(upper == double.NaN);
upper.SetDefaultColor(getcolor(Label_Color_Choice));
upper.SetPaintingStrategy(paintingStrategy.DASHES);
upper.SetLineWeight(3);
upper.sethiding(isnan(getMarketMakerMove()));

def barCount2   = if bar == Highest_Bar
                 then (close - Market_Maker_Move)
                 else Double.NaN;
####Delete Pound Signs After Test
plot lower = if Highest_Bar <= bar
           then HighestAll(barCount2)
           else Double.NaN;
lower.sethiding(lower == double.NaN);
lower.SetDefaultColor(getcolor(Label_Color_Choice));
lower.SetPaintingStrategy(PaintingStrategy.dashes);
lower.SetLineWeight(3);
lower.sethiding(isnan(getMarketMakerMove()));

Shareable Link

https://tos.mx/GH9Brx
 

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

Mike

Member
VIP
Tinkered around and wrote a script to meet my needs.

Code:
#M.shotter
#MMM Label +/- Price.
 
Input show_MMM_Label=yes;
AddLabel(show_MMM_Label,”MMM:” , CreateColor(237,105,49));
 
input show_Label = yes;

def Market_Maker_Move = GetMarketMakerMove();
def Market_Maker_Move_Plus = Market_Maker_Move + close;
def Market_Maker_Move_Minus = close - Market_Maker_Move;

AddLabel(Market_Maker_Move_Plus, “ ” + Round(Market_Maker_Move_Plus,2), Color.Dark_Green);
AddLabel (Market_Maker_Move_Minus, “ ” + Round (Market_Maker_Move_Minus,2), Color.Dark_Red);
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
112 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.
Top