Traderji.com - Discussion forum for Stocks Commodities & Forex

AmiBroker formula Language

Discuss AmiBroker formula Language at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Dear Murthy / Karthik/ Saji & all members; Hi & Happy new year/ pongal/ sankrant. ...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #61  
Old 18th January 2007, 02:46 AM
Member
 
Join Date: May 2006
Location: abu dhabi, uae.
Posts: 103
Thanks: 0
Thanked 2 Times in 1 Post
ger06 is on a distinguished road
Reputation: 22
Default Afl for 52 week High low

Dear Murthy / Karthik/ Saji
& all members;

Hi & Happy new year/ pongal/ sankrant.
I like to plot
1). 52 week high & low price in Amibroker with different colors. &
2). To analyse & print for the condition
Today's close > 105% yesterday's close > 105% previous day's close
&
Today's volume > 110% yesterday's volume.

I tried to print the Quick analysis but not possible.

So please help me to write the afl's.
Thanks.
Reply With Quote
Sponsored Links
  #62  
Old 18th January 2007, 09:36 AM
Member
 
Join Date: Dec 2006
Posts: 1,136
Thanks: 123
Thanked 203 Times in 86 Posts
ratan jain has a spectacular aura aboutratan jain has a spectacular aura aboutratan jain has a spectacular aura about
Reputation: 230
Default Re: AmiBroker formula Language

Hello Friends,

I have started using amibroker 4.8 since last 2 months now.

I need to know, how to write an afl that will give me alerts on ema crossover of 50 and 200 period on 1 minute charts.

I tried to go through the help section in amibroker, but its quite complicated.

Any help will be appreciated.

best regards,
Ratan jain
Reply With Quote
  #63  
Old 18th January 2007, 10:25 AM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: AmiBroker formula Language

Quote:
Originally Posted by hmandeel View Post
Thanks for your input,

I however think that Amiroker should have had a proper manual for AFL rather than leaving us nonprogrammers to figureout what te hell does this code mean.

Regards,

HM
Hi HM,

Although its true that knowing a programming language will be an added advantage to work with AFLs, I don't think its mandatory to learn one. If you still want to get a brief intro about programming lang., try learning C Programming language for some time. Just grasp the basics. That will be sufficient to learn AFLs.

Praveen.
Reply With Quote
  #64  
Old 18th January 2007, 11:12 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 formula Language

hi hmandeel,
press F1 from amibroker and the manual comes up...if u want to download pdf for printing, go to amibroker.com, click on download link on top, scroll down to get the 4mb file
Reply With Quote
  #65  
Old 3rd February 2007, 12:34 PM
Member
 
Join Date: Mar 2005
Posts: 26
Thanks: 3
Thanked 0 Times in 0 Posts
sunilhv0 is on a distinguished road
Reputation: 20
Default AmiBroker formula Language

Hi all,

I need help in writting an AFL if possible, where these signals are generated:

Buy signal is generated when
MA 4 < MA17 < EMA34
and MACD is positive and RSI above 50
Sell signal is generated when
MA 4 > MA17 > EMA34
and MACD is negative and RSI below 40

MA is moving average
EMA Exponential Moving average

thx in advance,

with regards,

Sunil
Reply With Quote
  #66  
Old 25th February 2007, 03:11 PM
Member
 
Join Date: Feb 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
ume68 is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

Hi members,
I would be gratful if the an afl is given for the following :

Scan data for :

MAV20 >=500000 AND CLOSE >20 AND CLOSE > SMAC10 AND CLOSE > SMAC20
AND
HIGH <HIGH1 AND HIGH1 <HIGH2
AND
FORCE3 <=0 AND FORCE13>=0
AND
ADX20 >30

Regards
Reply With Quote
  #67  
Old 25th February 2007, 04:53 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: AmiBroker formula Language

Quote:
Originally Posted by ume68 View Post
Hi members,
I would be gratful if the an afl is given for the following :

