Traderji.com - Discussion forum for Stocks Commodities & Forex

Exploration formula for detecting higher than average volume.

Discuss Exploration formula for detecting higher than average volume. at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Here you go - (This code assumes you have are running the intraday and EOD ...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #11  
Old 31st May 2008, 12:18 PM
Member
 
Join Date: Oct 2007
Posts: 104
Thanks: 0
Thanked 8 Times in 3 Posts
Adheer is on a distinguished road
Reputation: 28
Default Re: Exploration formula for detecting higher than average volume.

Here you go - (This code assumes you have are running the intraday and EOD from the same database).

Code:
TimeFrameSet(inDaily);
vol_today = V;
vol_10d_ma = Ref(MA(V,10), -1); // 10-day MA of Vol (till yesterday)
Filter = ( vol_today > vol_10d_ma );
TimeFrameRestore();
Quote:
Originally Posted by vvvv View Post
i want to use a simple volume breakout strategy.
1)volume of the stock is equal to or less than avg volume(u can specify any no of period as the avg).as per the eod charts.
2)i start the scan during my intraday trading
3)the scan detects - at tht particular time the traded intraday volume > avg volume (according to eod charts)

can u pls provide the code.
Reply With Quote
  #12  
Old 31st May 2008, 12:28 PM
Member
 
Join Date: Mar 2008
Posts: 205
Thanks: 26
Thanked 22 Times in 14 Posts
vvvv is on a distinguished road
Reputation: 32
Default Re: Exploration formula for detecting higher than average volume.

actually ive got 2 diff databases in ami..1 for eod...1 for intraday..so wht do i need to do to change the code
Reply With Quote
  #13  
Old 31st May 2008, 08:05 PM
Member
 
Join Date: Aug 2006
Posts: 63
Thanks: 34
Thanked 0 Times in 0 Posts
mansukh is on a distinguished road
Reputation: 20
Default Re: Exploration formula for detecting higher than average volume.

hello, i wud like a help...

i use qstick indicator with EMA.. i wud like to generate Buy/Sell Signal in case of crossovers... i need help in the coding.. In amibroker


_SECTION_BEGIN("qstick");
/* QStick from Tushar Chande. This indicator measures intraday momentum by
using the distance between the open and close of price over "n periods".
It is set at the default ( 8 ) periods that Chande suggest. */

MaxGraph=3;

Graph0=MA( C-O,8);

// The '0' line.
Graph1=0;
Graph1Style=5;
Graph1Style=styleNoLabel;
_SECTION_END();

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

Plz help.. Thanx.
Attached Images
File Type: jpg untitled.jpg (156.0 KB, 23 views)

Last edited by mansukh; 31st May 2008 at 08:10 PM.
Reply With Quote
  #14  
Old 31st May 2008, 08:46 PM
Member
 
Join Date: Oct 2007
Posts: 104
Thanks: 0
Thanked 8 Times in 3 Posts
Adheer is on a distinguished road
Reputation: 28
Default Re: Exploration formula for detecting higher than average volume.

The modified code with the Buy-Sell indicators is in bold and red.
Code:
_SECTION_BEGIN("qstick");
/* QStick from Tushar Chande. This indicator measures intraday momentum by
using the distance between the open and close of price over "n periods".
It is set at the default ( 8 ) periods that Chande suggest. */

MaxGraph=3;

Graph0=MA( C-O,8);

// The '0' line.
Graph1=0;
Graph1Style=5;
Graph1Style=styleNoLabel;
_SECTION_END();

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );

go_short = Cross(EMA(P,Periods), Graph0);
go_long = Cross(Graph0, EMA(P, Periods));
PlotShapes( IIf( go_long, shapeUpArrow, IIf( go_short, shapeDownArrow, shapeNone) ), IIf( go_long , colorGreen, colorRed ), 0);
_SECTION_END();
Reply With Quote
  #15  
Old 31st May 2008, 11:34 PM
Member
 
Join Date: Aug 2006
Posts: 63
Thanks: 34
Thanked 0 Times in 0 Posts
mansukh is on a distinguished road
Reputation: 20
Default Re: Exploration formula for detecting higher than average volume.

thanx a TON adheer.. it worked fine..
Plz help me out with this one. same problem.. i tried same method but didnt work..

_SECTION_BEGIN("TRIX");
periods = Param("Periods", 9, 2, 200, 1 );
Plot( Trix( periods ), _DEFAULT_NAME(), ParamColor("color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

Last edited by mansukh; 1st June 2008 at 10:54 AM.
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


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