Hi,
For around an year I have been using multi time frame explorations, with some help from members of this forum, thanks for the help.
This instance the cry for help is for an RSI exploration, periodicity is set to hourly, the exploration is for weekly, daily and hourly time frames. Below is the code:
_SECTION_BEGIN("MT RSI");
Filter=1;
//RSI BEGIN
TimeFrameSet(inWeekly);
tr =IIf(RSI(14)>60,colorGreen,IIf(RSI(14)<40,colorRed,IIf(RSI(14)<60 AND RSI(14)>40 ,colorTan,colorBlack)));
AddColumn(RSI(14),"RSI WLY",1.2,colorDefault , tr,75);
TimeFrameRestore();
//RSI DAILY
TimeFrameSet(inDaily);
tr =IIf(RSI(14)>60,colorGreen,IIf(RSI(14)<40,colorRed,IIf(RSI(14)<60 AND RSI(14)>40 ,colorTan,colorBlack)));
AddColumn(RSI(14),"RSI DLY",1.2,colorDefault , tr,75);
TimeFrameRestore();
//HOURLY RSI
TimeFrameSet(inHourly);
tr =IIf(RSI(14)>60,colorGreen,IIf(RSI(14)<40,colorRed,IIf(RSI(14)<60 AND RSI(14)>40 ,colorTan,colorBlack)));
AddColumn(RSI(14),"RSI Hly",1.2,colorDefault , tr);
TimeFrameRestore();
///////// END RSI///////////////
_SECTION_END();
When I run this exploration on a watchlist using "1 recent bar" there is no problem, works OK. Screen capture below:
However when run on an individual security, "Current" with "from-To dates", the results are incorrect.
The exploration is for a standard , 14, period setting of the RSI, hence values for the daily RSI should start showing from the 15th day onwards and for weekly 15th week onwards.
But this does not happen, selected date range is 01/04/20 to 19/02/21, the first value for the daily RSI shows on 30/12/20 - after nearly 9 months and only on 1/02/21 for the weekly, screen shots below:
Request help to get the values at the correct, after 15 days / weeks as the period of the RSI is 14.
Thanks.