macd calculation

Discussion in 'Technical Analysis' started by monarc, Dec 23, 2005.

  1. monarc



    This is my first attempt to write an automated trading system. I have a doubt in calculating macd(26,12). so if we want to calculate macd for multiple time frames, say, 1 minute,5 minute, 10 minutes, 20 minutes etc, do we need to have 1*26 min, 5*26 min, 10 * 26 min and so on of past data at the least to do this calculation for their respective bars??

    Being a newbie at this, It would be great if somebody helps me out here...Any pseudo code will also help.