I decided to try and grab the EMA with interval 8 because Im going to be trading an 8minute time frame but am back testing on 1m right now. I used this command:
var vEMA8 = ema(8,inv(8));
var vEMA21 = ema(21,inv(8));
As opposed to the old command I was using:
var vEMA8 = new MAStudy(80, 0, "Close", MAStudy.EXPONENTIAL);
var vEMA21 = new MAStudy(120, 0, "Close", MAStudy.EXPONENTIAL);
The two look totally different on a one minute chart. The backtesting results with the built in interval ema are 2.3x more profitable. I dont know why. I used the same values. Will the signals not trigger but every 8 minutes then? Strange.
What I normally do is use the tester on a 1 minute chart of 90 days and use a 64 period MA (8minute * 8pd ma should be 64 on a 1 minute time frame .. correct?)
var vEMA8 = ema(8,inv(8));
var vEMA21 = ema(21,inv(8));
As opposed to the old command I was using:
var vEMA8 = new MAStudy(80, 0, "Close", MAStudy.EXPONENTIAL);
var vEMA21 = new MAStudy(120, 0, "Close", MAStudy.EXPONENTIAL);
The two look totally different on a one minute chart. The backtesting results with the built in interval ema are 2.3x more profitable. I dont know why. I used the same values. Will the signals not trigger but every 8 minutes then? Strange.
What I normally do is use the tester on a 1 minute chart of 90 days and use a 64 period MA (8minute * 8pd ma should be 64 on a 1 minute time frame .. correct?)
Comment