Traderji.com - Discussion forum for Stocks Commodities & Forex

How to do this with Amibroker?

Discuss How to do this with Amibroker? at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; dear friends how to calculate average Volume of previous 5 days? Lets say, we have ...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 27th February 2007, 08:55 AM
Member
 
Join Date: Jan 2006
Posts: 219
Thanks: 0
Thanked 0 Times in 0 Posts
johnbest is on a distinguished road
Reputation: 25
Default How to do this with Amibroker?

dear friends

how to calculate average Volume of previous 5 days?
Lets say, we have EOD data upto 26-Feb-2007, then
how to calculate 5 day average volume of previous 5 trading
sessions excluding 26-Feb-2007?

have a nice day
JB
Reply With Quote
Sponsored Links
  #2  
Old 17th May 2007, 05:48 PM
a1d a1d is offline
Member
 
Join Date: May 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
a1d is on a distinguished road
Reputation: 20
Default Re: How to do this with Amibroker?

Hi

if the your data not include 26-Feb-2007 it will excluding it
how we do that?
you can remove this date by deleteing this information from you data
Reply With Quote
  #3  
Old 17th May 2007, 07:12 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: How to do this with Amibroker?

Quote:
Originally Posted by johnbest View Post
dear friends

how to calculate average Volume of previous 5 days?
Lets say, we have EOD data upto 26-Feb-2007, then
how to calculate 5 day average volume of previous 5 trading
sessions excluding 26-Feb-2007?

have a nice day
JB
Sorry man, didn't notice your post.

You need to calculate avg. of "last" five days. So you need to refer "backwards". I think the Ref() will help you out.

The AFL is given below. Let us know if you find any problem with it.

_SECTION_BEGIN("Prev5daysAvg");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
field = ParamField("Field");
period = Param("Period", 5, 1);
prev5daysAvg = MA(Ref(field, -1), period);
Plot(prev5daysAvg,"prev5daysAvg", ParamColor("Colour", colorGreen), styleLine);
_SECTION_END();
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: How to do this with Amibroker?
Thread Thread Starter Forum Replies Last Post
amibroker mani_magar AmiBroker 6 6th January 2007 08:35 AM
AmiBroker karthikmarar Your Feedback & Suggestions 8 30th July 2006 12:22 PM
amibroker uncle sam AmiBroker 0 28th December 2004 06:01 PM


All times are GMT +5.5. The time now is 03:01 PM.

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