Strategy Based on EMAs, TSI, MACD, and Premarket Highs/Lows For ThinkOrSwim

Sorry, must be a TOS issue, some of the charts in the flexible grid are showing drawings and others are not, wasn't sure if a setting was preventing it in a setting. I was thinking around how when alerts happen the entire chart goes red maybe had an impact.
 

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

I was thinking “ if LongEntry[1] and high >= LongEntryLine then LongEntryLine else double.nan; that would be accurate because you should get that long entry line well in advance and I don’t think it goes away once there. Haven’t tried it though. Busy today.
I would like to give this a try but dont know where to add it in a codes
if LongEntry[1] and high >= LongEntryLine then LongEntryLine else double.nan;
 
I would like to give this a try but dont know where to add it in a codes
if LongEntry[1] and high >= LongEntryLine then LongEntryLine else double.nan;
It would be in the buy order. You would have to change the existing trigger and change the other line to ShortEntry and ShortEntryLine for the sell short portion.

Just for backtesting anyway…
 
Sorry, must be a TOS issue, some of the charts in the flexible grid are showing drawings and others are not, wasn't sure if a setting was preventing it in a setting. I was thinking around how when alerts happen the entire chart goes red maybe had an impact.
I don’t think this would affect any drawings. You may check if your drawings are drawn on default or under another user created name.
 
@a1cturner, This is absolutely fantastic. I've only been getting into ThinkScript for a short time and this was exactly what I was looking to build for myself. At least very similar. Thank you for doing all the heavy lifting. I've been back testing this on a number of equities and futures with really great results. I do have a few questions.... You have a flex grid of 16 stocks and I was wondering 1) How you had settled on those for the grid and do you swap them with any others? 2) What others have you tried, and have you seen many that fail this strategy? 3) Any recommendations in terms of what you look for in expanding this list of 16, i.e. float, rel. volume, ect.?
 
@a1cturner, This is absolutely fantastic. I've only been getting into ThinkScript for a short time and this was exactly what I was looking to build for myself. At least very similar. Thank you for doing all the heavy lifting. I've been back testing this on a number of equities and futures with really great results. I do have a few questions.... You have a flex grid of 16 stocks and I was wondering 1) How you had settled on those for the grid and do you swap them with any others? 2) What others have you tried, and have you seen many that fail this strategy? 3) Any recommendations in terms of what you look for in expanding this list of 16, i.e. float, rel. volume, ect.?
I have close to 50 stocks that I watch and am constantly refining. I will sort that throughout the day and find what I think is moving. I then plug those into the flex grid so I can get a quicker look at a glance. If you’ll notice most stocks move together so the outliers are good plays most times.

There are some tickers, like QQQ, SPY and probably some others that just don’t work well with this strategy. It is my assumption that has something to do with how slow it moves and/or premarket movement.

There are obviously going to be some losses but this strategy cuts them pretty quick. I am trying to refine the sell trigger a little better to eliminate the sell triggers that seem to be a little early. I hope to have it done Monday. This weekend is boat weekend. Lol
 
Version 10.4 is posted in Post #1 along with the updated link. No changes made to flex grid or watchlist indicator.

I honestly couldn't tell you exactly what I changed but I edited the sell signals to eliminate most of the "false" sell signals. (sell signals followed by a continuation of the trend). This will help you stay in much longer and you can now be confident that a sell signal is valid once the candle is closed. I traded OXY 68 Puts today from 1300 - 1500 for a nearly 200% gain. Worked out great.
 
Version 10.4 is posted in Post #1 along with the updated link. No changes made to flex grid or watchlist indicator.

I honestly couldn't tell you exactly what I changed but I edited the sell signals to eliminate most of the "false" sell signals. (sell signals followed by a continuation of the trend). This will help you stay in much longer and you can now be confident that a sell signal is valid once the candle is closed. I traded OXY 68 Puts today from 1300 - 1500 for a nearly 200% gain. Worked out great.
Can you give some pictures or how you did the OXY 68 trade today ?. I don't know how to trade option using your strategy. Thanks
 
Don't put all your faith in this strategy alone! Watch for the rejection off all those daily EMAs today. Everything is trading right at the 5EMA or climbing to the 34EMA. If they cross with some momentum then they may push to the next EMA but I have a feeling they will reject and reverse. Be patient!
 
As I was saying this morning. I saw BABA was trending towards 5EMA, price was over-extended yesterday, histogram was trending down on 5 min and 30 min, VIX was going up, buy signal triggered, option price crossed 5EMA so I bought $92 Puts. Made 100%. Had to set a stop loss because I am at work and it triggered

Refer to the bottom of post# 1 for further explanation.

Edit. Go look at where the price bounced and tell me the 5EMA is not magic!

OpBAOEc.png


hwgQf4P.png
 
Last edited:
So you buy option when it crosses above 5 ema
Usually i wait to go down 5 ema
I sow baba trending down today , i let it go
 
So you buy option when it crosses above 5 ema
Usually i wait to go down 5 ema
I sow baba trending down today , i let it go
Specifically on the options chart when the price crosses above the EMA it is a sign of strength. Same rules though. Don’t buy when it’s extended from the EMA. Don’t let it confuse you.
 
I think the only thing is missing in this indicator to show momentum of the move In flex grid
Al of the green but only one or two has strong momentum is it volume , ADR,ATR .
I don't know ?

If i want to add this labe inside flex grid
How i do that ADR percentage

declare lower;

input length = 14;

plot ATR = MovingAverage(AverageType.wilders, TrueRange(high, close, low), length);
ATR.SetDefaultColor(GetColor(8));

AddLabel (yes, "ATR:" + Round((ATR / close) * 100, 3) + "%", Color.WHITE);


AddLabel (yes, "ATR:" + round((ATR) , 3), Color.white);


plot ADR = MovingAverage(AverageType.wilders, high-low, length);
ADR.SetDefaultColor(GetColor(6));

AddLabel (yes, "ADR:" + round((ADR) , 3), Color.light_green);

AddLabel (yes, "ADR:" + Round((ADR / close) * 100, 3) + "%", Color.light_green);
 
Last edited:

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
413 Online
Create Post

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