Scan data for :

MAV20 >=500000 AND CLOSE >20 AND CLOSE > SMAC10 AND CLOSE > SMAC20
AND
HIGH <HIGH1 AND HIGH1 <HIGH2
AND
FORCE3 <=0 AND FORCE13>=0
AND
ADX20 >30

Regards
Hi,

I can understood only your first and last line in the given conditions. Can you explain the middle two lines clearly?

Praveen.
Reply With Quote
  #68  
Old 25th February 2007, 04:55 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: AmiBroker formula Language

Quote:
Originally Posted by sunilhv0 View Post
Hi all,

I need help in writting an AFL if possible, where these signals are generated:

Buy signal is generated when
MA 4 < MA17 < EMA34
and MACD is positive and RSI above 50
Sell signal is generated when
MA 4 > MA17 > EMA34
and MACD is negative and RSI below 40

MA is moving average
EMA Exponential Moving average

thx in advance,

with regards,

Sunil
Hi Sunil,

Sorry for the late reply.

I hope you might have got the AFL. If not, let us know, we will provide it.

Praveen.
Reply With Quote
  #69  
Old 25th February 2007, 06:22 PM
Member
 
Join Date: Feb 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
ume68 is on a distinguished road
Reputation: 20
Smile Re: AmiBroker formula Language

Quote:
Originally Posted by bvpraveen View Post
Hi,

I can understood only your first and last line in the given conditions. Can you explain the middle two lines clearly?

Praveen.
Hi Praveen,
Thanks for the prompt response.

high<high1 and high1<high2-to indicate that the stock must experience 3 days decline /pull back within the context of uptrend. High is today high, high1 is yesterday high and high2 is day before yesterday high.

Secondly , Force3= FI-3MA
Force13= FI- 13MA, where
FI=volume(today)*close(today)-(Close(yesterday))

Eagerly waiting for the code.


Regards
Reply With Quote
  #70  
Old 25th February 2007, 06:51 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
Thanks: 0
Thanked 33 Times in 3 Posts
bvpraveen will become famous soon enough
Reputation: 65
Default Re: AmiBroker formula Language

Quote:
Originally Posted by ume68 View Post
Hi Praveen,
Thanks for the prompt response.

high<high1 and high1<high2-to indicate that the stock must experience 3 days decline /pull back within the context of uptrend. High is today high, high1 is yesterday high and high2 is day before yesterday high.

Secondly , Force3= FI-3MA
Force13= FI- 13MA, where
FI=volume(today)*close(today)-(Close(yesterday))

Eagerly waiting for the code.


Regards
Hi,

If you want its corresponding AFL, please see it below. But I strongly doubt about the logic behind your BUY conditions. Eg. comparing Close against MA 10 and 20. I didn't understand what that "Force" formula is calculating. Also I doubt over the precedence of operator '*' in force1 = Volume * Close - Ref(C, -1)

Code:
High1 = Ref(High, -1);
High2 = Ref(High, -2);

force1 = Volume * Close - Ref(C, -1);
force13 = force1 - MA(C, 13);
force3 = force1 - MA(C, 3);

Buy = MA(V, 20) >= 500000 AND Close > 20 AND Close > MA(C, 10) AND Close > MA(C, 20)
AND
High < High1 AND High1 < High2
AND
Force3 <= 0 AND Force13 >= 0
AND
ADX(20) > 30;
Regards,
Praveen.
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 formula Language
Thread Thread Starter Forum Replies Last Post
need help on formula cmlee MetaStock 23 8th October 2007 07:55 PM
Metastock ,Metatrader & Amibroker indicator formula saji oommen MetaStock 0 4th June 2006 06:35 PM
Metastock language help Ropewalker MetaStock 4 1st November 2005 09:16 PM
TradeStation & MetaStock Formula Language bikertrader MetaStock 4 10th December 2004 01:50 PM


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