how to draw indicator diff time frame on single graph

#1
Hi,

Consider, any indicator e.g. Mov Avg . If we apply it on daily,weekly,monthly chart it gives diff values for each.

I want to overlay all these into single daily chart.

Any idea how to do it?

Thanks,
Paresh
 

casoni

Well-Known Member
#2
try this

TimeFrameSet(inDaily);
ta=MA(C,5);
TimeFrameRestore();
taa=TimeFrameExpand(ta,inDaily,expandFirst);

TimeFrameSet(inWeekly);
tb=MA(C,5);
TimeFrameRestore();
tbb=TimeFrameExpand(tb,inWeekly,expandFirst);

TimeFrameSet(inMonthly);
tc=MA(C,5);
TimeFrameRestore();
tcc=TimeFrameExpand(tc,inMonthly,expandFirst);
Plot(C,"",2,64);
Plot(taa,"daily",3,1);
Plot(tbb,"weekly",4,1);
Plot(tcc,"monthly",5,1);

You can use this on intraday chart also.
i
 

Similar threads