← К каталогу
Исходный код · ID 2214

rsioma_db_v1_05.mq5

Вы автор или правообладатель?

Сообщите нам, если считаете, что материал размещён без разрешения.

Краткий обзор

О программе

Индикатор для MetaTrader 4, отображающий визуальные сигналы на основе внешнего индикатора RSIOMA (2) по нескольким таймфреймам. Использует таймер для периодического обновления данных и рисует на графике метки, цветные квадраты и стрелки в зависимости от значений расчётных линий. Поддерживает отображение для месячного, недельного, дневного, H4, H1, M30, M15, M5 и M1 таймфреймов, а также опциональную проверку пересечения уровней на минутном графике с отправкой алертов.

Настройки программы

НастройкаОписание
_Comment Комментарий — Текстовый комментарий, отображаемый в списке параметров индикатора.
_Comment_2 Второй комментарий — Дополнительный текстовый комментарий для идентификации экземпляра.
objectpreamble Преамбула объектов — Префикс имён графических объектов, создаваемых индикатором на графике.
UpdateTimerInSeconds Интервал обновления таймера — Период в секундах между вызовами обновления отображения индикатора.
chartId Идентификатор графика — Идентификатор графика, на котором создаются графические объекты.
showMonth Показать месяц — Включает или отключает отображение индикаторных значений на месячном таймфрейме.
showWeek Показать неделю — Включает или отключает отображение индикаторных значений на недельном таймфрейме.
showDay Показать день — Включает или отключает отображение индикаторных значений на дневном таймфрейме.
showH4 Показать H4 — Включает или отключает отображение индикаторных значений на таймфрейме H4.
showH1 Показать H1 — Включает или отключает отображение индикаторных значений на таймфрейме H1.
showM30 Показать M30 — Включает или отключает отображение индикаторных значений на таймфрейме M30.
showM15 Показать M15 — Включает или отключает отображение индикаторных значений на таймфрейме M15.
showM5 Показать M5 — Включает или отключает отображение индикаторных значений на таймфрейме M5.
showM1 Показать M1 — Включает или отключает отображение индикаторных значений на таймфрейме M1.
currencyPair Валютная пара — Символ инструмента, по которому запрашиваются данные индикатора.
useSignalsRank Использовать ранжирование сигналов — Флаг, определяющий способ интерпретации сигналов индикатора при формировании визуальных маркеров.
xAnchor Горизонтальная позиция якоря — Начальная горизонтальная координата отрисовки элементов индикатора на графике.
yAnchor Вертикальная позиция якоря — Начальная вертикальная координата отрисовки элементов индикатора на графике.
fontSize Размер шрифта — Размер шрифта для текстовых меток индикатора.
squareSize Размер квадрата — Размер графического квадрата-индикатора, отображаемого на графике.
squareSpace Промежуток между квадратами — Расстояние между соседними квадратами-индикаторами по горизонтали.
textColor Цвет текста — Цвет текстовых меток таймфреймов на графике.
xOutline Смещение контура по X — Горизонтальное смещение графического элемента-контура относительно точки привязки.
arrowOutlineX Смещение стрелки по X — Горизонтальное смещение стрелки-индикатора относительно точки привязки.
arrowOutlineY Смещение стрелки по Y — Вертикальное смещение стрелки-индикатора относительно точки привязки.
M5_RsiOma_Crossing_Enabled Включить пересечение M5 — Включает проверку пересечения уровней на минутном графике с отправкой алерта.
b80Level Использовать уровень 80 — Определяет, используется ли порог 80 для проверки пересечения на M5.
NbrOfBarsForCrossing Количество баров для пересечения — Количество баров, участвующих в проверке условия пересечения на M5.
_d80Level Значение уровня 80 — Числовой порог уровня 80, используемый при проверке пересечения на M5.
_d50Level Значение уровня 50 — Числовой порог уровня 50, используемый при проверке пересечения на M5.
Получить полный код

Поиск по коду файла

#property version   "1.00"
#property strict
#property indicator_chart_window

