Hey I was wondering if it was possible to create a MACD crossover algo that that used two different time periods for example If I wanted to use a 5 min and 1 min time period.
I was thinking of trying to make a signal that checks if the MACD line is above the signal line on the 5 min chart and then buys and sells the moving average crossovers on the 1 min chart.
Is it possible to do this? If so how would I code the if statements that checks the MACD with the corresponding time period ( 1 & 5 min)
Any help with this would be greatly appreciated!