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; hi Praveen, Thanks a lot for the code.The codes are basically used in swing trading. ...


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

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #71  
Old 25th February 2007, 07:00 PM
Member
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
ume68 is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

hi Praveen,

Thanks a lot for the code.The codes are basically used in swing trading. Kindly refer book swing trading by larry swing.

Regards
Reply With Quote
  #72  
Old 25th February 2007, 07:04 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 16 Times in 2 Posts
bvpraveen is on a distinguished road
Reputation: 48
Default Re: AmiBroker formula Language

Quote:
Originally Posted by ume68 View Post
hi Praveen,

Thanks a lot for the code.The codes are basically used in swing trading. Kindly refer book swing trading by larry swing.

Regards
Hey Ume,

Check the code, ie., test/run the code. I doubt over either its logic or the presentation of the BUY conditions.

Praveen.
Reply With Quote
  #73  
Old 26th February 2007, 01:27 PM
Member
 
Join Date: Mar 2005
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
sunilhv0 is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

Dear praveen,

Thx for the reply, but i have not been able to find the AFL till now.

If u can provide, that will be of great help.

regards,

Sunil

Originally Posted by sunilhv0
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
  #74  
Old 4th March 2007, 07:25 PM
Member
 
Join Date: Sep 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
indrag91 is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

Dear Mr Praveen,
I am new to this thread, First of all i appriciate your contribution to amibroker users, Congrats - keep on doing.
I need your help
1. I would like to plot a buy sell indicator for EMA crossover of EMA 50 & 200 with arrows and rates display. I tried from http://www.amibroker.com/guide/afl/ but it didnt gave any signals. I also want to back test the same with 10 min chart, pls guide.
2. I need buy sell signals for ADX.
Thanks in advance
Raj
Reply With Quote
  #75  
Old 4th March 2007, 08:43 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 16 Times in 2 Posts
bvpraveen is on a distinguished road
Reputation: 48
Default Re: AmiBroker formula Language

Quote:
Originally Posted by sunilhv0 View Post
Dear praveen,

Thx for the reply, but i have not been able to find the AFL till now.

If u can provide, that will be of great help.

regards,
Hi,

I'm really sorry again for the late reply.

Here is its AFL:

Buy = (MA(C,4) < MA(C, 17) < EMA(C, 34)) AND MACD() > 0 AND RSI() > 50;
Sell = (MA(C,4) > MA(C, 17) > EMA(C, 34)) AND MACD() < 0 AND RSI() < 40;

Regards,
Praveen.
Reply With Quote
  #76  
Old 4th March 2007, 08:52 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 16 Times in 2 Posts
bvpraveen is on a distinguished road
Reputation: 48
Default Re: AmiBroker formula Language

Quote:
....
I am new to this thread, First of all i appriciate your contribution to amibroker users, Congrats - keep on doing.
...
Thanks.


Quote:
I need your help
1. I would like to plot a buy sell indicator for EMA crossover of EMA 50 & 200 with arrows and rates display. I tried from http://www.amibroker.com/guide/afl/ but it didnt gave any signals.
Here is the AFL:

Period1 = Param("ShortPeriod", 50, 2, 200,1);
Period2 = Param("LongPeriod", 200, 2, 200,1);

Buy = Cross( EMA(C, Period1), EMA(C, Period2));
Sell = Cross( EMA(C, Period2), EMA(C, Period1));

dist = 1.5*ATR(10);

for( i = 0; i < BarCount; i++ )
{
if( Buy[i] ) PlotText( "Buy\n@" + C[ i ], i, L[ i ]-dist[i], colorGreen );
if( Sell[i] ) PlotText( "Sell\n@" + C[ i ], i, H[ i ]+dist[i], colorRed, colorYellow );
}

PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy, colorGreen, colorRed ) );



Quote:
I also want to back test the same with 10 min chart, pls guide.
Please check the first post in the thread :"Amibroker: Links, Discussions and more" thread. That has the link for the thread that explains the procedure for backtest.


