VWAP scan for stocks that trade options


Category:
0
0

Hello!   Thank you so much for all the help, I honestly believe you must love what you do!

 

What I’m trying to do is find the pattern below where basically there are 5 previous bars that close above vwap and the current bar’s low passes below VWAP.  The good news is I think I have that working!   What I want to do after that is only include stocks that have options.  I tried adding an option filter where the ask is above .01 but the performance is horrible!   Would it possible to take a look at what I have below and tell me the best way to include options?

Blue Square is above VWAP, the red square is crossing below!

 

 

 

 

Thanks!

 

def data = reference VWAP().”VWAP”;
def data1 =data[1];
def data2 =data[2];
def data3 =data[3];
def data4 =data[4];
def data5 =data[5];

def lowPrice = low;
def closePrice = close;
def closePrice1 =close[1];
def closePrice2 =close[2];
def closePrice3 =close[3];
def closePrice4 =close[4];
def closePrice5 =close[5];

plot scan;
scan = lowPrice < data and closePrice1 > data1 and closePrice2 > data2 and closePrice2 > data2 and closePrice3 > data3 and closePrice4 > data4 and closePrice5 > data5;

Attachments:
Marked as spam
Posted by (Questions: 5, Answers: 3)
Asked on April 3, 2020 5:17 am
164 views
0
Actually it doesn't look like my vwap detection is working. I can't add an image https://pasteboard.co/J271rN8.png
( at April 3, 2020 8:15 am)
0
This is an incredible chart. I love the VWAP, and my mentor is a huge believer in it as well...How did you add the green/red in the chart? Please help... thanks a million
( at May 8, 2020 7:52 am)
0
Private answer

Yes I do absolutely love what I do. I thank God everyday that I get to earn my living doing all my favorite things. Helping, Teaching, Solving Puzzles and Learning new things.

So I see that you have your code already complete and all you are asking here is how to get the scan results to only include stocks that trade options. This is very simple and doesn't require any custom code at all. I use this for all of my scans to remove stocks that have low trade activity.

Screenshots below shows how to set this up. It's what I call the "top level filter". Examples below include comments and drawings to show you how to set this up. I personally use the "Weeklys" filter for my swing trades because I want to make sure I can sell covered calls into resistance.

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4091)
Answered on April 3, 2020 8:24 am