A wonderful, simple, top and bottom intraday signal

P

Playstation

Active member
VIP
@BillMurray shared his grid to VIP channel, and please let me know if you do not wish to continue this request.
So what was shared was the combination of 2 very simple TOS default indicators:

AccumDistBuyPr (default settings)
StochasticSlow (OB100, OS0, K14, D1)

The results were frankly quite amazing. It can pick the top and bottom very well. When the AccumDistBuyPr line hit the StochasticSlow 100% line, it signals the absolute top, and if it hits the 0% line, it signals the absolutely bottom.

Therein lies 2 problems.

a) Being a noob, I tried to combine the scripts so that I can use on mobile. However, the results were....disastrous. The 100% line became stretched to unlimited OB.

b) On desktop, I manually dragged the 2 indicators to lower charts. It works well when zoomed out, and you can see the top hit 100% (bounded).



However, as I zoom in, it became skewed somehow, and it didn't hit 100%.



Many times, I zoom in the charts due to my intraday scalps. Is there anyway to make the AccumDistBuyPr not skewed or in other words, ensure the zoom in and zoom out points are the same? And if there needs to be a new script, can some kind soul make this so that on mobile, the range is bounded to 100% and 0%? Or, with arrows even better for scans on low TF.
 
horserider

horserider

Well-known member
VIP
Scaling problem in putting the two studies in the same window. Since the stochastic is on a 0 to 100 scale the upper and lower lines are just arbitrary lines representing 80 and 20 % of the scale. Possibly using a linear regression channel you could set the outer lines to be 80 %.
 
Rojo Grande

Rojo Grande

Member
VIP
I'm a noob also, so this may sound dumb as dirt. After you've dragged the two studies into one lower chart, turn off the slow K and slow D plots. If all your after is the AccumDistBuyPr line touching the high or low line.
 
P

Playstation

Active member
VIP
@Rojo Grande solution doesn't work, since percentages are not exactly bounded. 100% isn't a "true" value of an exact number. That's the exact problem @horserider pointed out. I don't know how to code, much less understand what linear regression channel means :LOL: :LOL: :LOL: Maybe I need to use this current skewing as it is, and zoom in for intraday.
 
Rojo Grande

Rojo Grande

Member
VIP
It appears you're using a two minute chart which leads me to believe you're going to use this for day trading entry into trades. If so, it appears that the chart is accurate for real time. As you noted, it does distort, but long after it would have been used to enter a trade. Thank you for sharing this. I'm going to play with it tomorrow.
 
Rojo Grande

Rojo Grande

Member
VIP
@Playstation That will make two of us in the same boat.
 
P

Playstation

Active member
VIP
@Rojo Grande i used ticks charts on futures. does serve the same purpose though. the accumulation distribution is amazing, just need to lock the skewing to spot properly. But it's not a big problem, just need to observe on a zoomed out chart for higher TF, zoomed in for lower TF or ticks.
 
P

Playstation

Active member
VIP
@Joreha you might have to ask him on the VIP chat.
 
horserider

horserider

Well-known member
VIP
Code:
declare lower;

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;

plot AccDist = TotalSum(data);
AccDist.SetDefaultColor(GetColor(1));
 
def price = accdist;

input deviations = 1.68;
input fullRange = Yes;
input length = 20;

input widthOfChannel = 80.0;

plot MiddleLR;
if (fullRange)
then {
    MiddleLR = InertiaAll(price);
} else {
    MiddleLR = InertiaAll(price, length);
}

def dist = HighestAll(AbsValue(MiddleLR - price)) * (widthOfChannel / 100.0);

plot UpperLR = MiddleLR + dist;
plot LowerLR = MiddleLR - dist;
 
P

Playstation

Active member
VIP
@horserider amazing work as always 👍 gonna try that after work.
 
horserider

horserider

Well-known member
VIP
Well no idea if that works. Just a possible way to see when peaks are over a certain level from the mean. That seems to be the idea of the first post.
 
P

Playstation

Active member
VIP
@horserider no worries. Even if it doesn't, the dumb way of combining both does work, just the scaling issue. A trader just needs to scroll in and out and be more observant.
 
BenTen

BenTen

Administrative
Staff
VIP
Combining multiple indicators into the same section is not recommended due to scaling issue. The exact issue that you just mentioned, when you zoom in and out, it shows different values.. It's like mixing oil with water :D
 
M

mashume

Active member
VIP
Not to take anything away from what @horserider put together, but here's an alternative. It WILL keep itself pegged if higher highs continue to be made. It will drop from 1 when the price is no longer making a higher high. Same goes for Lower Lows. This is because I chose to normalize the data over the range of 0 to 1. If you make a higher high, it's still 1 and everything before gets compressed.

I did not take time to put inputs on this. everything is hard coded. Feel free to adapt as you see fit.

Of course, I'm not party to the VIP chat, but just combining two indicators can be done this way.

Code:
declare lower;

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 AD = TotalSum(data);
plot AccDist = (AD - lowestall(AD)) /(highestall(AD) - lowestall(AD));
AccDist.SetDefaultColor(GetColor(1));

def stoch = StochasticSlow("over bought" = 100, "over sold" = 0, "k period" = 14, "d period" = 1).SlowD;

plot SlowD =  (stoch - lowestall(stoch)) /(highestall(stoch) - lowestall(stoch));

plot one = 1;
plot zero = 0;
Happy Trading
-mashume
 
P

Playstation

Active member
VIP
can't believe an eye catching title caught the attention of three of the most eye catching coders in 🤣😂
 
B

BillMurray

Member
VIP
@Playstation I learned of that combo from a trader on twitter named https://twitter.com/deafdaytrader . He passed away late last year. He was an older guy, and was REALLY deaf. I bought his PDF for 10 bucks long ago, and it changed my trading life forever. I learned that little system, tweaked it to my liking. His english was not that good, but in countless email exchanges with him back and forth, I learned the nuances of his thinking and the way he looked at the setup. Most importantly. DO NOT ZOOM It will catch tops and bottoms with incredible, spooky, accuracy.

I use the flexible grids below quite a bit. The first is for intraday. The 2nd is for swings.

https://tos.mx/0qXMaIh - Flexible Grid - INTRADAY - Reversal. - You'll note that each time frame is set to 2 days and their timeframe. DO NOT zoom.

https://tos.mx/7wNIPbV - Flexible Grid - SWING TRADE - Reversal - This is meant for swing trades. Pretty much flawless. Weekly is best for me here.

FWIW, and being that the man has passed, I've put a link to his PDF below. (I have it in my OneDrive). He was a genuine, helpful, successful small trader. He scalped the hell out of SPX daily using this system. Just small grabs on the trades he did. I use it on everything, it's an equal opportunity system. It just works.

My Favorite Indicator - DeafDayTrader
 
P

Playstation

Active member
VIP
@Joreha The tools are already given to you on a silver platter. And here I am, still stuck at work, can't wait to go home and try it myself.
 
YungTraderFromMontana

YungTraderFromMontana

Well-known member
Just tested this indicator and it isn't as magical as some of you think. The reason it looks so appealing is because when you view a timeframe you are only left with the successful signals. If a signal goes past the overbought of oversold ranges it will just expand the y axis to adjust to this increase. When the AccumDistBuyPr reaches a top the axis will stop expanding and you are left with a perfect signal but you only see the perfect signals not any of the failed ones. This will only work if the stock is consistently ranging between two price zones, if not the signals can't be trusted.
 
Top