Traderji.com - Discussion forum for Stocks Commodities & Forex

AmiBroker formula Language

Discuss AmiBroker formula Language at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Originally Posted by murthymsr a great idea, my friend, praveen, to make AB to fetch ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > AmiBroker

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #21  
Old 6th November 2006, 02:45 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 16 Times in 2 Posts
bvpraveen is on a distinguished road
Reputation: 48
Default Re: AFL for importing NSE Bhavcopy

Quote:
Originally Posted by murthymsr View Post
a great idea, my friend, praveen, to make AB to fetch its own data, dispensing with many convertor's available around. i feel it needs a bit of backward integration and incorporation of some user convenience.

1) the NSE cash market bhav copy is savable as a csv file in the format:
cm03NOV2006bhav.csv. you may use the same file naming format to the source file. this will avoid the trouble of renaming the file while saving to the AFL desired format.

the corresponding destination file name could be:
cm03NOV2006.csv, in a different directory to make identifiacation easy for the user. this will be more relevant when other segments also are added.

you may also give the option to user to retain/delete the source file after convertion.

2) the AFL may on it's own generate the file name from the current date & present it as a default, so that life becomes easier for the user.

3) similar AFL's may be generated for FnO segment also after release of the final version after considering all user opinions/requests, if any.

not withstanding above comments, it's firstly a NEW concept and deserves a pat. congratulations.

all the best.
murthymsr
Thanks Murthy and Saji for your comments.

Murthy, I will try to make the following improvements:

1. Reading the source file name to arrive at destination file name.
2. Even better: Taking source and destination filename using date functions, so that the user can just save the .csv file in one particular location and he needn't even give the source path and source file name.
3. Try to make everything UI based. ie presenting a graphical interface, so that the user needn't even touch the AFL code.
4. I will look into make incorporations, so that even we can do bulk import, like say importing one week, one month, one year.etc.. I haven't even seen such bhav copy...will definitely look into it and will provide the new AFL here.

Finally the AFL should work this way: User need to just download bhav copy and run the AFL in one click. Lets see...

Thanks,
Praveen.

Last edited by bvpraveen; 6th November 2006 at 02:48 PM. Reason: updated
Reply With Quote
  #22  
Old 6th November 2006, 03:34 PM
Member
 
Join Date: Aug 2005
Posts: 222
Thanks: 0
Thanked 1 Time in 1 Post
saji oommen is on a distinguished road
Reputation: 31
Default Re: AmiBroker formula Language

Hello,

Again excellent ideas. Thanks

Saji
Reply With Quote
  #23  
Old 6th November 2006, 03:56 PM
Member
 
Join Date: Oct 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
siddhakala is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

Hello Friends,

In AmiBroker is it possible to change built in levels of Indicators? With RSI commonly with RSI 30 & 70 lines are used. After plotting RSI you can change these levels with help of Properties>Axis & Grid. In AmiBroker few built in levels are available, but if you need any other level apart from these e.g. for RSI I want to use 40/60 levels. Is it possible to do? Can any body guide me about this?

Sudesh
Reply With Quote
  #24  
Old 6th November 2006, 04:46 PM
Member
 
Join Date: Aug 2005
Posts: 222
Thanks: 0
Thanked 1 Time in 1 Post
saji oommen is on a distinguished road
Reputation: 31
Default Re: AmiBroker formula Language

Hello Sudesh,

Simply open the edit formula function by right clicking on the indicator and paste these in the AFL and save it. Change the numbers as you want .

Plot(80,"80",colorRed,1);

Plot(80,"80",colorYellow,1);
Plot(70,"70",colorDarkRed,1);

Plot(60,"60",colorRed,styleDots);
Plot(50,"50",colorSeaGreen,1);
Plot(30,"30",colorDarkGreen,styleDots);
Plot(20,"20",colorBrightGreen,1);

Regards

Saji
Reply With Quote
  #25  
Old 6th November 2006, 04:47 PM
Member
 
Join Date: Aug 2005
Posts: 222
Thanks: 0
Thanked 1 Time in 1 Post
saji oommen is on a distinguished road
Reputation: 31
Default Re: AmiBroker formula Language

Hello,

There is another method. Use param function. Go through AFL documentation.

Regards

Saji
Reply With Quote
  #26  
Old 6th November 2006, 05:19 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 16 Times in 2 Posts
bvpraveen is on a distinguished road
Reputation: 48
Default Re: AmiBroker formula Language

Quote:
Originally Posted by siddhakala View Post
Hello Friends,

In AmiBroker is it possible to change built in levels of Indicators? With RSI commonly with RSI 30 & 70 lines are used. After plotting RSI you can change these levels with help of Properties>Axis & Grid. In AmiBroker few built in levels are available, but if you need any other level apart from these e.g. for RSI I want to use 40/60 levels. Is it possible to do? Can any body guide me about this?

Sudesh
Hi Sudesh,

