[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Drawing Support and Resistance horizontal lines on intra day chart



PureBytes Links

Trading Reference Links

 
Friends,

  I have the following requirement.

  I have support and resistance for nifty index (India) for the day. I would like
to draw these lines in the intra day charts. I would like to know how
to draw it. I tried my hands with the AFL but it in vain. I have
attached the sample image of what I am trying to achieve. The yellow
horizontal lines are the support and resistance. I also want them to
be of different color. Can anybody help me out on how to achieve this?
 
 Below is the formula that i have used..

DP=(H+L+C)/3;

R1=(2*DP)-L;

S1=(2*DP)-H;

T1=(R1-S1);

T2=(R1-S1);

R2=DP+T1;

S2=DP-T2;

 

Plot(C,"Close",colorBlack,styleBar);

Plot(R1,"Resistance1",colorRed,styleLine);

Plot(R2,"Resistance2",colorOrange,styleLine);

Plot(S1,"Support1",colorDarkBlue,styleLine);

Plot(S2,"Support2",colorGreen,styleLine);

 

Plot(DP,"Pivot",colorPink,styleLine);

 

Actually what I want is to calculate the support and resistance from closing values of the previous day and draw the linear lines on the intraday chart... The above draws the graph for each candle of the intraday. Also I would like to super impose these lines on the inbuilt price charts of AmiBroker. If mail not clear let me know so that I will try to rephrase my words.

 

Cheers,
Govind


Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web


Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

PNG image