Good day. Can anyone help me with background color for watchlist indicator "unusual volume", code is below:
Code:
#Wizard input: price
#Wizard text: is at least
#Wizard input: percent
#Wizard text: %
#Wizard input: Choice
#Wizard text: than
#Wizard input: length
#Wizard text: bars ago
input price = volume;
input percent = 50;
input Choice = {default greater, less};
input length = 1;
def x = 100*(price / price[length]-1);
plot scan;
switch (Choice){
case greater:
scan = x >= percent;
case less:
scan = x <= -percent;
}