Tomasz
I was quite surprised to find that ”TimeFrameSet”
does not work on “Foreign” symbols. Below is the code that I am
using. Am doing something wrong or my assumption is correct ? TIA
dt=
DateTime
();
mo =
Month
();
TimeFrameSet
(inMonthly);
mc = Close;
RiskLessRate =
Foreign
(
"TBY"
,
"C"
);
TimeFrameRestore
();
mc =
TimeFrameExpand
(mc, inMonthly);
RiskLessRate =
TimeFrameExpand
(RiskLessRate, inMonthly);
for
( i =
0
; i < BarCount; i++ )
{
_TRACE
(
"i: "
+ i +
" Date: "
+
NumToStr
( dt[i], formatDateTime ) +
" mc: "
+ mc[i] +
" RiskLessRate: "
+ RiskLessRate[i]);
}