Quote:
2. I need buy sell signals for ADX.
Please give more details. Information given is not sufficient.

Regards,
Praveen.
Reply With Quote
  #77  
Old 9th March 2007, 06:34 PM
Member
 
Join Date: Sep 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
indrag91 is on a distinguished road
Reputation: 20
Default Re: AmiBroker formula Language

Dear Praveen
Thanks a lot, It was nice i added "plot" to the EMA lndicator and working well.
Regarding backtest i could not get ur correct link, please provide here.

I need some more clarification in amibroker, even if these questions may be basic, please guide me,
1) For intraday signals for MACD and RSI kindly suggest the time period that works out well (particularly for nifty trades )
2) what is ur suggesion on EMA crossover indicators for indraday trades (again for nifty)

Thanks in advance.

Raj
Reply With Quote
  #78  
Old 9th March 2007, 07:13 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 16 Times in 2 Posts
bvpraveen is on a distinguished road
Reputation: 48
Default Re: AmiBroker formula Language

Quote:
Thanks a lot, It was nice i added "plot" to the EMA lndicator and working well.
Glad to hear it.

Quote:
Regarding backtest i could not get ur correct link, please provide here.
The best source where you can learn about Backtesting is Amibroker User Guide. I went through others too, but Users Guide is THE best. Backtesting is discussed under the heading "Back−testing your trading ideas", the Page. no. falls around 119. Check it out there.

It explains each and every bit of backtesting, with well defined examples.

Quote:
I need some more clarification in amibroker, even if these questions may be basic, please guide me,
1) For intraday signals for MACD and RSI kindly suggest the time period that works out well (particularly for nifty trades )
2) what is ur suggesion on EMA crossover indicators for indraday trades (again for nifty)
My knowledge on indicators is next to nothing. Please consult the seniors who are good in indicators like Karthikmarar, etc.

Regards,
Praveen.
Reply With Quote
  #79  
Old 9th March 2007, 07:53 PM
Member
 
Join Date: May 2006
Location: Kolkata
Posts: 1,098
Thanks: 1
Thanked 1 Time in 1 Post
swagat86 is on a distinguished road
Reputation: 25
Default Re: AmiBroker formula Language

Hi frnds,

I dont hav much idea of AFL's. In metastock we change the colour od the bars as in, if the stcok has closed up for the day the bar is green and if its closed down bar is red. Is it possible to do so in Amibroker too. I know that CAndle colors can be changed thru the preference panel. But how about bars. I think there has to be an AFL for that.

If so pls can some one tell. If there is any other method still pls do tell me.



Thnaks In Advance
Reply With Quote
  #80  
Old 9th March 2007, 10:19 PM
Member
 
Join Date: May 2006
Location: Bangalore
Posts: 913
Thanks: 0
Thanked 16 Times in 2 Posts
bvpraveen is on a distinguished road
Reputation: 48
Default Re: AmiBroker formula Language

Quote:
Originally Posted by swagat86 View Post
Hi frnds,

I dont hav much idea of AFL's. In metastock we change the colour od the bars as in, if the stcok has closed up for the day the bar is green and if its closed down bar is red. Is it possible to do so in Amibroker too. I know that CAndle colors can be changed thru the preference panel. But how about bars. I think there has to be an AFL for that.

If so pls can some one tell. If there is any other method still pls do tell me.

Thnaks In Advance
Here is the required AFL:

Code:
_SECTION_BEGIN("BarChart");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
UpColor = ParamColor("UpColor", colorBrightGreen);
DownColor = ParamColor("DownColor", colorRed);
MyColour = IIf(C >= O, UpColor, DownColor);
PlotOHLC(O,H,L,C,"Price", MyColour, styleBar);
Plot( Volume, _DEFAULT_NAME(), IIf(C>O, ParamColor("UpVolume", colorBlue), ParamColor("DownVolume", colorViolet)), ParamStyle( "Style", styleHistogram | styleOwnScale | styleThick, maskHistogram  ), 2 );
_SECTION_END();
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 01:00 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