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 <[email protected] <mailto:[email protected]>> 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






Reply via email to