sinput string _Comment="RSIOMA (2).ex4 is needed";
sinput string _Comment_2="Preamble must be unique for evere instance in chart";
sinput string objectpreamble="rsioma_db_";
sinput int UpdateTimerInSeconds=5;
sinput long chartId=0;
sinput bool showMonth= false;
sinput bool showWeek = true;
sinput bool showDay= true;
sinput bool showH4 = true;
sinput bool showH1 = true;
sinput bool showM30 = false;
sinput bool showM15 = true;
sinput bool showM5 = true;
sinput bool showM1 = false;
sinput string currencyPair = "EURUSD";

sinput bool useSignalsRank=false;

sinput int xAnchor = 1250;
sinput int yAnchor = 200;
sinput int fontSize= 6;
sinput int squareSize=14;
sinput int squareSpace=5;

sinput color textColor=clrOrange;
sinput int xOutline=3;
sinput int arrowOutlineX = 3;
sinput int arrowOutlineY = 3;
double multiplier=1.65;

sinput bool M5_RsiOma_Crossing_Enabled = true;
sinput bool b80Level = true;
sinput int NbrOfBarsForCrossing = 1;
sinput double _d80Level = 80.0;
sinput double _d50Level = 50.0;

int yOffsetArrow;

string preamble;
static datetime _M5Crossing=0;

double tmpValue_1,tmpValue_2,tmpValue_3,tmpValue_4,tmpValue_5,tmpValue_6;

int OnInit()
  {
      // код доступен только после оплаты
   }

void OnDeinit(const int reason)
  {

   EventKillTimer();

   string name;
   string s=preamble;

   for(int i=ObjectsTotal()-1; i>=0; i--)
     {
      name=ObjectName(i);
      if(StringSubstr(name,0,StringLen(s))==s)
        {
         ObjectDelete(name);
        }
     }

  }

int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
      // код доступен только после оплаты
   }

