Study to filter bid-ask spread

S

sepidpooy

New member
Hi there,

New member here. I want to create a study filter based on the bid-ask spread. Do you know why the following study filter returns no stocks ? I have almost all timeframe periods but it does not work.

Code:
def b = close( priceType = PriceType.BID);
def a = close( priceType = PriceType.ASK);

plot s = (a-b) > 0;
 
mckenzieatix

mckenzieatix

New member
VIP
Hi there,

New member here. I want to create a study filter based on the bid-ask spread. Do you know why the following study filter returns no stocks ? I have almost all timeframe periods but it does not work.

Code:
def b = close( priceType = PriceType.BID);
def a = close( priceType = PriceType.ASK);

plot s = (a-b) > 0;
There is a post here about it: https://usethinkscript.com/threads/...g-stop-and-fibonacci-retracements.2486/page-9
Also easycators covered it here:
 
wtf_dude

wtf_dude

Active member
FYI it's not something you can edit but if you're looking at spreads to find liquid options, go to the public watchlists and one of them is Penny Increment Options. That will give you the most liquid stock options available
 

Similar threads

Top