alokranjan3
Member
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);