void OnTimer()
  {

   int xOffset = xAnchor;
   int yOffset = yAnchor;
   if(showMonth)
     {
      tmpValue_1 = iCustom(currencyPair,PERIOD_MN1,"RSIOMA (2)", 0, 0);
      tmpValue_2 = iCustom(currencyPair,PERIOD_MN1,"RSIOMA (2)", 5, 0);
      tmpValue_3 = iCustom(currencyPair,PERIOD_MN1,"RSIOMA (2)", 0, 1);

      SetText(chartId,preamble+"MN1_label_"+currencyPair,"M",xOffset,yOffset,textColor,fontSize);
      if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>80.0)
        {
         SetObjText(chartId,preamble+"square_MN1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrLime,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>50.0)
        {
         SetObjText(chartId,preamble+"square_MN1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGreen,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<20.0)
        {
         SetObjText(chartId,preamble+"square_MN1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrRed,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<50.0)
        {
         SetObjText(chartId,preamble+"square_MN1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrOrange,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else
        {
         SetObjText(chartId,preamble+"square_MN1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGray,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_MN1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }

        }

      xOffset=xOffset+squareSize+squareSpace;
     }

   if(showWeek)
     {
      tmpValue_1 = iCustom(currencyPair,PERIOD_W1,"RSIOMA (2)", 0, 0);
      tmpValue_2 = iCustom(currencyPair,PERIOD_W1,"RSIOMA (2)", 5, 0);
      tmpValue_3 = iCustom(currencyPair,PERIOD_W1,"RSIOMA (2)", 0, 1);

      SetText(chartId,preamble+"W1_label_"+currencyPair,"W",xOffset,yOffset,textColor,fontSize);
      if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>80.0)
        {
         SetObjText(chartId,preamble+"square_W1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrLime,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>50.0)
        {
         SetObjText(chartId,preamble+"square_W1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGreen,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<20.0)
        {
         SetObjText(chartId,preamble+"square_W1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrRed,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<50.0)
        {
         SetObjText(chartId,preamble+"square_W1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrOrange,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else
        {
         SetObjText(chartId,preamble+"square_W1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGray,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_W1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
        }

      xOffset=xOffset+squareSize+squareSpace;
     }

   if(showDay)
     {
      tmpValue_1 = iCustom(currencyPair,PERIOD_D1,"RSIOMA (2)", 0, 0);
      tmpValue_2 = iCustom(currencyPair,PERIOD_D1,"RSIOMA (2)", 5, 0);
      tmpValue_3 = iCustom(currencyPair,PERIOD_D1,"RSIOMA (2)", 0, 1);

      SetText(chartId,preamble+"D1_label_"+currencyPair,"D",xOffset,yOffset,textColor,fontSize);
      if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>80.0)
        {
         SetObjText(chartId,preamble+"square_D1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrLime,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>50.0)
        {
         SetObjText(chartId,preamble+"square_D1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGreen,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<20.0)
        {
         SetObjText(chartId,preamble+"square_D1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrRed,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<50.0)
        {
         SetObjText(chartId,preamble+"square_D1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrOrange,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else
        {
         SetObjText(chartId,preamble+"square_D1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGray,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_D1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
        }

      xOffset=xOffset+squareSize+squareSpace;
     }

   if(showH4)
     {
      tmpValue_1 = iCustom(currencyPair,PERIOD_H4,"RSIOMA (2)", 0, 0);
      tmpValue_2 = iCustom(currencyPair,PERIOD_H4,"RSIOMA (2)", 5, 0);
      tmpValue_3 = iCustom(currencyPair,PERIOD_H4,"RSIOMA (2)", 0, 1);

      SetText(chartId,preamble+"H4_label_"+currencyPair,"H4",xOffset,yOffset,textColor,fontSize);
      if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>80.0)
        {
         SetObjText(chartId,preamble+"square_H4_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrLime,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>50.0)
        {
         SetObjText(chartId,preamble+"square_H4_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGreen,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<20.0)
        {
         SetObjText(chartId,preamble+"square_H4_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrRed,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<50.0)
        {
         SetObjText(chartId,preamble+"square_H4_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrOrange,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else
        {
         SetObjText(chartId,preamble+"square_H4_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGray,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H4_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
        }

      xOffset=xOffset+squareSize+squareSpace;
     }

   if(showH1)
     {
      tmpValue_1 = iCustom(currencyPair,PERIOD_H1,"RSIOMA (2)", 0, 0);
      tmpValue_2 = iCustom(currencyPair,PERIOD_H1,"RSIOMA (2)", 5, 0);
      tmpValue_3 = iCustom(currencyPair,PERIOD_H1,"RSIOMA (2)", 0, 1);

      SetText(chartId,preamble+"H1_label_"+currencyPair,"H1",xOffset,yOffset,textColor,fontSize);
      if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>80.0)
        {
         SetObjText(chartId,preamble+"square_H1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrLime,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1>tmpValue_2 || !useSignalsRank) && tmpValue_1>50.0)
        {
         SetObjText(chartId,preamble+"square_H1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrGreen,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<20.0)
        {
         SetObjText(chartId,preamble+"square_H1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrRed,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
           }
         else
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(243),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrOrange,fontSize);
           }
        }
      else if((tmpValue_1<tmpValue_2 || !useSignalsRank) && tmpValue_1<50.0)
        {
         SetObjText(chartId,preamble+"square_H1_"+currencyPair,CharToStr(110),xOffset-xOutline,yOffset+fontSize+4,clrOrange,squareSize);
         if(tmpValue_1>tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(233),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier,clrLime,fontSize);
           }
         else if(tmpValue_1<tmpValue_3)
           {
            SetObjText(chartId,preamble+"arrow_H1_"+currencyPair,CharToStr(234),xOffset+arrowOutlineX,yOffset+fontSize+squareSize*multiplier+yOffsetArrow,clrRed,fontSize);
      

Показано первые 50% кода (символов: 38006)

Открыть по тарифу

Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.

Разовая покупка файла

На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.

Чтобы оформить заказ, введите email и перейдите к оплате.

Стоимость полного кода
3 800,60₽ ≈ $46.45