Counting Up & Down Volume Days
Author: Tobey
Creation Date: 7/31/2015 9:32 AM
profile picture

Tobey

#1
Hi Cone & Eugene,

In looking at long flat bases I'd like to count the number of up days on big volume and the number of down days on big volume. The idea is, If there are more up days on big volume than down days value investors are buying in before a move up.

The period for the counting would be the last 50 days

A big volume up day would equal

If close is greater than yesterday and volume was 150% greater than the average volume for the last 50 days count as big up volume day.


A big volume down day would equal

If close is less than yesterday and volume was 150% greater than the average volume for the last 50 days count as big down volume day.

Plot the number of big up volume days - big down volume days.



Is there an example of something like this that I could use as a temple to get stated.


Many Thanks
Tobey
profile picture

Eugene

#2
Tobey,

QUOTE:
If close is greater than yesterday and volume was 150% greater than the average volume for the last 50 days count as big up volume day.


It's trivial to implement yourself using the Rule Wizard. Both conditions are selectable from the "Price (or Volume) Action" group. Here's your "big volume up day":



profile picture

Tobey

#3
Hi Eugene,

The above code/rule would buy on one day up with heavy volume. I'd like to count the number of Up days - the number of down days on heavy volume over the last 50 days. Then the buys signal would be the count of Up days on heavy volume 2 greater that the down days on heavy volume.

What I was hope to find was some code that would count the number of occurrences of something in a given time period.

Thanks again for the help.
Tobey
profile picture

Eugene

#4
QUOTE:
I'd like to count the number of Up days - the number of down days on heavy volume over the last 50 days. Then the buys signal would be the count of Up days on heavy volume 2 greater that the down days on heavy volume.


Here's how your signal might be coded using the built-in Sum indicator:

CODE:
Please log in to see this code.
profile picture

Tobey

#5
Hi Eugene,

As always, Thanks for all your help!
Tobey
profile picture

Eugene

#6
Glad to have helped.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).