храните как Double
получив TotalMilliseconds из BarTime
Код: Выделить всё
/**
**/
function Initialize()
{
StrategyName = "MyMTS65";
AddParameter("P1", 0, "", 1);
AddInput("Input1", Inputs.Candle, 1, true, "");
LongLimit = 1;
ShortLimit = -1;
AddGlobalVariable("t1", Types.Double);
}
function OnUpdate()
{
//запись в глоб. переменную
t1 = BarTime().TotalMilliseconds;
//сравнение с глоб переменной
if (BarTime().TotalMilliseconds == t1)
{
//сохраненное и текущеее равны
}
}