![]() |
|
| 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. ... |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#71
|
|||
|
|||
|
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
|
|
#72
|
|||
|
|||
|
Quote:
Check the code, ie., test/run the code. I doubt over either its logic or the presentation of the BUY conditions. Praveen. |
|
#73
|
|||
|
|||
|
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. |
|
#74
|
|||
|
|||
|
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 |
|
#75
|
|||
|
|||
|
Quote:
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. |
|
#76
|
||||
|
||||
|
Quote:
Quote:
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:
Quote:
Regards, Praveen. |
|
#77
|
|||
|
|||
|
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 |
|
#78
|
|||
|
|||
|
Quote:
Quote:
It explains each and every bit of backtesting, with well defined examples. Quote:
Regards, Praveen. |
|
#79
|
|||
|
|||
|
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 |
|
#80
|
|||
|
|||
|
Quote:
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();
|
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
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 |
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.