KAMAS 1.0 System with StoCCI for Amibroker – AFL Code

KAMAS 1.0 is a user-friendly interesting system based on concepts provided byKaufmann – adaptative Ma’s, it is enhanced with StoCCI indicator, PPO indicator , auto-trendline and fibonacci cluster – auto fib levels wherever you click on the chart. Fully customizable. Of course You should optimize some parameters.

Based on technology provided by http://www.pcinvestor.com/ formerly stockcharts.com.

How to KAMAS 1.0 Trading System

Main windows shows signals. Also fibonnacci levels are provided. So You must be familiar with fibonnacci theory. There is pplotted possible trendline. You may set many parameters when right-clicking on AB panes.

When You have sell/short signal from StoCCI – it is when the indicator reaches 100 look for confirmation from PPO and Main windows (arrows and text). Opposite for buy/cover. Fib levels should help you find possible levels for support and resistance.

StoCCI – fully customizable – it shows signals when reachin 100 and 0, also when crossing EMA(movin average) and dots when it reaches desired levels of OB or OS – you set this levels with one-click .

Remmember – it is reasonable to look at (at least) two time frames . Hourly, 15, 5 min is desirable for comfort trading.

You may look for divergences on PPO , treat StoCCI as faster “brother” of PPO and You will be faster then others in crowd.

Here is view of used parameters in screenshot. If anything is not clear just look at the code (edit) and You will no more .. this stuff is open code!

To install system just copy and paste alle 2 files to Formulas/custom in AB directory.

Download the KAMAS System 1.0

Related Readings and Observations

Comments

  1. JAYESH PATEL says

    YOU HAVE DONE WONDERFUL JOB AND KEEP IT UP I FOUND ONE ERROR IS THAT IT CAN’T BACKTEST OR OPTIMIZE SO CAN YOU HELP REGARDING THIS ERROR

  2. Sandy says

    Rajandran,
    I have done wht you have stated. Please educate how to activate the system in AMibroker.

  3. Nehal says

    I am not getting buy sell signals on main price chart, plus example chart shows 4 emas where as in actual its plotting 2 ema only, may be signals are not coming due to 2 missing emas

  4. prasath says

    i wish to know that perfermance of buysellnifty amibroker indicator .
    Is it worth or that available formula from web and they change name of it ?
    anybody know this pls reply the truth.
    Very THanks in advance

  5. vijay kumar says

    Hi Rajendan
    I visited your site many times pe chance but neve took it seriously. Only today I could undersatand your good site.Thanks a lot. I want to say a few request words (i) To develop AFL like shown at this site http://www.forexpros.com/commodities/gold-technical four all time fames by increasing more indicators. You can see such combination of all indiacators in the trial software of vogaz which can be downloaded from vogaz site. (ii) To stat serial tutorial how to handle amibroker specially how to input the AFL and how to attach a sheet or remove a sheet.
    If you could provide it will be great sevice to novice people like me.
    Thanks again
    Vijay Kumar Haryana

  6. PRASHAN JAIN says

    (please solve error in this AFL) I GOT IT LOT OF ERRORS. PLZ HELP

    _SECTION_BEGIN(“Advanced Trend Lines”);
    function GetXSupport(Lo, Percentage, Back)
    {
    return ((BarCount -- 1) -- LastValue(TroughBars(Lo, Percentage,Back)));
    }
    function GetYSupport(Lo, Percentage, Back)
    {
    return (LastValue(Trough(Lo, Percentage, back)));
    }

    function GetXResistance(Hi, Percentage, Back)
    {
    return ((BarCount -- 1) -LastValue(PeakBars(Hi, Percentage, Back)));
    }
    function GetYResistance(Hi, Percentage, Back)
    {
    return (LastValue(Peak(Hi, Percentage, Back)));
    }
    function TD_Supply(P)
    {
    return ( P > Ref(P, 1) AND P > Ref(P, -1) AND P > Ref(C, -2));
    }
    function TD_Demand(P)
    {
    return ( P < Ref(P, 1) AND P < Ref(P, -1) AND P O,colorGreen, colorRed), styleBar);
    if(DrawAllLines)
    for(i = 2; i<=Lines+1; i++)
    {
    if(DrawS!="Off")
    {
    x0 = GetXSupport(Support1, Percentage, i);
    x1 = GetXSupport(Support2, Percentage, i-1);
    y0 = GetYSupport(Support1, Percentage, i);
    y1 = GetYSupport(Support2, Percentage, i-1);
    x = LineArray(x0, y0, x1, y1, 1);
    if(AllOrUpS) ConS = StrToNum(NumToStr(y0 < y1));
    if(Con AND ConS)
    Plot(x, "", IIf(LastValue(C) y1;
    if(Con AND ConR)
    Plot(x, “”, IIf(LastValue(C) < LastValue(x), colorBlue,colorLightBlue),
    styleLine|styleThick);
    }
    }
    else
    {
    if(DrawS!="Off")
    {
    x0 = GetXSupport(Support1, Percentage, Lines+1);
    x1 = GetXSupport(Support2, Percentage, Lines);
    y0 = GetYSupport(Support1, Percentage, Lines+1);
    y1 = GetYSupport(Support2, Percentage, Lines);
    x = LineArray(x0, y0, x1, y1, 1 );
    Sup = LastValue(LinRegSlope(x, Lines+1));
    if(AllOrUpS) ConS = y0 < y1;
    if(Con AND ConS)
    Plot(x, "", IIf(LastValue(C) y1;
    if(Con AND ConR)
    Plot(x, “”, IIf(LastValue(C) < LastValue(x), colorBlue,colorLightBlue),
    styleLine|styleThick);
    }
    str = "
    R Slope=("+Res+"), S Slope=("+Sup+")";
    }

    if(ShowTDP)
    {
    PlotShapes(TD_Supply(H)*shapeSmallCircle, colorRed, 0, H, H*.001);
    PlotShapes(TD_Demand(L)*shapeSmallCircle, colorGreen, 0, L, -L*.001);
    }
    if(ShowSR)
    {
    for(i=1; i x, colorDarkGreen, colorDarkRed),
    styleLine|styleDashed|styleThick);
    x0 = GetXResistance(H, SRPer, i);
    y0 = GetYResistance(H, SRPer, i);
    x = LineArray(x0, y0, x1, y0, 0);
    Plot(x, “”, IIf(LastValue(C) > x, colorDarkGreen, colorDarkRed),
    styleLine|styleDashed|styleThick);

    }
    }
    Title =FullName()+” ({{NAME}})
    {{DATE}}
    “+”Open: “+O+”, Hi: “+H+”, Lo: “+L+”,
    Close: “+C+StrFormat(” (%.2f %.2f\%)”, C-Ref(C, -1), SelectedValue(ROC(C,
    1)))+str;

    _SECTION_END();

Leave a Reply

Your email address will not be published. Required fields are marked *