Repaints Stochastics Divergence System For ThinkOrSwim

Repaints
I've taken a multiple time frame approach to this strategy where I'm finding divergences on the 1 hr, 30 min, 15 min, 5 min, 3 min and 1 min. The higher the time frame of the divergence, the more reliable the signal on the smaller time frames and the bigger the move. I've also added a stochastics(14,3) and (40,4), which sometimes spot divergences that the ones I've been using do not.

I keep the higher time frame charts (1 hr, 30 min and 15 min) in the "charts" tab and the lower time frame charts (5 min, 3 min and 1 min) in the "flexible grid" tab so I can easily switch between them when trading.

Here's the new lower time frame grid. http://tos.mx/t8GLJXR

For the higher time frame grid, simply use the same style but change the time frame.
Chance I am using this, with 3 time periods., 1, 3 & 5. It is good. Would be great if you can add alerts for arrows. Please I do not know how to do this. If you know, or if anyone knows how to add alerts for arrows, please help.
 
Chance I am using this, with 3 time periods., 1, 3 & 5. It is good. Would be great if you can add alerts for arrows. Please I do not know how to do this. If you know, or if anyone knows how to add alerts for arrows, please help.
You would need to code a divergence study. I have a very accurate one for Sierra but I haven't and probably won't code one for TOS.
 
Sure. http://tos.mx/FWhBB7E

I got this strategy from Day Trader Rockstar by the way. His youtube channel has some really good videos explaining the strategy. It also incorporates trend lines, which I also use but didn't mention in the first post. I also use standard deviation channels to spot likely reversal areas.
Interesting strategy but I find it to be a risky and dangerous because a lot of times the BUY or SELL arrows disappear on you and leave you wondering what to do next? exit and take the opposite direction?
SO basically with all the appearing then disappearing buy/sell arrows this would be a choppy strategy.
Is there a way to make them stay?
 
Interesting strategy but I find it to be a risky and dangerous because a lot of times the BUY or SELL arrows disappear on you and leave you wondering what to do next? exit and take the opposite direction?
SO basically with all the appearing then disappearing buy/sell arrows this would be a choppy strategy.
Is there a way to make them stay?
I believe that the arrows that appear are from the reversal indicator and have little to do with the method explained in this thread. They don't indicate divergence, just a change in trend, although as you've noted the trend change may be short lived. Just as general advice, it's always ideal to go through every study and understand what each one does and how it calculates its signals. In this case the arrows can be eliminated with no effect on the divergence system, as they don't indicate divergence.
 
I believe that the arrows that appear are from the reversal indicator and have little to do with the method explained in this thread. They don't indicate divergence, just a change in trend, although as you've noted the trend change may be short lived. Just as general advice, it's always ideal to go through every study and understand what each one does and how it calculates its signals. In this case the arrows can be eliminated with no effect on the divergence system, as they don't indicate divergence.
Will do more reading about all the studies involved, thank you so much for your contribution.
 
I believe that the arrows that appear are from the reversal indicator and have little to do with the method explained in this thread. They don't indicate divergence, just a change in trend, although as you've noted the trend change may be short lived. Just as general advice, it's always ideal to go through every study and understand what each one does and how it calculates its signals. In this case the arrows can be eliminated with no effect on the divergence system, as they don't indicate divergence.
I understand the "Trend Reversal Indicator" is only used as a helper, but I find it interesting.
Is there a way to modify the code in TrendReversal to make ALL arrows stay visible regardless if when it's choppy, because for example during live trading hours a down arrow would automatically disappear if the price keeps rising, I need the down arrow to stay visible and a new up arrow is printed. I need to use them (have them all visible) for more investigative/backtesting purposes.
I really appreciate it. I went to the TrendReversal thread but it was closed for new comments.
 
Last edited:
I understand the "Trend Reversal Indicator" is only used as a helper, but I find it interesting.
Is there a way to modify the code in TrendReversal to make ALL arrows stay visible regardless if when it's choppy, because for example during live trading hours a down arrow would automatically disappear if the price keeps rising, I need the down arrow to stay visible and a new up arrow is printed. I need to use them (have them all visible) for more investigative/backtesting purposes.
I really appreciate it. I went to the TrendReversal thread but it was closed for new comments.
No, it is not possible to modify the code in the Trend Reversal to make all arrows stay visible.
The definition of REPAINTING is that the previous arrows are wiped out. There is no record, there is no way to make a record of those false prophets as the price then dives for the basement. That is why Repainters cannot be backtested.
 
i use Sierra as well for Order Flow. Would u be willing to share this study? i can sent you my Sierra ID
Did you ever receive this divergence study from him? If so I would be willing to try to code it into think script if Sierra allows you to view source code
 
Last edited by a moderator:
Please Help creating this Stochastics Divergence In TOS

