this look really good! is there any way to use this in a shorter time frame? or increase the number of signals? looking to using this on tick charts
Yes, I noticed the same thing. Also, if u are backtesting on say 15 min 5 days & change the duration of the time to 15 mins 10 day or 15 mins 30 days it will give u almost completely different signals.Not to hijack the OP thread but I took a liking to jnitro version, however, it is plagued with repaints and 3 bars late. The general census shows interest in the direction of swing trades at a lower time frame. For example on 11/27/2020 opening for PLTR showed interest for a short side around 5:30 am printing on 4:45 am candle and disappear once price rise above it. It happened a few times until the price decided to flip direction. I would thread carefully with breakeven stop losses.
for fun, i recorded a few hours of the indicator at work, then compressed everything into a fast version, five or so minutes long. signals worth looking at are noted below.
0:11 -- goes long
1:00 - exits long
1:12 -- the earlier long signal disappears as does the exit
1:15 -- both briefly reappear.
1:28 -- new long signal
5:13 -- long signal flashes on and off.
5:15 -- long signal disappears and that's where i stopped the exercise.
this was about 3 or four hours worth of real time action. as much as i want to love the indicator, i just don't see how to use it.
setting was 5 minutes, today only.
thoughts?
Watch list doesn't work for me. Here is the modified code for WL column. I took the study and tried to create WL column. any help?Warning: This is a repainting indicator/strategy. Proceed with caution.
So I keep coming back to the AccDist (with Stochastic) and the AccDist (with Linear Regression) and I'm starting to really like it.
The original idea came from a post thread that begins here: https://usethinkscript.com/threads/a-wonderful-simple-top-and-bottom-intraday-signal.1981/ and
I posted something awhile back here: https://usethinkscript.com/threads/a-wonderful-simple-top-and-bottom-intraday-signal.1981/post-39357
So I've patched together a little strategy that finds excellent entries and definitely successful exits... but not optimal exits. I'm hoping that others might jump in and start a dialog about how to optimize exits. What I did was combine the AccDist_Stochastic indicator with a CCI_Extremes indicator (which basically just signals when CCI has hit +200 or -200....which are often reversal or retracement points).
Note: I've come to the conclusion that with either of the AccDist indicators, displaying them on charts with multiple days can be deceiving. Meaning that the indicator may display wonderful tops and bottoms on, let's say, a 5min/10 day chart, but when those days were happening in real time, the signals may not have been there. The indicator is fickle that way. So, my conclusion is this: use this only on a "today" chart, meaning 3min:Today, 5min:Today, 10min:Today, 15min:Today and so on.
A lot of the entries happen after market closes/reopens, overnight and quite often 1-2 hrs before market open.
I didn't note original authors in the script, so let me say that all credit goes to @BillMurray , @Playstation @horserider , @BenTen , @mashume , @we29125 and others. I was just monkeying around tossing snippets into someone elses code.
I have included a chart layout that has the strategy (2 slightly differerent versions) in side by side charts like the image below. That chart is located here: http://tos.mx/VRj7S2b
Thanks to any and all that jump in.
View attachment 8546
Watch list doesn't work for me. Here is the modified code for WL column. I took the study and tried to create WL column. any help?
declare lower;
input overbought = 1;
input oversold = 0;
def data = if close > close[1] then close - Min(close[1], low) else if close < close[1] then close - Max(close[1], high) else 0;
def over_bought = overbought;
def over_sold = oversold;
def AD = TotalSum(data);
plot AccDist = (AD - LowestAll(AD)) / (HighestAll(AD) - LowestAll(AD));
AccDist.SetDefaultColor(GetColor(1));
def stoch1 = StochasticSlow("over bought" = 100, "over sold" = 0, "k period" = 9, "d period" = 3).SlowD;
#plot SlowD1 = (stoch1 - LowestAll(stoch1)) / (HighestAll(stoch1) - LowestAll(stoch1));
#SlowD1.SetDefaultColor(GetColor(3));
def stoch2 = StochasticSlow("overbought" = 100, "over sold" = 0, "k period" = 5, "d period" = 3).SlowD;
#plot SlowD2 = (stoch2 - LowestAll(stoch2)) / (HighestAll(stoch2) - LowestAll(stoch2));
#SlowD2.SetDefaultColor(GetColor(5));
plot one = 1;
plot zero = 0;
#plot half = 0.5;
input showBreakoutSignals = yes;
def signalup = if AccDist crosses above over_sold then over_sold else Double.NaN within 2 bars;
def signaldown = if AccDist crosses below over_bought then over_bought else Double.NaN within 2 bars;
AssignBackgroundColor(if signalup then color.LiME else if signaldown then color.lIGHT_ORANGE else color.WHITE);
##########################################################
AddLabel(yes, if signalup then "" else if signaldown then "
" else " ", if signaldown then Color.dark_red else if signalup then Color.dark_GREEN else Color.ORANGE);
AssignBackgroundColor(color.light_ORANGE);
############################################################
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
![]() |
Stochastic / EMA crossover Strategy For ThinkOrSwim | Strategies & Chart Setups | 12 | |
F | Stochastic - 21EMA Strategy For ThinkOrSwim | Strategies & Chart Setups | 30 |
Start a new thread and receive assistance from our community.
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.
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.