AmiBroker formula Language

Discuss AmiBroker formula Language at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; hi senior users of Amibroker & its Formulae Language, you might have developed some code ...


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

Notices


Reply
 
Thread Tools
Sponsored Links
  #1  
Old 16th July 2006, 07:26 AM
Member
 
Join Date: Sep 2005
Location: hyderaabd
Posts: 744
murthymsr is on a distinguished road
Default AmiBroker formula Language



hi senior users of Amibroker & its Formulae Language,

you might have developed some code for your use.
it would be nice if you share it with fellow-members and also provide links for the internet resources for the same.

thanks in advance.
murthymsr
Reply With Quote
  #2  
Old 16th July 2006, 10:33 AM
Member
 
Join Date: Apr 2005
Location: Saudi
Posts: 841
srisara is on a distinguished road
Default Re: AmiBroker formula Language

Murthygaru,

this first learning center is from AmiBroker itself.
visit the below links

http://www.amibroker.com/library/

http://www.amibroker.com/guide/afl/

hope it is helpful. I will post some of the formula's I coded.

Satya
Reply With Quote
  #3  
Old 16th July 2006, 11:45 AM
Member
 
Join Date: Sep 2005
Location: hyderaabd
Posts: 744
murthymsr is on a distinguished road
Default Re: AmiBroker formula Language

Quote:
Originally Posted by srisara
Murthygaru,

this first learning center is from AmiBroker itself.
visit the below links

http://www.amibroker.com/library/

http://www.amibroker.com/guide/afl/

hope it is helpful. I will post some of the formula's I coded.

Satya
thanks satya, for the references and noble gesture.
Reply With Quote
  #4  
Old 4th August 2006, 08:05 PM
Member
 
Join Date: Jul 2006
Posts: 31
Roshanna is on a distinguished road
Default Re: AmiBroker formula Language

Hi satya, murthysir
can u help to import fullname andsectors/industry into AMI (available at NSE website in .csv format)
Reply With Quote
  #5  
Old 19th September 2006, 09:16 PM
Member
 
Join Date: Dec 2005
Location: Hyderabad
Posts: 326
asnavale is on a distinguished road
Default Re: AmiBroker formula Language

Quote:
Originally Posted by Roshanna View Post
Hi satya, murthysir
can u help to import fullname andsectors/industry into AMI (available at NSE website in .csv format)
Hi Roshanna,

Please go to the amibroker news letter No. 4 and read about assigning industry groups etc. The link is http://www.amibroker.com/newsletter/04-2000.html
If you are not familiar with the programming read the first news letter.

-Anant
Reply With Quote
  #6  
Old 9th October 2006, 09:24 AM
Member
 
Join Date: Sep 2005
Location: hyderaabd
Posts: 744
murthymsr is on a distinguished road
Default Re: AmiBroker formula Language

Quote:
Originally Posted by Roshanna View Post
Hi satya, murthysir
can u help to import fullname andsectors/industry into AMI (available at NSE website in .csv format)
dear roshanna,
sorry for the delayed response.

for assigning industries/sectors, now, you can follow the thread, just started:
http://www.traderji.com/amibroker/86...se-stocks.html

the procedure is being introduced step-by-step so that the user may not have any problem. still querries if any may be posted.

all the best.
MurthyMSR
Reply With Quote
  #7  
Old 2nd November 2006, 09:56 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
bvpraveen is on a distinguished road
Default Re: AmiBroker formula Language

Hi friends,

Here are some simple AFL's for the three types of stoploss - Initial, Breakeven and Trailing stoploss.

1. Initial stoploss

/************************************************** **
Initial Stoploss - lowest "low" of the last n bars
************************************************** ***/
lookbackPeriod = Param("Lookback period", 2, 2, 30);
Plot(LLV(L,lookbackPeriod), "Testing", ParamColor( "Long", colorGrey40));


2. Breakeven stoploss

/************************************************** *****
Breakeven Stoploss - Open + brokerage% of open
************************************************** ******/
brokeragePercentage = Param("Brokerage Percentage", 1, 0.1, 5, 0.1);
Plot(O + O*(brokeragePercentage/100) , "Testing", ParamColor( "Long", colorYellow ));

3. Trailing stoploss

/************************************************** **
Trailing Stoploss - a% below nth highest high
************************************************** ***/
lookbackPeriod = Param("Lookback period", 10, 2, 30);
stoplossPercentage = Param("Stoploss Percentage", 5, 0.2, 10, 0.2);

Plot(HHV(H,lookbackPeriod) - HHV(H,lookbackPeriod) * (stoplossPercentage / 100), "Bullish SL", ParamColor( "Long", colorGrey40));
Plot(LLV(L,lookbackPeriod) + LLV(L,lookbackPeriod) * (stoplossPercentage / 100), "Bearish SL", ParamColor( "Short", colorGrey40));

I will post the AFL's as and when I come up with any new ones.
Thanks,
Praveen.
Reply With Quote
  #8  
Old 2nd November 2006, 11:38 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 914
bvpraveen is on a distinguished road
Default Re: AmiBroker formula Language

Hi,

Please refer to this link, which provides the AFL for Darvas Box Formula:
http://www.traderji.com/63513-post6.html
[Contributor: SGM]

Thanks,
Praveen.
Reply With Quote
  #9  
Old 3rd November 2006, 01:42 AM
Member
 
Join Date: Nov 2005
Location: Trichur,Kerala
Posts: 109
Niranjanam is on a distinguished road
Default Re: AmiBroker formula Language

Hello Friends,

I am a newbe in TA as well as Amibroker.I know nothing about computer programming and AFL is greek to me.I will be very greatful if anybody can write an AFL scan for me.I swing trade pullbacks.

Scan EOD data for

Close > 50
Volume > 100000
Close < 10 SMA and Close > 30EMA
ADX (14) > 30 , Willims%R (3 day) < - 80
2 to 5 days continuous lower close from 3 month High

A Specimen chart attached

Thanks in advance
Regards
Niranjanam
Attached Images
File Type: png Aptech.PNG (28.8 KB, 346 views)
Reply With Quote
  #10  
Old 3rd November 2006, 03:20 AM
Member
 
Join Date: Apr 2006
Location: Kuwait
Posts: 214
sivavkm is on a distinguished road
Post Re: AmiBroker formula Language

Hi Niranjanam,

An attempt from another newbie : -
Code:
_SECTION_BEGIN("SwingPullbacks");
function PercentR( periods ){
 return -100*( HHV(H, periods) - C) / (HHV(H, periods) - LLV(L, periods)); 
}
Buy = (  (C>50 AND V > 100000) 
	AND ( C < MA(C,10) AND C > EMA(C,30) )  
	AND ( ADX(14)>30 ) AND (PercentR(3) < -80) );
_SECTION_END();
I dont understand your last 2 conditions..
.. is that -80 ???
.. 2 to 5 days ???

Regards
Siva

Quote:
Originally Posted by Niranjanam View Post
Hello Friends,

I am a newbe in TA as well as Amibroker.I know nothing about computer programming and AFL is greek to me.I will be very greatful if anybody can write an AFL scan for me.I swing trade pullbacks.

Scan EOD data for

Close > 50
Volume > 100000
Close < 10 SMA and Close > 30EMA
ADX (14) > 30 , Willims%R (3 day) < - 80
2 to 5 days continuous lower close from 3 month High

A Specimen chart attached

Thanks in advance
Regards
Niranjanam

Last edited by sivavkm; 3rd November 2006 at 03:36 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

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 04:07 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