Пример:
Исходный текст:
Код: Выделить всё
function Initialize()
{
  IndicatorName = "Last";   
  AddInput("Input", Inputs.Price);
  PriceStudy = true;   
  AddSeries("Last", DrawAs.Line, Color.Red);      
  AddLevel(0, Color.Red, LineStyles.Dot, 1, "Last");
}
function Evaluate()
{
// AlfaDirect. 2015. OX
// Last - отображает уровень значения последней сделки
  if (CurrentIndex == MaxIndex)
  {
    Levels[0].Level = Input[0];
  }
}
