TheFizzlyGritton
New member
Hi all,
I'm simply looking to add a study to a scan which shows only stocks that are currently (last price) 7% lower than yesterday's close.
There's probably a few ways to construct this, but all that I've tried have shown some sort of error.
This one shows the error "Wrong timestamp":
input percentdecrease = 0.93;
input priceType = PriceType.LAST;
def currentPrice = close(priceType=priceType);
plot scan = (currentPrice * percentdecrease)
I'm sure there are other errors in the script above, but I've thought the last line might be changed to show:
plot scan = currentPrice < (close * percentdecrease)
Any thoughts or tips would be awesome, and thanks to all in advance
I'm simply looking to add a study to a scan which shows only stocks that are currently (last price) 7% lower than yesterday's close.
There's probably a few ways to construct this, but all that I've tried have shown some sort of error.
This one shows the error "Wrong timestamp":
input percentdecrease = 0.93;
input priceType = PriceType.LAST;
def currentPrice = close(priceType=priceType);
plot scan = (currentPrice * percentdecrease)
I'm sure there are other errors in the script above, but I've thought the last line might be changed to show:
plot scan = currentPrice < (close * percentdecrease)
Any thoughts or tips would be awesome, and thanks to all in advance