Is the EMA period of the MACD in Seetu always days?
Can you set an option to use a different EMA period? (like 5-minute, or 1 hour)
Dave
The opinions expressed in these forums do not represent those of C2, and any discussion of profit/loss is not indicative of future performance or success. There is a substantial risk of loss in trading. You should therefore carefully consider whether such trading is suitable for you in light of your financial condition. You should read, understand, and consider the Risk Disclosure Statement that is provided by your broker before you consider trading. Most people who trade lose money.
Is the EMA period of the MACD in Seetu always days?
Can you set an option to use a different EMA period? (like 5-minute, or 1 hour)
Dave
You need to switch to the desired time frame.
Use the command SetOption("Periodicity",...);
All possible options:
SetOption(“Periodicity”,MINUTE1);
SetOption(“Periodicity”,MINUTE5);
SetOption(“Periodicity”,MINUTE15);
SetOption(“Periodicity”,MINUTE30);
SetOption(“Periodicity”,HOUR1);
Example:
SetOption("Periodicity",MINUTE5);
SetOption("ApplytoRecentBars", 200);
SetOption("Symbols", "MSFT,AAPL");
// Buy = Cross(CalcMACD(), CalcMACDSignal());
// Sell = 1;
// ...
// Chart:
doPlot( CalcMACD(), "CalcMACD()", colorRed, styleLine);
doPlot(CalcMACDSignal(), "CalcMACDSignal()", colorBlue, styleLine);
filter = 1;
addcolumn(CalcMACD(), "CalcMACD()");
Result: