oldDOSuser
New member
New Highs count Watchlist Custom Column. Trying to use as scanner filter but having trouble setting condition to certain amount anything over 100.
# Custom Watchlist Column: New High Incremental Count
def newDay = GetYYYYMMDD() != GetYYYYMMDD()[1];
def lowestLow = if newDay then low else Min(lowestLow[1], low);
def highestHigh = if newDay then high else Max(highestHigh[1], high);
def highDifference = highestHigh - lowestLow;
def increment = 0.01; # Set the increment to 1 cent
def highCount = Round(highDifference / increment, 0);
plot count = highCount;
# End script
# Custom Watchlist Column: New High Incremental Count
def newDay = GetYYYYMMDD() != GetYYYYMMDD()[1];
def lowestLow = if newDay then low else Min(lowestLow[1], low);
def highestHigh = if newDay then high else Max(highestHigh[1], high);
def highDifference = highestHigh - lowestLow;
def increment = 0.01; # Set the increment to 1 cent
def highCount = Round(highDifference / increment, 0);
plot count = highCount;
# End script
Last edited: