Traderji.com - Discussion forum for Stocks Commodities & Forex

Need help for AFL

Discuss Need help for AFL at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; ya thats right...pls correct it...overlooked it thx...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #11  
Old 30th January 2007, 04:39 PM
Member
 
Join Date: Sep 2005
Posts: 1,102
Blog Entries: 1
Thanks: 9
Thanked 25 Times in 17 Posts
beginner_av will become famous soon enoughbeginner_av will become famous soon enough
Reputation: 107
Default Re: Need help for AFL

ya thats right...pls correct it...overlooked it

thx
Reply With Quote
  #12  
Old 30th January 2007, 05:08 PM
Member
 
Join Date: Feb 2006
Posts: 62
Thanks: 0
Thanked 2 Times in 2 Posts
abhinkoi is on a distinguished road
Reputation: 22
Default Re: Need help for AFL

Hi Beginner,

can you pls let me know a reliable afl formula for day trading? If you have a good afl for Ami 4.8 which I can use in day trading that wud be a great help. I am planning to develop a trading system with the help of MACD, RSI, Stoch etc...

Pls help.

Cheers
Abhi
Reply With Quote
  #13  
Old 31st January 2007, 09:28 PM
Member
 
Join Date: Sep 2005
Posts: 1,102
Blog Entries: 1
Thanks: 9
Thanked 25 Times in 17 Posts
beginner_av will become famous soon enoughbeginner_av will become famous soon enough
Reputation: 107
Default Re: Need help for AFL

hey,

my humble request to u is to read books like trading by the book by joe ross, streetsmarts by connors and LBR ,and find ur own strategy...may be i can help u in coding it.

btw read stockcharts.com on multicollineraity of indicators
Reply With Quote
  #14  
Old 31st January 2007, 10:34 PM
Member
 
Join Date: Jun 2005
Posts: 163
Thanks: 0
Thanked 1 Time in 1 Post
subratabera is on a distinguished road
Reputation: 26
Default Re: Need help for AFL

Hello all,

As I am new to trading (and Amibroker also), I am facing many problems in finding the right scrip which I want to trade. I know Amibroker is a powerful TA software (thanks to those great posts which helped me a lot to set it up correctly). But the sad part it I don't know how to write AFLs (I am learning it slowly). So please help me to setup an AB exploration with the following conditions...

1) Close is near 52 weak low with some upward momentum
2) Avg Volume (last 3 days) > MA Volume (last 50 days)
3) BolBand (20,2) = very narrow
4) EMA(13) just crossed EMA(30)
5) Price>25 AND Volume>50000
6) Please add if I have missed something...

I know there are members in this forum who can solve this puzzle very easily. I thank them in advance. So, please help me with this exploration...

Thanks once again...

Subrata Bera.
Reply With Quote
  #15  
Old 1st February 2007, 12:29 PM
Member
 
Join Date: Sep 2005
Posts: 1,102
Blog Entries: 1
Thanks: 9
Thanked 25 Times in 17 Posts
beginner_av will become famous soon enoughbeginner_av will become famous soon enough
Reputation: 107
Default Re: Need help for AFL

I can give it to you in minutes...but i wont...
my advice...instal powerscan from amibroker web site under 3rd party tools (free)...run it and also see the code generated...then you will know for yourself.
if u face any problem, i'll definitely give u

BTW the first one is ambiguous...u have to first define upward momwentum
Reply With Quote
  #16  
Old 1st February 2007, 12:40 PM
Member
 
Join Date: Sep 2005
Posts: 1,102
Blog Entries: 1
Thanks: 9
Thanked 25 Times in 17 Posts
beginner_av will become famous soon enoughbeginner_av will become famous soon enough
Reputation: 107
Default Re: Need help for AFL

some hints for finetuning?
2. which ma? sma, ema, etc
3. what is very narrow?
4. ema of O H L or C?
5. Price as in O, H, L, C?
6. What is your strategy?
Reply With Quote
  #17  
Old 2nd February 2007, 12:50 AM
Member
 
Join Date: Jun 2005
Posts: 163
Thanks: 0
Thanked 1 Time in 1 Post
subratabera is on a distinguished road
Reputation: 26
Default Re: Need help for AFL

Thankyou very much beginner_av for your response. Let's make it a little more clear...

1) Close{Ref(-4,c)} is near 52 weak low and just turned up (The stock is started to move upward in last 2-3 days...)
2) Volume (last 2-3 days) > EMA Volume (last 50 days excluding last 2-3 days)
3) BolBand (20,2) = very narrow (difference between high-low is very less for few day excluding last 2-3 days)
4) EMA(13) just crossed EMA(30)
5) Price>25 AND Volume>50000
6) The stock just picked some momentum.

Hope this helps...

Quote:
my advice...instal powerscan from amibroker web site under 3rd party tools (free)...run it and also see the code generated...then you will know for yourself.
if u face any problem, i'll definitely give u
I will definitely try that...
Reply With Quote
  #18  
Old 2nd February 2007, 05:04 PM
Member
 
Join Date: Sep 2005
Posts: 1,102
Blog Entries: 1
Thanks: 9
Thanked 25 Times in 17 Posts
beginner_av will become famous soon enoughbeginner_av will become famous soon enough
Reputation: 107
Default Re: Need help for AFL

good spirit bera...do u know lil programming? if yes press F1 in amibroker...go to afl functions by categories...click on each of them, read them and see the examples...in no time u'll be able to write simple formulas...then we'll take it further
btw have u used metastock?

the ami syntax is
Ref(C, -4).
lets start with 4. pretty simple one
cond = cross (ema(C,13), ema(C,30));
cond is the condition that u want to test...if u want to generate a buy signal for scan or exploration, use the keyword Buy instead of cond.
Reply With Quote
  #19  
Old 2nd February 2007, 07:30 PM
Member
 
Join Date: Jun 2005
Posts: 163
Thanks: 0
Thanked 1 Time in 1 Post
subratabera is on a distinguished road
Reputation: 26
Default Re: Need help for AFL

Quote:
Originally Posted by beginner_av View Post
good spirit bera...do u know lil programming? if yes press F1 in amibroker...go to afl functions by categories...click on each of them, read them and see the examples...in no time u'll be able to write simple formulas...then we'll take it further
btw have u used metastock?

the ami syntax is
Ref(C, -4).
lets start with 4. pretty simple one
cond = cross (ema(C,13), ema(C,30));
cond is the condition that u want to test...if u want to generate a buy signal for scan or exploration, use the keyword Buy instead of cond.
Thanks beginner_av. You are really helpful and inspiring. Yes I know programming (C, C++, VB etc.). I think I will find my answer soon...Keep posting simple examples.
Reply With Quote
  #20  
Old 10th February 2007, 12:43 PM
Member
 
Join Date: Jun 2005
Posts: 163
Thanks: 0
Thanked 1 Time in 1 Post
subratabera is on a distinguished road
Reputation: 26
Default Re: Need help for AFL

As you have suggested, I've created the following afl exploration. Please go through the following afl and suggest modifications (as per my above suggestions)...
Quote:
// Filter = Ref( LLV( Close, 250 ), -1 ) > Close AND Ref( HHV( Volume, 50 ), -1 ) < Volume
// AND MA(Volume,15) > MA(Volume,30);
// RSI() < 50

Filter = Ref( LLV( Close, 250 ), -1 ) > Close
//AND Close > (Ref(Close,-1)+(Ref(Close,-1)*5/100))
AND Close > 25
AND RSI() < 50
//AND Volume > 3*Ref(Volume,-1)
AND MA(Volume,20) > 100000
AND OI > (Volume*60/100)
AND OI != Volume
;

AddColumn( Ref(Close,-1), "PrevClose" );
AddColumn( Close, "Close " );
AddColumn( (Close-Ref(Close,-1))/Ref(Close,-1)*100, "%UP " );
//AddColumn( High, "High " );
//AddColumn( Low, "Low " );
AddColumn( Ref(Volume,-1), "PrevVol " );
AddColumn( Volume, "Volume " );
AddColumn( OI, "OI " );
Thankyou very much...

Subrata Bera.
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 03:40 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