how to use "timeframecompress"

#1
I want to convert to weekly but this formula shows me an error with "timeframecompress" expression

How to convert correctly?

Thanks


CPM = Volume * Close;



volmax = HHV(CPM, 52);
vol_ = ((CPM * 100)/volmax) * (4/5);
volpmed = EMA(vol_, 52);
CPM2 = vol_ - volpmed;
wc = TimeFrameCompress( Close, inWeekly );
weeklyCPM2 = CPM2( wc, 52 );

dynamic_color = IIf( CPM2 > 0, colorGreen, colorRed );
Plot(weeklyCPM2, "CPM", dynamic_color , styleHistogram);
 
Thread starter Similar threads Forum Replies Date
Z AmiBroker 4

Similar threads