I am attempting to plot a horizontal line at a particular price point, in this case, 10% above the prior day's close to Earnings Day. It only plots the value on the Y axis, but not the line.
I am using the below code section which provides Earning Statistic and just wanted to add a horizontal line for my criteria.
Code Section : Earnings Statistic in the link Earnings Statistic
My added code -->
def myPrice = RoundDown(open[0] / (EPct + 1) * (1+10/100),0);
plot plotLine = (if gapUp and displayGaps
then myPrice
else Double.NaN);
plotLine.SetDefaultColor(Color.GREEN);
plotLine.SetPaintingStrategy(PaintingStrategy.LINE);
plotLine.SetLineWeight(2);
As show beow, for it only plots the value (circled in red) on the Y axis, how do I plot the entire line? I am including @SleepyZ who had helped me with plotting a horizontal line for the current stock price in case there are suggestions.
I am using the below code section which provides Earning Statistic and just wanted to add a horizontal line for my criteria.
Code Section : Earnings Statistic in the link Earnings Statistic
My added code -->
def myPrice = RoundDown(open[0] / (EPct + 1) * (1+10/100),0);
plot plotLine = (if gapUp and displayGaps
then myPrice
else Double.NaN);
plotLine.SetDefaultColor(Color.GREEN);
plotLine.SetPaintingStrategy(PaintingStrategy.LINE);
plotLine.SetLineWeight(2);
As show beow, for it only plots the value (circled in red) on the Y axis, how do I plot the entire line? I am including @SleepyZ who had helped me with plotting a horizontal line for the current stock price in case there are suggestions.