Please peopel help can i get macd afl in daily time fram

#2
THE LORD

Try this

r1 = Param( "Fast avg", 12, 1, 50, 1 );
r2 = Param( "Slow avg", 26, 1, 100, 1 );
r3 = Param( "Signal avg", 9, 2, 50, 1 );
T=Param("Timeframe",1224,1,2000,1);
TimeFrameSet(in1Minute * T);
ml = MACD(r1,r2);
sl = Signal(r1,r2,r3);
TimeFrameRestore();
Plot( ml,"MACD", colorRed, styleLine|styleThick );
Plot( sl,"Signal", colorBlue, styleLine|styleThick );
Plot( ml-sl, "", colorBlack,styleHistogram|styleNoLabel);

vidyasagar
 

THE LORD

Active Member
#3
mr vkunisetty its great worke but i want it to be expand if i open the 1 hour frame
every bar of macd cover 4 houres im sorry if you dont understand put just see
this furmula every day cover 4 hourly bars

_SECTION_BEGIN("Volume Daily");
n=Param("TM",1,1,60,1);
VV=TimeFrameGetPrice("V",n*inDaily,0,expandPoint);
n_open = TimeFrameGetPrice("O",n*inDaily,0,expandPoint);
n_close = TimeFrameGetPrice("C",n*inDaily,0,expandPoint);
Plot(TimeFrameGetPrice("V",n*inDaily,0,expandPoint), _DEFAULT_NAME(), IIf(n_close >n_open , ParamColor("Up Color", colorBlue), ParamColor("Down Color", colorYellow ) ), ParamStyle( "Style", styleHistogram | styleThick, maskHistogram ) );
Plot(0,"",colorWhite,styleLine+styleThick);
_SECTION_END();
so i need like this furmola thnx for what did you do

so pease mr dont leve me alone in this please help me
 
#4
THE LORD

Sorry missed some lines

r1 = Param( "Fast avg", 12, 1, 50, 1 );
r2 = Param( "Slow avg", 26, 1, 100, 1 );
r3 = Param( "Signal avg", 9, 2, 50, 1 );
TimeFrameSet(inHourly * 24);
mh = MACD(r1,r2);
sh = Signal(r1,r2,r3);
Hh=mh-sh;
TimeFrameRestore();
md=TimeFrameExpand(mh,inHourly*24);
sd=TimeFrameExpand(sh, inHourly*24);
Hd=TimeFrameExpand(Hh,inHourly*24);
Plot(md,"MACD", colorRed, styleLine|styleThick );
Plot(sd,"Signal", colorBlue, styleLine|styleThick );
Plot(Hd, "", colorBlack,styleHistogram|styleNoLabel);

vidyasagar
 

singhboy

Active Member
#6
Vkunisetty bro can u write afl to scan for stocks in which DI+ cross DI- on 3 mint chart, n stoch on 5-15 mint time frames is upside. Howeva i can make it more comlpicated but even this would work, thnx
 

Similar threads