I'm testing multiframe and I found something I think that's an ERROR.
With this simple code,
BarPeriod = 5;
TimeFrame=3;
vars Prices=series (priceClose());
var m15 = RSI(Prices,20);
vars RSIm15 = series(m15);
plot("RSI-M15",RSIm15[0],NEW,BLUE);
The value in "Result" is different when I put:
BarPeriod=15 ( and delete line " TimeFrame=3)
And one more thing, when I put this code with other timeframe, the result is different too:
function f1(){
TimeFrame=3;
vars Prices=series (priceClose());
var m15 = RSI(Prices,20);
vars RSIm15 = series(m15);
plot("RSI-M15",RSIm15[1],NEW,BLUE);
}
function f2(){
TimeFrame=48;
vars Prices60=series (priceClose());
var H1 = RSI(Prices60,20);
vars RSIh1 = series(H1);
plot("RSI-H1",RSIh1[1],NEW,RED);
}
function run()
{
StartDate= 20180101;
EndDate = 20180331;
set(PARAMETERS+LOGFILE+PLOTNOW);
BarPeriod = 5;
f1();
f2();
TimeFrame=3;
}
What is the reason ? Any idea ? When I click "Result" there are 3 different values..
Thanks in advance