@ravikumark0907, there is an old saying "You get more flies with Honey than with Vinegar".
Similarly on this site, "You get more help if you show us you have put some effort in".
So, if you are new to AmiBroker and AFL, check out the following:
How to use this site
How do I learn AFL?
How do I debug my formula?
This site is help, not a coding service. Show us you are putting in an effort, and many are willing to help.
So, sit back with your favourite beverage, and READ the manual. Yep, actually READ the manual... Then try out the code samples for things that are similar to what you want to do.
Good Luck. Post back here when you are hitting stumbling blocks.