Каталог файлов форума

Список вложений в сообщениях, оставленных на этой конференции.

Все файлы форума: 1230

Добавлено: evge » 27 окт 2017, 15:22

Тема: Re: Ошибка при сравнении Bool и Double

Текст сообщения:

br-01.png
br-01.png (31.21 КБ) 17276 просмотров


Код: Выделить всё

function Initialize()
{
IndicatorName = "BRENT";
AddInput("Input", Inputs.Candle);
AddShadowSeries("D", DrawAs.Histogram, Color.Violet);
AddShadowSeries("U", DrawAs.Histogram, Color.Lime);
AddSeries("H", DrawAs.Custom, Color.Black);
AddSeries("L", DrawAs.Custom, Color.Black);

PriceStudy = true;
}

function Evaluate()
{

var DD = (Math.Max(Input.High[0],Input.High[1]) - Input.Low[0]);
var UU = (Input.High[0] - (Math.Min(Input.Low[0],Input.Low[1])));

if (Input.High[0] < Input.High[1])
if ((DD >= 0.14 && DD <= 0.15) || (DD >= 0.19 && DD <= 0.20))
{
D = DD;
L[0] = Input.High[0];
L.DrawArrowDown(Color.HotPink, LineStyles.Solid, 3, Color.HotPink, 10);
}

if (Input.Low[0] > Input.Low[1])
if ((UU >= 0.14 && UU <= 0.15) || (UU >= 0.19 && UU <= 0.20))
{
U = UU;
H[0] = Input.Low[0];
H.DrawArrowUp(Color.Cyan, LineStyles.Solid, 3, Color.Cyan, 10);
}

}