Traderji.com - Discussion forum for Stocks Commodities & Forex

AmiBroker Tips

Discuss AmiBroker Tips at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; hi...im using fibotrader. its extremely good. all credit goes to Soumya. now i've installed amibroker. ...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #11  
Old 5th September 2006, 10:46 PM
Member
 
Join Date: Aug 2006
Location: india
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
sanchari_saha2003 is on a distinguished road
Reputation: 20
Question need help regarding AmiBroker

hi...im using fibotrader. its extremely good. all credit goes to Soumya.
now i've installed amibroker. i dont know how to use it for NSE BSE. i would like to chk it. plz help me. i wanna know the etire process.
thanks.
Reply With Quote
Sponsored Links
  #12  
Old 13th September 2006, 09:11 PM
Member
 
Join Date: Dec 2005
Location: Hyderabad
Posts: 326
Thanks: 0
Thanked 1 Time in 1 Post
asnavale is on a distinguished road
Reputation: 30
Default Re: need help regarding AmiBroker

Quote:
Originally Posted by sanchari_saha2003 View Post
hi...im using fibotrader. its extremely good. all credit goes to Soumya.
now i've installed amibroker. i dont know how to use it for NSE BSE. i would like to chk it. plz help me. i wanna know the etire process.
thanks.
I assume you wanto use it for daily data(not intraday). First you have to create a database for the stocks of BSE and NSE. Then import historical EOD data into the database. You can get historical data from yahoo group 'bse-nse2005'. Recent data is available in that group's files section. Older data can be downloaded from the links given in the messages posted in that group. You can get instructions on how to import the data into AmiBroker in the files section of that group. If you need more information please post your reply here in this forum. I will try to help you.

Regards

-Anant
Reply With Quote
  #13  
Old 15th September 2006, 07:28 PM
Member
 
Join Date: Aug 2006
Location: india
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
sanchari_saha2003 is on a distinguished road
Reputation: 20
Default Re: need help regarding AmiBroker

thanks ..i'll try.
Reply With Quote
  #14  
Old 16th September 2006, 05:32 PM
Member
 
Join Date: Dec 2005
Location: Hyderabad
Posts: 326
Thanks: 0
Thanked 1 Time in 1 Post
asnavale is on a distinguished road
Reputation: 30
Default Re: AmiBroker Tips

Dear Senior and knowldgeable members,

I want some help with Explorations and Charting in AmiBroker. I want to do two things:

1) I want to plot selected security data (EOD) for a particular period, for example, let us say April 10, 2004 to January 25, 2005 (If starting date is a holiday then the next trading day and if ending date is a holiday then previous trading day). The indicators I apply should be calculated using only the plotted data not the entire available data. In Ami the indicators are calculated from the very first available data upto the last one even though the visible chart portion is much smaller. In effect what I want is the graph should be drawn as if the security data is available only for the selected date range. Even if I try to move the chart pane beyond the selected date range (with arrow keys) the chart should not move past the selected dates on either side.

2. The second objective is similar to the above but instead of chart I want exploration. I should be able to do exploration with the data within the selected date range. For example, as in the above date range, if I want to calculate cumulative volume (using Cum function), the calculation should start with the volume data of the start date selected and stop with the end date. In exploration page in Ami there is an option to select the range of date for exploration. But this does not do what I want. It simply shows the results in the selected date range. Thus, if I want cumulative volume between selected date range, what it actually does is calculate the cum vol right from the very first data available but shows the results for the selected date range.

Can these be implemented by writing an AFL? If I have not been clear in expressing what is my aim please ask. I will clarify further.

Thank in advance.

-Anant
Reply With Quote
  #15  
Old 22nd September 2006, 01:20 AM
Member
 
Join Date: Apr 2006
Location: Jodhpur
Posts: 181
Thanks: 0
Thanked 1 Time in 1 Post
cemcompusoft is on a distinguished road
Reputation: 21
Default Re: AmiBroker Tips

Hello Seniors,

Can anyone give a simple code in Amibroker for alert of any cross e.g. if I want alert at crossover of EMA(15) & EMA(30) how can I get this.

Can I get Alert if price goes above/below any predefined value.

Can I get alert if RSI is above/below a predefined value for sometime ( say 10 min).

Regards,

K S Kachhwaha
Reply With Quote
  #16  
Old 22nd September 2006, 01:28 AM
Member
 
Join Date: Apr 2006
Location: Jodhpur
Posts: 181
Thanks: 0
Thanked 1 Time in 1 Post
cemcompusoft is on a distinguished road
Reputation: 21
Default Re: AmiBroker Tips

Quote:
Originally Posted by soumya_b View Post
Hi Satya,

How to export intraday data in .csv format?

