NiftyMagician : Candle chart

Here your can find AFL's as well as you can post if you have any good afl.

NiftyMagician : Candle chart

Unread postby ashishp » Sat Feb 02, 2013 12:15 pm

_SECTION_BEGIN("Heiken Ashi");
SetChartBkColor(ParamColor("Outer panel color ",colorPaleBlue)); // color of outer border

SetChartBkGradientFill( ParamColor("Inner panel color upper half",
colorPaleBlue),ParamColor("Inner panel color lower half",

colorPaleBlue)); // color of inner panel

HaClose =EMA((O+H+L+C)/4,3);

HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );

HaHigh = Max( H, Max( HaClose, HaOpen ) );

HaLow = Min( L, Min( HaClose, HaOpen ) );

PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "Modified " + Name(), colorBlack, styleCandle | styleNoLabel );

//Title = "\n" + "" + Name() + ", " + Interval(2) + ", " + Date() + "\n";
_SECTION_END();

_SECTION_BEGIN("HMA");
P = ParamField("Price field",-1);
Period = Param("Period:", 20, 1, 200);
SqrtPeriod = Param("Square Root of Period:", 4, 1, 20);

HullMA = WMA(2 * WMA(C, Period / 2) - WMA(C, Period), SqrtPeriod);
Plot(HullMa, _DEFAULT_NAME(), ParamColor("Hull Moving Average Color", colorBlue), ParamStyle("Style"));
_SECTION_END();

_SECTION_BEGIN("Background Color Switcher");
if (NOT ParamToggle("Background switch","On,Off"))
{
bckg1=ParamColor("Background level 1",colorBlack);
bckg2=ParamColor("Background level 2",colorBlack);
bckg3=ParamColor("Background level 3",ColorRGB(25,0,0));
bckg4=ParamColor("Background level 4",ColorRGB(40,0,0));
stockname=ParamColor("Stock name color",ColorRGB(44,44,37));


GfxGradientRect(0,0,Status("pxwidth"),Status("pxheight")*2/5,bckg1,bckg2);
GfxGradientRect(0,Status("pxheight")*2/5,Status("pxwidth"),Status("pxheight")*4/5,bckg2,bckg3);
GfxGradientRect(0,Status("pxheight")*4/5,Status("pxwidth"),Status("pxheight"),bckg3,bckg4);

if (NOT ParamToggle("StockName Switch","On,Off"))
{
GfxSelectFont("Time news roman", Status("pxheight")/7 );
GfxSetTextAlign(6 );
GfxSetOverlayMode(1);
GfxSetTextColor(stockname);

GfxSetBkMode(0);
GfxTextOut(Name(),Status("pxwidth")/2, Status("pxheight")/18 );

GfxSelectFont("Time news roman", Status("pxheight")/26 );
GfxTextOut(FullName(), Status("pxwidth")/2, Status("pxheight")/3.9 );

GfxSelectFont("Time news roman", Status("pxheight")/25 );
GfxTextOut("Market: " + MarketID(1), Status("pxwidth")/2, Status("pxheight")/3 );
}
}
_SECTION_END();

If you like this post please click on LIKE button and share it to world.
Like Us :

ashishp
 
Posts: 93
Joined: Thu Jan 03, 2013 12:10 pm

Re: NiftyMagician : Candle chart

Unread postby ashishp » Sat Feb 02, 2013 12:19 pm

Image

If you like this post please click on LIKE button and share it to world.
Like Us :

ashishp
 
Posts: 93
Joined: Thu Jan 03, 2013 12:10 pm
Top


Return to AFL Section



Who is online

Users browsing this forum: No registered users and 11 guests

Shop at amazon and get latest offers
cron
============================================= =============================================