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

[amibroker] Help need with this AFL Code



PureBytes Links

Trading Reference Links

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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/