li

Amibroker Ichimoku AFL With Least Noise

Download updated EOD, IEOD Data of Nifty and FNO stocks for Amibroker and Metastock [Download here]. Submit correct details and only one copy to one person. Please don't spam.

To get IEOD Data into Amibroker visit the link below:

http://tinyurl.com/ctzqcsy  

Here is the Amibroker Ichimoku AFL with least noise:

_SECTION_BEGIN(“bands”);

CStyle = ParamToggle(“BANDS?”,”N|Y”);

if(Cstyle)
{
TOPP = ParamField(“TOPPField”,1);
BOTP = ParamField(“BOTPField”,2);
type = ParamList(“Type “, “Keltner Bands|Bollinger Bands|Percent Bands”);
TOPPeriods = Param(“TOPPeriods”, 21, 2, 300 );
BOTPeriods = Param(“BOTPeriods”, 21, 2, 300 );
Width = Param(“Width”, 2, 0, 10, 0.05 );
Color = ParamColor(“Color”, colorCycle );
Style = ParamStyle(“Style”);
TOPCenterLine = MA( TOPP, TOPPeriods );
DOWNCenterLine = MA( BOTP, BOTPeriods );
KTop   = TOPCenterLine + Width * ATR( TOPPeriods );
KBot = DOWNCenterLine – Width * ATR( BOTPeriods );

if( Type == “Keltner Bands” )

{Plot( KTop, “KBTop” + _PARAM_VALUES(), Color, Style );
Plot( KBot, “KBBot” + _PARAM_VALUES(), Color, Style ); }

else if( Type == “Bollinger Bands” )
{Plot( BBandTop( TOPP, TOPPeriods, Width ), “BBTop” + _PARAM_VALUES(), Color, Style );
Plot( BBandBot( BOTP, BOTPeriods, Width ), “BBBot” + _PARAM_VALUES(), Color, Style );}

else if( Type == “Percent Bands” )
{Plot( (1 + Width * 0.01) * TOPCenterLine, “%EnvTop” + _PARAM_VALUES(), Color, Style );
Plot( (1 – Width * 0.01) * DOWNCenterLine, “%EnvBot” + _PARAM_VALUES(), Color, Style );
}

}
_SECTION_BEGIN(“ichimoku kiyo”);
//=======================================================================
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() );
if( ParamToggle(“Tooltip shows”, “All Values|Only Prices” ) )
{
ToolTip=StrFormat(“Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: “+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}

SL = ( HHV( H, 26 ) + LLV( L, 26) )/2;
TL = ( HHV( H, 9 ) + LLV( L, 9 ) )/2;
DL = Ref( C, 26 );
Span1 = (( SL + TL )/2);
Span2 = (HHV( H, 52) + LLV(L, 52))/2;

//Plot(SL,”SL”,2,styleThick); // standard, base, or kijun-sen line
//Plot(TL,”TL”,2,styleThick); // turning, conversion, or tenkan-sen line
//Plot(DL,”",colorLightBlue,styleLine); // delayed, lagging, or chikou span
Plot(Span1,”",colorGreen,1,0,0,26); // senkou span A, kumo, or white clouds
Plot(Span2,”",colorSeaGreen,1,0,0,26); // senkou span B, kumo, or white clouds
PlotOHLC(Span1,Span2,Span1,Span2,”",IIf(Span1>Span2,8,9),styleCloud|4096,0,0,26);

Buy = Cross(TL,SL);
Sell = Cross(SL,TL);
shape=Buy*shapeUpArrow + Sell*shapeDownArrow;
//PlotShapes(shape,IIf(Buy,colorDarkGreen,colorRed), 0,IIf//(Buy,Low,High));
//==========================================================
_SECTION_END();

_SECTION_BEGIN(“Price”);
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat(“{{NAME}} – {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}”, O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, “Close”, ParamColor(“Color”, colorBlack ), styleNoTitle | ParamStyle(“Style”) | GetPriceStyle() );

HI = Close > Ref(HHV(High,260),-1);
LW = Close < Ref(LLV(Low,260),-1);

Valueofrsi = RSI(100);
NHI = Valueofrsi > Ref(HHV(RSI(100),260),-1);

Filter = NHI;

AddColumn( Close > Ref(HHV(High,260),-1), “52 Week High”, 1 );
AddColumn( Close < Ref(LLV(Low,260),-1), “52 Week Low”, 1 );
AddColumn( C, “Close”, 1.2 );

_SECTION_END();

Author of Analystcalls

Author of AnalystCalls. Have you checked my most viewed articles on how to download and configure Free EOD, IEOD & Real-time data of NSE, MCX into Amibroker? Here are the details [LINK] .

You are reading this article on analystcalls.in, Stay tuned for career, Education news, Jobs, Exam Results, Answer keys, Interviews & Job discussions, Stock Market Technical and Trading Analysis and Calls, Latest Trendy News! For regular updates like us on Facebook and Subscribe by Email to get immediate updates.

Enter your email address to get Instant Updates:

Do check your Inbox and Verify after submitting your Email

11 Comments

  1. Krish says:

    Hi Priya,

    Thank you very much for Ichimoku post. Its really least noise Ichimoku . This is very useful for the followers to make money.

    In November 6th post you said “Highest OI is building up in 5400CE and 5500CE. So the coming week is going to be a consolidation zone for Nifty from OI view point.”

    I would like to know , Is there any strategy to find the consolidation or sideways using open interest or other tools?

    Because Most of the profits are gained by the Trending market are lost by the sideways market. That’s why I need to know how to find and trade in the sideways market?

    Thanks,

    Krish P.M

    • Priya says:

      Hi Krish,

      You are welcome…
      Most of the time markets bow before the Option writers(Shorters). It is the Open Interest that shows some picture about how the option writers move their coins..in other words, whether they are writing more fresh calls or puts/ covering them. So based on that I gave my view that it could be in consolidating zone. But Market is Supreme at the same time.
      More than anything it is the behaviour of price and the demand and supply of that particular stock at the given price that rules the market and this observation comes with experience..no thumb-rules for this but observation.
      I will also come up with some articles on how to study Open Interest.

    • Priya says:

      I suggest to always write(Short) options in the sideways market, choose the right and low-risk strategy like I mentioned in the article Low Risk Strategy . Because sideways market always kills option premium and it is encashed by the option-writers.

  2. kalyan says:

    hi , some sintax error in first 2 column , error may be 31. could not solve .also if u upload in notepad or text form wud be better.

  3. boopathi says:

    Hi

    Can u guide me how to place your ichimoku AFL code in the ami system. can i give teamviewer pw

  4. jels says:

    Hi Priya

    I like to know how to generate the AFL for buy and sell signals using EMA and MACD values and do u have any scripts or code and can you post here or send mail to jakkara@gmail.com.Thnks for this AFL

    rgds
    Jelson

  5. deepak says:

    Priya..
    i came accros u r post today .. find very helpful … thanks a lot for u r post.. and hats of for what u r doing…

  6. shalu sharma says:

    Hi Priya
    Your contents are very helpful. Do u have something for MetaStock also. I need a strategy in Metastock for identifying sideways market.

    Shalu

0 Trackbacks

    Leave a Reply

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

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    2901 k