TOS Volume Scan (pocket Pivot)


Category:
0
0

Hello,

 

 

Hi there

I would love some help creating a scan. I’m looking for a scan that shows UP volume for the day that is greater than any DOWN volume days in the previous 10 days

2nd condition is Stock must be less than 10% above 10 Daily Moving average.

See attached image

Thanks. Matthew

Attachments:
Marked as spam
Posted by (Questions: 3, Answers: 3)
Asked on February 8, 2020 10:27 am
785 views
0
Private answer

I move this question out of the "Chart Studies" topic and into the "Stock Scanners" topic.

I think this should do the trick. I have not tested it:

input maLength = 10;
input maType = AverageType.SIMPLE;
input maPrice = close;
input percentThreshold = 10.0;
def ma = MovingAverage(maType, maPrice, maLength);
def upBar = close > open;
def upBarVolume = if upBar then volume else 0;
def downBarVolume = if !upBar then volume else 0;
plot scan = upBar and upBarVolume > Highest(downBarVolume, 10) and close < ma * (1 + (percentThreshold * 0.01));

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on February 8, 2020 11:03 am
0
Thanks so much Pete. I will be making a contribution. Matthew
( at February 8, 2020 4:50 pm)
0
Thanks Pete, I've been testing it and it seems to be working well. Thanks. One thing, After I copied the scan into the Think Script Editor I can't seem to switch to the condition wizard as it's ghosted. See image attached. Any feedback on this and thanks again!!
( at February 11, 2020 11:50 am)
0
That is absolutely correct. When you have custom code like this the Condition Wizard is taken completely out of operation.
( at February 11, 2020 12:07 pm)