i want to draw some support or resistance levels on the price chart .but when i try to plot it plots the historical support and resistance levels.i only want the last support and res level only to be plotted ie the plots on the price graph should be against a single(last ) value of the resistance and suppport .ie the resistance and the support plots should be parallel to x axis.how do i proceed
Plot(Resistance1,"R1",colorRed);
right now i am using this plot function but it gives me the plot for all the support and resistance levels the stock has undergone.i only want to plot the latest support and resistance levels. iam using the formula
Pivot = ( Ref(High,0) + Ref(Close,0) + Ref(Low,0) )/3;
Resistance3 = Ref(High,0)+ 2 * (Pivot - Ref(Low,0));
Resistance1 = 2 * Pivot - Ref(Low,0);
Support1 = 2 * Pivot - Ref(High,0);
Resistance2 = Pivot + (Resistance1 - Support1);
Support2 = Pivot - (Resistance1 - Support1);
Support3 = Ref(Low,0)- 2 * (Ref(High,0) - Pivot);
Plot(Resistance1,"R1",colorRed);
Plot(Resistance2,"R2",colorRed);
Plot(Resistance3,"R3",colorRed);
Plot(Support1,"S1",colorOrange);
Plot(Support2,"S2",colorOrange);
Plot(Support3,"S3",colorOrange);
i found the resistance and support level logics from another thread in this forum.plz help me out