AmiBroker Tips

#32
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
 
#33
Is this possible ?
What I am looking for is automation of the stock picking process. Please allow me to discuss in detail the aspects I am looking for.

1. Camarilla levels shall be calculated as per the following equations :
H5 = (H/L)*C
H4 = [1.1*(H-L)/2]+C
H3 = [1.1*(H-L)/4]+C
H2 = [1.1*(H-L)/6]+C
H1 = [1.1*(H-L)/12]+C

L1 = C-[1.1*(H-L)/12]
L2 = C-[1.1*(H-L)/6]
L3 = C-[1.1*(H-L)/4]
L4 = C-[1.1*(H-L)/2]
L5 = C-(H5-C)

2.These levels must be used to develop a Custom Indicator, a Custom Exploration and a Custom Expert Advisor.
3.All of the above must take care of trading holidays even those which fall within the week.
4.Custom Indicator : An integrated indicator which will display the weekly and daily Camarilla levels when plotted on any chart irrespective of whether it is an RealTime intraday chart, a daily chart or a weekly chart with easily recognisable colour coding. Also a seperate indicator for monthly Camarilla levels.
5.Custom Exploration : Three seperate explorations (daily, weekly and monthly) to find out which stocks are trading near any of the Camarila levels.
6.Custom Expert Advisor : An advisor which when attached to a chart, whether its an RT intraday chart, a weekly chart or a monthly chart, alerts with a visual and audio alert when the stock trades near any of the Daily, Weekly or Monthly Camarilla levels.
7.Changes necessary in the coding if the numbers (2,4,6,12) in the equations are to me modified.
8.System backtester.
9.Passowrd protection (of course should be know to me) for all of the above.

If anyone can provide me a code for the above or a part thereof, it will be of immense help.
Thank you.
 
#34
Re: Stocks To Keep A Close Eye On - Chapter II

Where can i find the AFL for this system ?
Also,
Is this possible ?
What I am looking for is automation of the stock picking process. Please allow me to discuss in detail the aspects I am looking for.

1. Camarilla levels shall be calculated as per the following equations :
H5 = (H/L)*C
H4 = [1.1*(H-L)/2]+C
H3 = [1.1*(H-L)/4]+C
H2 = [1.1*(H-L)/6]+C
H1 = [1.1*(H-L)/12]+C

L1 = C-[1.1*(H-L)/12]
L2 = C-[1.1*(H-L)/6]
L3 = C-[1.1*(H-L)/4]
L4 = C-[1.1*(H-L)/2]
L5 = C-(H5-C)

2.These levels must be used to develop a Custom Indicator, a Custom Exploration and a Custom Expert Advisor.
3.All of the above must take care of trading holidays even those which fall within the week.
4.Custom Indicator : An integrated indicator which will display the weekly and daily Camarilla levels when plotted on any chart irrespective of whether it is an RealTime intraday chart, a daily chart or a weekly chart with easily recognisable colour coding. Also a seperate indicator for monthly Camarilla levels.
5.Custom Exploration : Three seperate explorations (daily, weekly and monthly) to find out which stocks are trading near any of the Camarila levels.
6.Custom Expert Advisor : An advisor which when attached to a chart, whether its an RT intraday chart, a weekly chart or a monthly chart, alerts with a visual and audio alert when the stock trades near any of the Daily, Weekly or Monthly Camarilla levels.
7.Changes necessary in the coding if the numbers (2,4,6,12) in the equations are to me modified.
8.System backtester.
9.Passowrd protection (of course should be know to me) for all of the above.

If anyone can provide me a code for the above or a part thereof, it will be of immense help.
Thank you.
 

Similar threads