Реал трейды nyse

А это я модифицировал чтоб не базу на круглых, а просто когда к круглым подходит показывала агрегейшн минута: def iDiff = 0.03; # задайте максимальное отклонение в центах/ Amadey_MF def iLowest = lowest(low,1); def iHighest = highest(high,1); def bBaseLow = if ((low[0]-iLowest)<=iDiff) then 1 else 0; def bBaseHigh = if ((iHighest-high[0])<=iDiff) then 1 else 0; def bFigureLow = if (low[1] == (Floor(low[1]*2))/2) then 1 else 0; def bFigureHigh = if (high[1] == (Ceil(high[1]*2))/2) then 1 else 0; plot bBase = if (bBaseLow and bFigureLow) then 1 else if (bBaseHigh and bFigureHigh) then 2 else 0; AssignBackgroundColor (if (bBase == 1) then Color.LIGHT_GREEN else if (bBase == 2) then Color.LIGHT_RED else Color.white); bBase.AssignValueColor (if (bBase > 0) then Color.black else Color.CURRENT);


Проголосовало: 0

Сен 14 2012, 14:49


Наш канал