Traderji.com - Discussion forum for Stocks Commodities & Forex

double bottom

Discuss double bottom at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; can anyone write an afl Program for double bottom...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #1  
Old 6th May 2007, 08:41 AM
Member
 
Join Date: Jan 2006
Posts: 135
Blog Entries: 3
Thanks: 6
Thanked 11 Times in 6 Posts
brijwanth is on a distinguished road
Reputation: 31
Default double bottom

can anyone write an afl Program for double bottom
Reply With Quote
  #2  
Old 6th May 2007, 09:48 PM
Member
 
Join Date: Feb 2006
Location: Kolkata
Posts: 156
Thanks: 0
Thanked 12 Times in 8 Posts
sunbim31 will become famous soon enough
Reputation: 52
Default Re: double bottom

see this

/* Detecting double tops and bottoms*/
percdiff = 5; /* peak detection threshold */
fwdcheck = 5; /* forward validity check */
mindistance = 10;
validdiff = percdiff/400;

PK= Peak( H, percdiff, 1 ) == High;
TR= Trough( L, percdiff, 1 ) == Low;


x = Cum( 1 );
XPK1 = ValueWhen( PK, x, 1 );
XPK2 = ValueWhen( PK, x, 2 );
xTR1 = ValueWhen( Tr, x, 1 );
xTr2 = ValueWhen( Tr, x, 2 );

peakdiff = ValueWhen( PK, H, 1 )/ValueWhen( PK, H, 2 );
Troughdiff=ValueWhen( tr, L, 1 )/ValueWhen( tr, L, 2 );

doubletop = PK AND abs( peakdiff - 1 ) < validdiff AND (Xpk1 -Xpk2)>mindistance AND High > HHV( Ref( H, fwdcheck ), fwdcheck - 1 );
doubleBot=tr AND abs( troughdiff - 1 ) < validdiff AND (Xtr1 -Xtr2)>mindistance AND Low < LLV( Ref( L, fwdcheck ), fwdcheck - 1 );

Buy = doubletop;
Sell = doublebot;

WriteIf( Highest( doubletop ) == 1, "AmiBroker has detected some possible
double top patterns for " + Name() + "\nLook for green arrows on the price
chart.", "There are no double top patterns for " + Name() );

WriteIf(Highest( doublebot)==1,"AmiBroker has detected some possible double
bottom patterns for " + Name() + "\nLook for red arrows on the price
chart.", "There are no double bottom patterns for " + Name() );

Filter=Buy OR Sell ;

AddColumn( IIf( doubletop , 88, 01), "Double TOP", formatChar );
AddColumn( IIf( doublebot , 88, 01), "Double BOT", formatChar );
Reply With Quote
  #3  
Old 7th May 2007, 09:39 AM
Member
 
Join Date: Jan 2006
Posts: 135
Blog Entries: 3
Thanks: 6
Thanked 11 Times in 6 Posts
brijwanth is on a distinguished road
Reputation: 31
Default Re: double bottom

I hav scanned using that program but it gave wrong results

Attached figure shows it could u modify so that it could identify correctly
Attached Images
File Type: gif PROBLEM.gif (52.7 KB, 56 views)
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: double bottom
Thread Thread Starter Forum Replies Last Post
TRiple Top and Bottom Intraday Srategy swagat86 Trading on Technicals 4 27th June 2007 08:34 PM
about double brokerage c_pavan Brokers & Demat Matters 7 9th November 2006 01:31 PM


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