Moving average of diffrent timeframe

hello,
if I use 20 sma on 4hr chart then if I want to plot same on 15 min chart the what sma value of sma I should use to get the same result?

While writing AFLs use following

TimeFrameSet( inHourly*4 );
	SMA_four = EMA(20,CC);
TimeFrameRestore();
    SMA_four = TimeFrameCompress( SMA_four, inHourly*4);

i want that calculation o be used on investing .com platform.
so no code can be writen