Intraday afl

asnavale

Well-Known Member
#3
Is that an typing error? You meant 10, 30 and 76 min AFL?
Possibly it is a typo. The numbers appear unusual.

-Anant
 
#5
ume68
here is the code for 70min and 1030min EMA on 5min chart shown in the site

SetChartOptions(0,chartShowArrows|chartShowDates);
GraphXSpace=5;
Plot(C,"",colorBlack,styleCandle|styleOwnScale);
Plot(EMA(C,14),"70-min EMA",colorGreen,styleLine);
Plot(EMA(C,206),"1030-min EMA",colorRed,styleLine);

vidyasagar
 

asnavale

Well-Known Member
#7
ume68
here is the code for 70min and 1030min EMA on 5min chart shown in the site

SetChartOptions(0,chartShowArrows|chartShowDates);
GraphXSpace=5;
Plot(C,"",colorBlack,styleCandle|styleOwnScale);
Plot(EMA(C,14),"70-min EMA",colorGreen,styleLine);
Plot(EMA(C,206),"1030-min EMA",colorRed,styleLine);

vidyasagar
Hi Vidyasagar,

EMA(C, 14) on a 5-min chart is not same as 70-min EMA. Ume wanted 76-min EMA not 70-min EMA. Also, EMA(C, 206) on 5-min chart is not same as 1030 min EMA.

-Anant.
 
#8
Anant

Thanks for your suggestion, I have made it according to the details given in the site mentioned by ume68, please compare the chart which was shown in the site stockmaniacs. pleaseforgive me if there are any mistakes, I am just learning.

vidyasagar
 

asnavale

Well-Known Member
#9
Anant

Thanks for your suggestion, I have made it according to the details given in the site mentioned by ume68, please compare the chart which was shown in the site stockmaniacs. pleaseforgive me if there are any mistakes, I am just learning.

vidyasagar
Hi Vidyasagar,

You are right. You made it as per the chart in the website. But UME has once again written as 76-min EMA. I don't think it was a typo.
That is why I pointed it out. Anyway, you made a good attempt.

-Anant
 

asnavale

Well-Known Member
#10
This is not a typographical error. I need afl for nity 5min chart with emas of 1030 and 76 minutes. For details see the chart at http://www.nifty.stockmaniacs.net/


Does any body help me out with the afl.

Regards
Hi UME,

I hope the following AFL would give you what you are looking for.

*************************************

SetChartOptions(0, chartShowDates | chartWrapTitle);

TimeFrameSet(in1Minute);
E1 = EMA(C, 76);
E2 = EMA(C, 1030);
TimeFrameRestore();

E76 = TimeFrameExpand(E1, in1Minute);
E1030 = TimeFrameExpand(E2, in1Minute);

_N(Title = StrFormat("{{NAME}}, {{DATE}} - {{INTERVAL}}: {{OHLCX}} {{VALUES}}"));

Plot(C, "", colorGrey50, styleBar);
Plot(E76, "EMA76min", colorBlue, styleLine);
Plot(E1030, "EMA1030min", colorRed, styleLine);



***************************************

-Anant