I'm afraid whether i've understood your requirement correctly or not. Assuming that you want the upper and lower lines at some different leves, please find the corresponding AFL below. You can give any value in the paramerers window. If i'm wrong in the requirement, please let me know.

_SECTION_BEGIN("MyRSI");
SetChartOptions(0,0,chartGrid30|chartGrid70);
periods = Param( "Periods", 15, 1, 200, 1 );
lowerLine = Param( "Lower line", 30, 10, 100, 1 );
upperLine = Param( "Upper line", 70, 50, 100, 1 );
lineColour = ParamColor("Line colour", colorBlue);
Plot(lowerLine, "Lower Line", lineColour );
Plot(upperLine, "Upper Line", lineColour );
Plot( RSI( periods), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

Hope this helps,
Praveen.
Reply With Quote
  #27  
Old 6th November 2006, 07:56 PM
Member
 
Join Date: Sep 2005
Location: hyderaabd
Posts: 744
Thanks: 0
Thanked 4 Times in 4 Posts
murthymsr is on a distinguished road
Reputation: 31
Default Re: AFL for importing NSE Bhavcopy

Quote:
Originally Posted by bvpraveen View Post
Thanks Murthy and Saji for your comments.

Murthy, I will try to make the following improvements:

1. Reading the source file name to arrive at destination file name.
2. Even better: Taking source and destination filename using date functions, so that the user can just save the .csv file in one particular location and he needn't even give the source path and source file name.
3. Try to make everything UI based. ie presenting a graphical interface, so that the user needn't even touch the AFL code.
4. I will look into make incorporations, so that even we can do bulk import, like say importing one week, one month, one year.etc.. I haven't even seen such bhav copy...will definitely look into it and will provide the new AFL here.

Finally the AFL should work this way: User need to just download bhav copy and run the AFL in one click. Lets see...

Thanks,
Praveen.
dear praveen,

it's really great that you are taking the AFL one step beyond what i have wished.

date range, direct import and GUI functionality are good additions. and may be giving the option to user to import from BSE, for those members who use BSE data. (not me, of course!).

all the best.
murthymsr
Reply With Quote
  #28  
Old 6th November 2006, 09:16 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 16 Times in 2 Posts
bvpraveen is on a distinguished road
Reputation: 48
Default Re: AFL for importing NSE Bhavcopy

Quote:
Originally Posted by murthymsr View Post
dear praveen,

it's really great that you are taking the AFL one step beyond what i have wished.

date range, direct import and GUI functionality are good additions. and may be giving the option to user to import from BSE, for those members who use BSE data. (not me, of course!).

all the best.
murthymsr
Hello Murthy and friends,

Although the AFL is ready now, its not upto what I initially thought of. Facing some problems. Please let me know any solutions for these:

1. To make it GUI enabled, i used Param(), Paramstring(), paramtoggle(),etc..
But these parameters actually keeps "remembering" the last values. ie. say i used paramtoggle() to select yes/no for original file deletion. If i'd choosed YES and the next time even if i select NO, it takes YES as the value!
Similarly for others like Paramstring(). I ran that AFL from both AA, as well as by double clicking from the workspace->chart. Same problem arises.

2. Is there any way to handle "check box" like scenario..It is needed to choose the desired sections. I tried one methods....but its very complex...using strextract() on comma separated string...

3. Not able to traverse a directory. No provision in AFL to take up this functionality - import multiple individual bhav copies.

To conclude, if we compromise on the GUI, the AFL is ready. Even we can add many others without GUI.

Praveen.
Reply With Quote
  #29  
Old 6th November 2006, 10:48 PM
Member
 
Join Date: Oct 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
siddhakala is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

Thankyou Saji
Thankyou bvpraveen

Sudesh
Reply With Quote
  #30  
Old 6th November 2006, 11:19 PM
Member
 
Join Date: Oct 2006
Posts: 19
Thanks: 1
Thanked 1 Time in 1 Post
DJ123143 is on a distinguished road
Reputation: 21
Default Re: AmiBroker formula Language

Hi Friends,
Please Help Me out how to update database in BSE & F n O in Amibroker I have tried more time i could download properly so please if u all have any ideas please help me and how to see nifty chart in NSE Database tell if some one knows

Thanks DJ
Reply With Quote
Sponsored Links

Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads for: AmiBroker formula Language
Thread Thread Starter Forum Replies Last Post
need help on formula cmlee MetaStock 23 8th October 2007 07:55 PM
Metastock ,Metatrader & Amibroker indicator formula saji oommen MetaStock 0 4th June 2006 06:35 PM
Metastock language help Ropewalker MetaStock 4 1st November 2005 09:16 PM
TradeStation & MetaStock Formula Language bikertrader MetaStock 4 10th December 2004 01:50 PM


All times are GMT +5.5. The time now is 05:26 AM.

Indemnity, Disclaimer & Disclosure Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum Rules Disclaimer & Disclosure and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com