- Joined
- 30 June 2007
- Posts
- 7,200
- Reactions
- 1,231
Thanks.Buying and Selling Pressure Indicator
The Buying and Selling Pressure Indicator (developed by another) has invoked a lot of interest which is actually a very simple indicator using the excursion of the price.
Many times it is just a matter of how we are looking at the data
We can glean a lot of information if we look at the data the right way. The buying and selling pressure indicator is also the same case. It's a very simple Indicator, using the Open, High, Low, and Close and the Volume. It obviously not a Holy Grail, but does give a very good picture of the buying and selling pressure.
The "raw buying and selling indication"
Is provided in terms of a Histogram. Green bars above zero show the buying pressure and the red bars below the zero line show the selling pressure. This presents a good visual representation of the dominating pressure.
The second is a "smoothed version"
This version with a yellow line representing the selling pressure and a turquoise line which represents the buying pressure. If the turquoise line is above the yellow line it would mean that the buying pressure is more and vice versa. The difference between the two is plotted as a Histogram. This is a cumulative value of the buying and selling pressure and provides an easy visual presentation of the dominating pressure.
The trifecta
The two indicators the (Raw and Smoothed Buying Pressure Indicator) and the (Percentage Up Filter) can easily complement any trading strategy.
View attachment 160265
Skate,
It's a very simple Indicator, using the Open, High, Low, and Close and the Volume
How does it use volume when indices like XAO don't have volume?
That's fine, but my question was...In summary
@Gringotts Bank the "Buying and Selling Pressure Indicator" uses price spreads and ranges to calculate buying/selling pressures, normalizes them by their own EMAs, weights them by normalized volume, and smoothes the final result. The difference between the volume-weighted pressures gives the overall force indicator. In a nutshell, the buy and sell pressure uses volume-weighted averages.
So there is no misunderstanding
Here is a definition of the array name and below is the process.
1. sp = price spread
2. bp = range
3. bpavg, spavg = buying price average and the price spread average normalization (EMAs)
4. nbp, nsp = normalized buying price (nbp) and normalized price spread (nsp)
5. diff = force indicator
6. Varg = volume normalization EMA
7. nv = normalized volume
8. nbfraw, nsfraw = volume weighted pressures
9. nbf, nsf = final smoothed pressures
10. diff = final force indicator
The key steps in English
1. Calculate the price spread (sp) as High - Close and buying pressure (bp) as Close - Low.
2. Smooth (bp) and (sp) using EMAs to get (bpavg) and (spavg).
3. Normalize (bp) and (sp) by dividing by their EMAs to get (nbp) and (nsp).
4. Calculate the difference between (nbp) and (nsp) to get the force indicator (diff).
5. Smooth the volume using an (EMA) to get (Varg).
6. Normalize volume by dividing by (Varg) to get (nv).
7. Multiply (nbp) and (nsp) by (nv) to weight them by normalized volume.
8. Further smooth the volume weighted (nbp) and (nsp) using EMAs to get the final buying (nbf) and selling (nsf) pressures.
Summary
I've taken the time and care to explain the process. I normally resist discussing complex coding as it tends to raise questions because of a lack of understanding. Discussing advanced coding is tricky without assessing the other person's baseline knowledge first. My aim is not to show off knowledge, but rather to provide meaningful explanations that enrich mutual understanding.
Skate.
How does the code reference volume when indices like XAO don't have volume?
ok that makes sense. Haven't seen the code so I don't know what Varg does.@Gringotts Bank, you're right that the XAO (Australian All Ordinaries) does not have volume information available. The key is that the "Buying and Selling Pressure Indicator" is referencing the volume (V) of the "underlying stocks that make up the index". So even though the index itself does not have volume data, the individual constituent stocks do.
So when the "Buying and Selling Pressure Indicator" is run on an index like XAO, it is actually looking at the volumes of all the stocks that comprise that index. It sums up and averages their volumes in order to come up with overall volume metrics for the index.
Specifically, the Varg variable calculates an 80-period EMA of the total aggregated volumes of the underlying stocks. This smoothed aggregate volume is then used to normalize the buy/sell pressures via the nv variable.
So in summary, even without direct volume data on the index chart itself, the "Buying and Selling Pressure Indicator" makes use of the volumes from the individual component stocks to create volume-weighted metrics. This allows the "Buying and Selling Pressure Indicator" to work across both regular stocks with volume and the index without direct volume data.
Skate.
Does Norgate supply the volume data for the All Ords constituent stocks? I haven't seen that before.
aha, coding skill. Maybe that's where I was lacking!Amibroker + Norgate Data + Coding skill, most things are possible.
Skate.
Didn't you post the idea to keep things simple?
I prefer the percentage UP filter. So simple, and it did trigger in the second week of July to catch the rally.
I was a little disappointed that you stopped the SAP system demo. You started with a few errors but quickly corrected them and I wasn't troubled by that. I was surprised by the depth of your concerns regarding continuing. We're all going to make mistakes occasionally. I even bought 10,000 shares instead of 1000 recently. I sold the 9000 immediately, paying the additional brokerage as the cost for my mistake.
The SAP system would have been triggered into the market again in that second week of July by your Percentage - UP filter and I'm certain the system portfolio would have gained nicely in the two weeks since then.
Do you plan on demo'ing any system soon for the beginners and others like myself?
Break-out of a small trading range (shown by blue rectangles).
In our trading group some also trade breakouts but all with differing setups and all have success of varying degrees. I have explained my setup previously and to satisfy my curiosity, I looked at KGN as a comparison to yours.
Of course it is easy to find breakouts but the challenge is to pick out those that will go on with it, and that is why I have quite a few criteria to be satisfied. As we have all found, some of the really good lookng breakouts can fail a few days later.
One of the biggest hurdles in trading is implementation, ie. placing the actual orders.
some examples:
- Broker limitations, eg. available order types, pricing discrepancies (esp with CFDs), speed
- Platform limitations, eg. time-outs for complex indicators, lack of bid-ask data
- Data feed limitations, eg. missing or incorrect data, spikes
- Personal time limitations, ie. excessive screen time requirements
- Internet latency limitations, (important when scalping)
- Assuming automation will be possible or easy. Sometimes it's simply not possible. When it is possible, it is a far bigger task than most realize. It needs a highly accomplished programmer, a lot of time and cost to set up.
It's not easy, because implementation often has to come near the end of the process, and by then it's usually too late. But it's definitely worth considering early on "Will I actually be able to implement this?".
"Will I actually be able to implement this?".
A question that needs an answer
How do you tell a dog from a tree?
Skate.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?