Huffmac90
Member
Gents,
Playing with a new entry exit code that works pretty well but creates a terrible blob cloud across the screen. Trying to get it to just plot a vertical line where the cloud starts and stops.
Playing with a new entry exit code that works pretty well but creates a terrible blob cloud across the screen. Trying to get it to just plot a vertical line where the cloud starts and stops.
Code:
def RSI = reference RSI(length = 13).RSI;
def highRSI = Highest(RSI, 21);
def lowRSI = Lowest(RSI, 21);
def RSIAverage = 100 * (RSI - lowRSI) / (highRSI - lowRSI);
def Net = Average(RSIAverage, 3);
def Delta = Average(Net, 5);
def Profile1 = highestall(high);
def Profile2 = lowestall(low);
def neg = if delta < delta[1] then lowestall(low) else Double.NaN;
#plot P1plot = profile1;
#plot P2plot = Profile2;
#Plot negplot = neg;
#AddVerticalLine(profile1, profile2, Color.green, curve.SHORT_DASH);
#AddVerticalLine(neg, profile1, Color.red, curve.SHORT_DASH);
AddCloud(Profile1, Profile2, Color.green);
AddCloud(Profile1, neg, Color.red);