Amibroker code

XRAY27

Well-Known Member
#11


is this wht we r looking for?
i managed to do this.

@ praveen5344

i downloaded the data but it is not wht i seek.
i wanted the 5 mini data of BPCL frm 1st of jun 13 to 10th of Sept 13
if anybody have it plz share.
please give your code if possible
 

XRAY27

Well-Known Member
#12

extremist

Well-Known Member
#13
@XRAY27

i 'm posting my code but i'm sure no one will like it coz it's too simple.

people in here some time don't like simple codes.

it exactly matched with the curve shown in pics for nifty by praveen.


z=EMA(C,89)+EMA(EMA(C,34)-EMA(C,89),610);

Plot( z,"\nMcD King:", ParamColor( "Color", colorCycle ), ParamStyle("Style",styleThick) ,0,0,0,2);

just save this code as new code and drag and drop it on the the price panel.
and its done.


Now I have posted the code and let's see how many comments and queries come
 

dell

Well-Known Member
#14
@XRAY27

i 'm posting my code but i'm sure no one will like it coz it's too simple.

people in here some time don't like simple codes.

it exactly matched with the curve shown in pics for nifty by praveen.


z=EMA(C,89)+EMA(EMA(C,34)-EMA(C,89),610);

Plot( z,"\nMcD King:", ParamColor( "Color", colorCycle ), ParamStyle("Style",styleThick) ,0,0,0,2);

just save this code as new code and drag and drop it on the the price panel.
and its done.


Now I have posted the code and let's see how many comments and queries come
extremist sir , what is this actually ? is it ema 34 after calculation ? or something else like smooting ema34....
 

extremist

Well-Known Member
#16
@dell
it is not ema 34.
u may call it as smoothing of ema 34
but if u want exact answer to ur query then u can find tht it is exactly wht it is named as Macd King.
it is macd of exponential averages 34 and 89 with signal period of 610.
and if u have noticed all these three no belongs to the Fibonacci series of no.

Fibonacci series of no. :

0, 1, 2, 5, 8, 13, 21, 34 , 55, 89, 144, 233, 377, 610

i hope i cleared ur doubt...
 
#18
Dear xray27

as per ur request

_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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

t=Param("t", 240, 1, 5000, 1);

/*Top = Sum(High, t) / t;
Bottom = Sum(Low, t) / t;
*/
Top = EMA(High, t) ;
Bottom = EMA(Low, t);

av=(Top+Bottom)/2;
mc=IIf(av>C, ParamColor("Trigger line Up Color", colorGold), ParamColor("Trigger line Dn Color", colorBlue));
Plot(av, "\nTrigger : ", mc, ParamStyle("Trigger line Style",styleStaircase,maskAll),0,0,0,9);

_SECTION_END();

if u use it on range bar then it will be more effective

Abhishek
 

XRAY27

Well-Known Member
#19
@XRAY27

i 'm posting my code but i'm sure no one will like it coz it's too simple.

people in here some time don't like simple codes.

it exactly matched with the curve shown in pics for nifty by praveen.


z=EMA(C,89)+EMA(EMA(C,34)-EMA(C,89),610);

Plot( z,"\nMcD King:", ParamColor( "Color", colorCycle ), ParamStyle("Style",styleThick) ,0,0,0,2);

just save this code as new code and drag and drop it on the the price panel.
and its done.


Now I have posted the code and let's see how many comments and queries come
HI
i like KISS (keep it simple and straight) rather then heavy colourful afls..keep it up dear:)