I am trying to create an indicator that will plot a 30 minute MACD under a 5 minute chart. Is the code below correct? I am only able to plot MACD, and not the signal.
function main(){
var ema12_30 = ema(12, inv(30));
var ema26_30 = ema(26, inv(30));
var macd_30 = ema12_30 - ema26_30;
var sig_30 = ema(9, macd_30(inv(30)));
return new Array(macd_30, sig_30);
}
thanks,
Jeremy
function main(){
var ema12_30 = ema(12, inv(30));
var ema26_30 = ema(26, inv(30));
var macd_30 = ema12_30 - ema26_30;
var sig_30 = ema(9, macd_30(inv(30)));
return new Array(macd_30, sig_30);
}
thanks,
Jeremy
Comment