Best Regards,
Soumya
/*
Export intraday and EOD data to .csv files. One file for each stock.In the first line insert the directory you want to save them to, make sure the directory exists.Select your charts to export with the "Apply to" filter in AA window. Select the timeframe period you want to save as using the AA "Settings"
Press Scan button
*/

fh = fopen( "c:\\SaveData\\"+Name()+".csv", "w");
if( fh )
{
fputs( "Ticker,Date,Time,Open,High,Low,Close,Volume \n", fh );
y = Year();
m = Month();
d = Day();
r = Hour();
e = Minute();
n = Second();

for( i = 0; i < BarCount; i++ )
{
fputs( Name() + "," , fh );
ds = StrFormat("%02.0f-%02.0f-%02.0f,",
y[ i ], m[ i ], d[ i ] );
fputs( ds, fh );

ts = StrFormat("%02.0f:%02.0f:%02.0f,",
r[ i ],e[ i ],n[ i ] );
fputs( ts, fh );

qs = StrFormat("%.4f,%.4f,%.4f,%.4f,%.0f\n",
O[ i ],H[ i ],L[ i ],C[ i ],V[ i ] );
fputs( qs, fh );
}

fclose( fh );
}

Buy = 0;
Reply With Quote
  #17  
Old 26th September 2006, 04:51 PM
Member
 
Join Date: Jun 2004
Posts: 180
Thanks: 3
Thanked 1 Time in 1 Post
kgsirasangi is on a distinguished road
Reputation: 21
Default Re: AmiBroker Tips

Quote:
Originally Posted by cemcompusoft View Post
Hello Seniors,

Can anyone give a simple code in Amibroker for alert of any cross e.g. if I want alert at crossover of EMA(15) & EMA(30) how can I get this.

Can I get Alert if price goes above/below any predefined value.

Can I get alert if RSI is above/below a predefined value for sometime ( say 10 min).

Regards,

K S Kachhwaha
I give below details of an afl file which gives alerts for macd crossovers

a=EMA(C,30)-EMA(C,200);
b=EMA(a,20);


Buy = Cross( a,b );
Sell = Cross( b,a );
//Short = Sell;
//Cover = Buy;

AlertIf( Buy, "", "MACD BUY", 1,1+2 );

AlertIf( Sell, "", "MACD SELL", 2 ,1+2);

You may define/modify a and b in above formulae as per your requirements and get alerts.
regards.

Last edited by kgsirasangi; 26th September 2006 at 08:57 PM.
Reply With Quote
  #18  
Old 1st October 2006, 06:32 AM
Member
 
Join Date: Apr 2006
Location: Jodhpur
Posts: 181
Thanks: 0
Thanked 1 Time in 1 Post
cemcompusoft is on a distinguished road
Reputation: 21
Default Re: AmiBroker Tips

Quote:
Originally Posted by kgsirasangi View Post
I give below details of an afl file which gives alerts for macd crossovers

a=EMA(C,30)-EMA(C,200);
b=EMA(a,20);


Buy = Cross( a,b );
Sell = Cross( b,a );
//Short = Sell;
//Cover = Buy;

AlertIf( Buy, "", "MACD BUY", 1,1+2 );

AlertIf( Sell, "", "MACD SELL", 2 ,1+2);

You may define/modify a and b in above formulae as per your requirements and get alerts.
regards.
Thanks a lot sir. I tried with 'Buy/sell' but do not put 'Alertif' in formula..... ....thanks again.
Reply With Quote
  #19  
Old 1st October 2006, 11:51 AM
Member
 
Join Date: Sep 2005
Posts: 1,097
Blog Entries: 1
Thanks: 9
Thanked 29 Times in 18 Posts
beginner_av will become famous soon enoughbeginner_av will become famous soon enough
Reputation: 111
Default Re: AmiBroker Tips

Dear asnavale,

For explorations it is very easy to use...just define the date range with the from and to on top left of the automatic analysis window and u get it or if u know the no of days...pls click on the button n = and put the number of days.
Reply With Quote
  #20  
Old 1st October 2006, 11:53 AM
Member
 
Join Date: Sep 2005
Posts: 1,097
Blog Entries: 1
Thanks: 9
Thanked 29 Times in 18 Posts
beginner_av will become famous soon enoughbeginner_av will become famous soon enough
Reputation: 111
Default Re: AmiBroker Tips

for ur other query try this. DISCLAIMER: I havent tried it myself. before plotting ur indicator use nlastbar = the number of days for which u want the bars to be included.
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 Tips
Thread Thread Starter Forum Replies Last Post
AmiBroker karthikmarar Your Feedback & Suggestions 8 30th July 2006 12:22 PM
Pls Guide Me How To Use Amibroker coolguru007 AmiBroker 0 16th May 2006 11:29 PM
amibroker uncle sam AmiBroker 0 28th December 2004 06:01 PM


All times are GMT +5.5. The time now is 11:57 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