I'd like to plot dots above or below expected cycle highs and lows....(as opposed to drawing vertical lines via coding or drawing tools).
Using code snippets from Scott Schulz's Moon Phase post dated 02/05/12 find my coding attempt below:
declare once_per_bar;
declare upper;
# Inputs
input date = YYYYMMDD;
def signal = date;
def Show_Marker = yes;
def Signal_Position = 0.5;
#distance from bar where signal is plotted
input Plot_close_on_lower = No;
def BarHeight = Power(Double.E, Average(Log(Max(high - low, TickSize())), 5));
def SignalLoc1 = BarHeight * Signal_Position;
plot Price = if Plot_close_on_lower then close else Double.NaN;
Price.SetStyle(Curve.POINTS);
Price.SetLineWeight(3);
Price.SetDefaultColor(Color.DARK_ORANGE);
#plot date;
Price.SetStyle(Curve.POINTS);
Price.SetLineWeight(3);
Price.SetDefaultColor(Color.DARK_ORANGE);
Any help would be greatly appreciated....
Using code snippets from Scott Schulz's Moon Phase post dated 02/05/12 find my coding attempt below:
declare once_per_bar;
declare upper;
# Inputs
input date = YYYYMMDD;
def signal = date;
def Show_Marker = yes;
def Signal_Position = 0.5;
#distance from bar where signal is plotted
input Plot_close_on_lower = No;
def BarHeight = Power(Double.E, Average(Log(Max(high - low, TickSize())), 5));
def SignalLoc1 = BarHeight * Signal_Position;
plot Price = if Plot_close_on_lower then close else Double.NaN;
Price.SetStyle(Curve.POINTS);
Price.SetLineWeight(3);
Price.SetDefaultColor(Color.DARK_ORANGE);
#plot date;
Price.SetStyle(Curve.POINTS);
Price.SetLineWeight(3);
Price.SetDefaultColor(Color.DARK_ORANGE);
Any help would be greatly appreciated....