EmmaFrosty
New member
Works really nice as a lower indicator for trading /ES futures.
Code:
declare lower;
input TimeFrame = AggregationPeriod.TWO_MIN;
def TOP = Max(high("$TICK", Timeframe),0);
def BOT = Min(Low("$TICK", TImeFrame),0);
addcloud(TOP,0,color.green, color.green, yes);
addcloud(0,BOT,color.red, color.red, yes);
plot pos250 = 250;
pos250.setdefaultColor(color.gray);
plot pos500 = 500;
pos500.setdefaultColor(color.gray);
plot pos1000 = 1000;
pos1000.setdefaultColor(color.gray);
plot neg250 = -250;
neg250.setdefaultColor(color.gray);
plot neg500 = -500;
neg500.setdefaultColor(color.gray);
plot neg1000 = -1000;
neg1000.setdefaultColor(color.gray);