Not Traditional Divergences from one Cycle Hi/Low to next Cycle Hi/Low. But divergences within same cycle. Below I will explain with Chart pictures Stochastic setting, I want to use are not Traditional Settings. The parameters I use for the Stochastic Indicator are as follows:  %K: 5  %K slowing: 2  %D: 3 And I am mainly concerned about Divergences that may show up between %K & Price within half cycle. Few pics with explanation are enclosed. Please note that these are not "traditional Divergences" from one cycle Hi or Low to the next one. With above settings for Stochastics looking for divergences that occurs within that half cycle while at top or bottom of the range. I think pics are self explanatory. This should also work with other settings of Stochastics Can this be done in TOS?
The fast 5 Bar %K, creates a lot of wiggles at "Over Bought" 80 & Over Sold" 20 areas. I am interested in divergences that from in these half cycles.
 
When the candle turns white what does mean when it is white? I am running this now testing but dont understand the white candle part.
 
When the candle turns white what does mean when it is white? I am running this now testing but dont understand the white candle part.


The white painted candles are from the Mobius Supertrend.

# SUPERTREND BY MOBIUS AND CCI ATR TREND COMBINED INTO ONE CHART INDICATOR, BOTH IN AGREEMENT IS A VERY POWERFUL SIGNAL IF TRENDING. VERY GOOD AT CATCHING REVERSALS. WORKS WELL ON 1 AND 5 MIN CHARTS. PLOT IS THE COMBINATION LOWEST FOR UPTREND AND HIGHEST OF THE DOWNTREND. DOTS COLORED IF BOTH IN AGREEMENT OR GREY IF NOT - 08/10/19 DTE


If downtrending it paints candles red, if uptrending it paints candles green,
no trending, it paints candles white.
AssignPriceColor(if signal1 then Color.red else if Signal2 then Color.green else Color.WHITE);

Read through this long thread about the Mobius's Supertrend to find out more than you ever wanted to know ;)
https://usethinkscript.com/threads/supertrend-cci-atr-trend-for-thinkorswim.1090/
 
Hello. Thanks for this chart setup.
I am getting an (!)error. It says sharedThinkATR : Secondary period cannot be less than primary? It seems like it was working earlier. The rest of the chart works fine, but it is not showing the ATR.
Any suggestions?
 
This strategy is based on stochastics divergence and overbought/oversold levels, with a few other indicators for confirmation. The signals have a high accuracy rate. I trade this on a one minute chart.

The indicators:
The main play is to trade divergences, both regular and hidden. Short term divergences are found on the Stoch(9,3) and should be confirmed with a divergence on Ironrod SMI, although a divergence on the stoch is almost guaranteed to be on the Ironrod SMI. On the other hand, many times the Ironrod SMI picks up divergences more clearly than the stoch and sometimes it picks up divergences when there are none on the stoch, and these can be traded too, but the accuracy rate is higher with both indicators picking up the divergence. Longer divergences are found on the stoch(60,10) and don't need confirmation from any other lower indicator.

EDIT: On stochastics (60,10) I am now using the faster k line (10) for divergences rather than the slower d line (60) because the d line lags way too much and the k line picks up way more divergences. The accuracy of the k line divergences is scary! At least on es.

The highest probability divergence on stoch is when the higher high is above the overbought level and the lower high is below the overbought level, or when the lower low is below the oversold level and the higher low is above the oversold level. The greater the distance between the highs or lows, the higher the probability of the reversal (regular divergence) or continuation (hidden divergence).

Another thing to look out for is when price is in a tight range, not able to make higher highs or lower lows (the swing highs or lows bounce at the same price), but stochastics or Ironrod is making higher highs or lower lows. This has a lower probability of resulting in a reversal or continuation than the regular and hidden divergences, but can still be valid.

Plays can be made with overbought and oversold levels on the stochastics as well. If there isn't a strong trend and price action is in more of a range, matching overbought or oversold levels on both stochastics can be a high probability reversal trade. Pullback plays can be found when stoch(60,10) is at overbought or oversold for a while (more than 30 minutes perhaps) and stoch(9,3) quickly dips to the opposite oversold/bought level.

Confirmation for all of these trades should include a signal from Top Breakout indicator, a change in color (green to red or red to green) of the SMI line on the Ironrod indicator, an arrow from the trend reversal indicator, and a change in color of the Supertrend which paints the candles.

I also draw trendlines and support and resistance lines as part of my strategy and use standard deviation channels to help spot potential reversal areas.

Using the same system on a five minute chart will help spot higher probability and longer lasting moves.

This seems to work particularly well on futures, perhaps because they move more than most stocks.

View attachment 9344
View attachment 9345
View attachment 9346
View attachment 9347
View attachment 9348
View attachment 9349
View attachment 9350
View attachment 9351
View attachment 9352
View attachment 9353
View attachment 9354
View attachment 9355
View attachment 9356
what are those small arrows? and those pink and blue dotted line.
 

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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