Scanner for SpikeVolumePrice

Ken Rose of TD Ameritrade created a watchlist column for SpikeVolumePrice. Can you please, help to create a scanner based on this watchlist criteria?

Code:
#follow @KRose_TDA on twitter for updates to this and other custom scripts
#Script is meant to find stocks trading above yesterdays close and trading close to the highs of the day along with above average volume
#Set line 13 length to desired average for Volume
#Set Line 12 to Desired price %
#Set line 15 to desired volume %
#Best to run close to market close
#http://tos.mx/D74x1Zx


def price = close;
def InterDayStrength = (close-open/open)>.003 and close > close[1];
def PointInRange =  InterDayStrength and((close-low)/(high-low))>.95;
def tst = reference VolumeAvg(length = 30).VolAvg;
def tstv = Volume();
def vlu = tstv/tst > 1.10;
AddLabel(yes, if PointInRange and vlu then "SpikeVolPrice"  else " ",Color.plum); AssignBackgroundColor(if PointInRange and vlu then color.YELLOW else color.WHITE);
 

GAXX

New member
If you want to turn this into a scan, change the AddLabel to a plot. Something like this should work.

Code:
def price = close;
def InterDayStrength = (close - open / open) > .003 and close > close[1];
def PointInRange =  InterDayStrength and ((close - low) / (high - low)) > .95;
def tst = reference VolumeAvg(length = 30).VolAvg;
def tstv = Volume();
def vlu = tstv / tst > 1.10;

plot data = PointInRange and vlu;

https://tos.mx/aOWFaU9
 

Similar threads

Top