[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Help need with this AFL Code



PureBytes Links

Trading Reference Links

You need to post also rules.afl and intradaycal.afl

Tony Grimes wrote:

I think you need to talk to your friend, there are NO Buy or Sell rules defined.



On Mon, Apr 6, 2009 at 6:11 AM, ksridhar_personal <sridhar20002000@xxxxxxxxx> wrote:

Hi,

I was given this AFL code by one of my friends saying that this code will generate buy / sell signals. But when i use in my system, it doesn't create anything.

So Please help me with this. Please do let me know for what this code stands for?

File Name: Intradaycal.afl
--------------------------

#pragma nocache
#include <rules.afl>

_SECTION_BEGIN("Price");
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 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

_SECTION_END();

_SECTION_BEGIN("Volume");
Plot( Volume, _DEFAULT_NAME(), ParamColor("Color", colorBlueGrey ), styleNoTitle | ParamStyle( "Style", styleHistogram | styleOwnScale | styleThick | styleNoLabel, maskHistogram ), 2 );
_SECTION_END();
SetChartBkGradientFill( ParamColor("BgTop", ColorLightYellow),ParamColor("BgBottom", ColorLightYellow));

intradaycalls();

============================End of File======================

File Name: rules.afl
---------------------

function intradaycalls(){SetChartBkGradientFill( ParamColor("BgTop", colorLightBlue),ParamColor("BgBottom", colorRose));}
function deliverycalls(){SetChartBkGradientFill( ParamColor("BgTop", colorLightBlue),ParamColor("BgBottom", colorRose));}
function macdbs(){SetChartBkGradientFill( ParamColor("BgTop", colorLightBlue),ParamColor("BgBottom", colorRose));}
function deTrix(){SetChartBkGradientFill( ParamColor("BgTop", colorLightBlue),ParamColor("BgBottom", colorRose));}

========================End of File=========================

He claims that this afl code is working for him. He had instructed me to copy the intradaycal.afl to custom folder inside formula and rules.afl to include folder inside formula

Please do you help me....

Sridhar





__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___