Код: Выделить всё
function Initialize()
{
IndicatorName = "A10";
PriceStudy = true;
AddInput("Input", Inputs.Candle);
AddSeries("A", DrawAs.Line, Color.Red);
//AddSeries("SM", DrawAs.Line, Color.Green);
//AddSeries("S", DrawAs.Line, Color.Gray);
AddParameter("Period", 20);
AddVariable("Z", 0);
}
function Evaluate()
{
if (BarTime() == AsTime(10, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(11, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(12, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(13, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(14, 05, 00))
A = Input.Open[0];
if (BarTime() == AsTime(15, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(16, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(17, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(18, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(19, 05, 00))
A = Input.Open[0];
if (BarTime() == AsTime(20, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(21, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(22, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(23, 00, 00))
A = Input.Open[0];
if (BarTime() == AsTime(24, 00, 00))
A = Input.Open[0];
}