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.
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;