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

market_reversal_alerts_fixed.mq5

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

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

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

О программе

Индикатор для MetaTrader 5, отображаемый в окне графика и предназначенный для поиска и визуализации разворотных формаций по ценовым данным. Он строит на графике прямоугольные блоки и линии, отмечающие зоны разворотов, а также может показывать стрелки повторного тестирования уровней. Поддерживается анализ на выбранном старшем таймфрейме с отдельными настройками отображения.

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

НастройкаОписание
Notice Информационное текстовое поле с предупреждением о рисках торговли.
SimpleForexTeam__ Информационное текстовое поле со ссылкой на канал разработчика.
set1 Текстовый разделитель группы основных настроек индикатора.
managerAlerts Выбирает, какие разворотные уведомления показывать: только бычьи, только медвежьи или оба типа.
numberOfBlockToDisplay Задаёт количество отображаемых блоков разворота.
wicksOfCandles Учитывать тени свечей при определении разворотных формаций.
drawBlocksOnCircles Включает агрессивный режим с большим количеством отображаемых уведомлений о разворотах.
set7 Текстовый разделитель группы графических настроек.
rectangleTop Задаёт цвет блоков медвежьего разворота на текущем таймфрейме.
rectangleBottom Задаёт цвет блоков бычьего разворота на текущем таймфрейме.
set11 Текстовый разделитель группы настроек уведомлений.
filterByWeekHighsLows Ограничивает уведомления только ситуациями за пределами недельных максимумов и минимумов.
filterByDailyHighsLows Ограничивает уведомления только ситуациями за пределами дневных максимумов и минимумов.
drawLines Включает отображение горизонтальных линий максимумов и минимумов предыдущего дня и недели.
AlertsPopup Включает всплывающие уведомления в терминале при возникновении событий.
AlertsEmail Включает отправку уведомлений о событиях на электронную почту.
AlertsPush Включает отправку push-уведомлений на мобильные устройства.
buyAlertText Задаёт текст уведомления о бычьем развороте.
sellAlertText Задаёт текст уведомления о медвежьем развороте.
alertRetest Включает формирование уведомлений при повторном тестировании зон разворота.
buySignals Задаёт цвет стрелок повторного тестирования бычьего разворота.
sellSignals Задаёт цвет стрелок повторного тестирования медвежьего разворота.
Arrow_Offset Задаёт смещение стрелок повторного тестирования по вертикали в пунктах.
Arrow_Width Задаёт толщину стрелок повторного тестирования.
drawArrows Включает отображение стрелок повторного тестирования.
numbersOfBarsRetest Задаёт количество баров, учитываемых при поиске повторного тестирования.
testTopAlertText Задаёт текст уведомления о повторном тестировании медвежьего разворота.
testBottomAlertText Задаёт текст уведомления о повторном тестировании бычьего разворота.
set12 Текстовый разделитель группы настроек старшего таймфрейма.
breakersHighTimeFrame Выбирает режим анализа старшего таймфрейма: отключён, показ разворотных уведомлений, показ блоков поддержки или оба варианта.
extendHigherBreakerTimeFrame Продлевает блоки старшего таймфрейма вправо до текущего бара.
highTimeFrameB Выбирает таймфрейм, используемый для анализа старшего таймфрейма.
rectangeTopHighTimeFrame Задаёт цвет блоков медвежьего разворота на старшем таймфрейме.
rectangeBottomHighTimeFrame Задаёт цвет блоков бычьего разворота на старшем таймфрейме.
set13 Текстовый разделитель группы настроек расположения кнопки.
shiftX Задаёт горизонтальное смещение кнопки.
shiftY Задаёт вертикальное смещение кнопки.
boxWidth Задаёт ширину кнопки.
boxHeight Задаёт высоту кнопки.
TaillePolice Задаёт размер шрифта текста на кнопке.
textColor Задаёт цвет текста на кнопке.
backGroundColor Задаёт цвет фона кнопки.
set14 Текстовый разделитель группы настроек стрелки направления.
displayDirectionArrow Включает отображение стрелки направления старшего таймфрейма.
arrowSize Задаёт размер стрелки направления старшего таймфрейма.
xShiftArrow Задаёт горизонтальное смещение стрелки направления.
yShiftArrow Задаёт вертикальное смещение стрелки направления.
colorBullish Задаёт цвет стрелки бычьего направления старшего таймфрейма.
colorBearish Задаёт цвет стрелки медвежьего направления старшего таймфрейма.
bullishText Задаёт текст подписи для бычьего направления на старшем таймфрейме.
bearishText Задаёт текст подписи для медвежьего направления на старшем таймфрейме.

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

#property strict
#property indicator_chart_window
#property version "5.10"
#property indicator_buffers 23
#property indicator_plots 1
#property indicator_levelcolor 12632256
#property indicator_levelstyle 1
#property indicator_levelwidth 2

enum managerAlerts_Options
{
   managerAlerts_LONG_ONLY = 0, // LONG_ONLY
   managerAlerts_SHORT_ONLY = 1, // SHORT_ONLY
   managerAlerts_LONG_AND_SHORT = 2 // LONG_AND_SHORT
};

enum breakersHighTimeFrame_Options
{
   breakersHighTimeFrame_DISABLE_HIGH_TIME_FRAME_ANALYSIS = 0, // DISABLE HIGH TIME FRAME ANALYSIS
   breakersHighTimeFrame_DISPLAY_REVERSAL_ALERTS = 1, // DISPLAY REVERSAL ALERTS
   breakersHighTimeFrame_DISPLAY_SUPPORT_RECTANGLES_BLOCK = 2, // DISPLAY SUPPORT RECTANGLES/BLOCKS
   breakersHighTimeFrame_DISPLAY_BOTH = 3 // DISPLAY BOTH
};

enum highTimeFrameB_Options
{
   highTimeFrameB_current = 0, // current
   highTimeFrameB_1_Minute = 1, // 1 Minute
   highTimeFrameB_5_Minutes = 5, // 5 Minutes
   highTimeFrameB_15_Minutes = 15, // 15 Minutes
   highTimeFrameB_30_Minutes = 30, // 30 Minutes
   highTimeFrameB_1_Hour = 60, // 1 Hour
   highTimeFrameB_4_Hours = 240, // 4 Hours
   highTimeFrameB_1_Day = 1440, // 1 Day
   highTimeFrameB_1_Week = 10080, // 1 Week
   highTimeFrameB_1_Month = 43200 // 1 Month
};
input string Notice = "Trading are risky! Trade only if you can loss your money";
input string SimpleForexTeam__ = "free tools for forex! Join our channel for more free eas";
input string The_our_telegram = "";
input string VIP_group = "";
extern string set0 = "///////////////////////////////////"; // ////////////////////////////
extern string set1 = "----- MAIN INDICATOR SETTINGS -----"; // ////////////////////////////
extern string set2 = "////////////////////////////////////"; // ////////////////////////////
extern managerAlerts_Options managerAlerts = managerAlerts_LONG_AND_SHORT; // Reversal Alerts To See
extern int numberOfBlockToDisplay = 1; // Number of Reversal Alerts to Show
extern bool wicksOfCandles = true; // Use Wicks of Left Candle?
extern bool drawBlocksOnCircles = false; // Aggressive Mode - More Alerts
extern string set7 = "----- GRAPHICAL SETTINGS -----"; // ////////////////////////////
extern color rectangleTop = 36095; // Bearish Reversal Alert Colour
extern color rectangleBottom = 36095; // Bullish Reversal Alert Colour
extern string set11 = "----- ALERT SETTINGS -----"; // ////////////////////////////
extern bool filterByWeekHighsLows = false; // Alert Only Outside Weekly Highs
extern bool filterByDailyHighsLows = false; // Alert Only Outside Daily Highs
extern bool drawLines = false; // Draw Lines Highs and Lows
extern bool AlertsPopup = false; // Pop Up Alerts
extern bool AlertsEmail = false; // Email Alerts
extern bool AlertsPush = false; // Push Alerts
extern string buyAlertText = "BUY ALERT - Bullish Reversal"; // Buy Alert Text
extern string sellAlertText = "SELL ALERT - Bearish Reversal"; // Sell Alert Text
extern bool alertRetest = true; // Reversal Alert Re-tests
extern color buySignals = 32768; // Bullish Re-test Arrow Colour
extern color sellSignals = 255; // Bearish Re-test Arrow Colour
extern int Arrow_Offset = 5; // Arrow Offset
extern int Arrow_Width = 1; // Arrow Size
extern bool drawArrows = true; // Draw Re-test Arrows
extern int numbersOfBarsRetest = 1; // Numbers Of Bars Before Re-test Alerts
extern string testTopAlertText = "SELL ALERT - Bearish Reversal Re-tested"; // Bearish Reversal Re-test Text
extern string testBottomAlertText = "BUY ALERT - Bullish Reversal Re-tested"; // Bullish Reversal Re-test Text
extern string set12 = "----- HIGH TIME FRAME SETTINGS -----"; // ////////////////////////////
extern breakersHighTimeFrame_Options breakersHighTimeFrame = breakersHighTimeFrame_DISABLE_HIGH_TIME_FRAME_ANALYSIS; // Higher Time Frame Analysis
extern bool extendHigherBreakerTimeFrame = false; // Extend Higher Timeframe to Right
extern highTimeFrameB_Options highTimeFrameB = highTimeFrameB_4_Hours; // Higher Time Frame to See
extern color rectangeTopHighTimeFrame = 4678655; // Bearish Reversal Alert Colour
extern color rectangeBottomHighTimeFrame = 9498256; // Bullish Reversal Alert Colour
extern string set13 = "| ------- HTF BUTTON LAYOUT SETTINGS --------- |"; // ////////////////////////
extern int shiftX = 20; // Button Shift X Axis
extern int shiftY = 30; // Button Shift Y Axis
extern int boxWidth = 150; // Button Width
extern int boxHeight = 20; // Button Height
extern int TaillePolice = 9; // Button text Size
extern color textColor = 16777215; // Button Text Colour
extern color backGroundColor = 36095; // Button Background Colour
extern string set14 = "| -------  HTF DIRECTION ARROW SETTINGS --------- |"; // ////////////////////////
extern bool displayDirectionArrow = false; // Display HTF Direction Arrow
extern int arrowSize = 30; // Arrow Size
extern int xShiftArrow = 10; // Arrow Shift X Axis
extern int yShiftArrow = 100; // Arrow Shift Y Axis
extern color colorBullish = 32768; // Bullish Arrow Colour
extern color colorBearish = 255; // Bearish Arrow Colour
extern string bullishText = "Bullish"; // Bullish HTF Text
extern string bearishText = "Bearish"; // Bearish HTF Text

string global_text_1 = "---";
bool global_state_3 = false;
bool global_state_4 = false;
bool global_state_5 = false;
bool global_state_6 = false;
bool global_state_7 = false;
bool global_state_8 = false;
bool global_state_9 = false;
string global_text_2 = "----- SEMAFOR SETTING -----";
int global_state_10 = 36;
int global_state_11 = 60;
int global_state_12 = 156;
int global_state_13 = 408;
int global_array_1[];
int global_array_2[];
string global_text_3 = "Cambria";
int global_state_14 = 10;
int global_state_15 = 10;
int global_state_16 = 0;
int global_state_17 = 0;
int global_state_18 = 0;
int global_state_19 = 0;
int global_state_20 = 0;
int global_state_21 = 0;
int global_state_22 = 0;
int global_state_23 = 0;
int global_state_24 = 0;
int global_state_25 = 0;
int global_state_26 = 0;
int global_state_27 = 0;
int global_state_28 = 0;
string global_text_4 = "1,1";
string global_text_5 = "1,1";
string global_text_6 = "1,1";
string global_text_7 = "1,1";
int global_state_29 = 159;
int global_state_30 = 82;
int global_state_31 = 82;
int global_state_32 = 82;
double indicator_buffer_1[];
double indicator_buffer_0[];
double indicator_buffer_2[];
double indicator_buffer_3[];
double indicator_buffer_4[];
double indicator_buffer_5[];
double indicator_buffer_10[];
double indicator_buffer_11[];
double indicator_buffer_6[];
double indicator_buffer_7[];
double indicator_buffer_8[];
double indicator_buffer_9[];
double indicator_buffer_20[];
double indicator_buffer_12[];
double indicator_buffer_13[];
double indicator_buffer_18[];
double indicator_buffer_19[];
double indicator_buffer_14[];
double indicator_buffer_15[];
double indicator_buffer_16[];
double indicator_buffer_17[];
double indicator_buffer_21[];
double indicator_buffer_22[];
string global_text_8 = NULL;
string global_text_9 = NULL;
string global_text_10 = NULL;
bool global_state_33 = false;
bool global_state_34 = false;
bool global_state_35 = false;
bool global_state_36 = false;
int global_state_37 = 0;
bool global_state_38 = false;
string global_text_11 = "Corbel";
int global_state_39 = -1;
datetime global_state_40 = 0;
datetime global_state_41 = 0;
datetime global_state_42 = 0;
datetime global_state_43 = 0;
int global_state_44 = 0;
int global_state_45 = 0;
int global_state_46 = 0;
int global_state_47 = 0;

string MRASelfPath()
{
   string program=MQLInfoString(MQL_PROGRAM_PATH);
   string lower=program;
   StringToLower(lower);
   int offset=StringFind(lower,"\\mql4\\indicators\\");
   if(offset>=0) program=StringSubstr(program,offset+17);
   else program=WindowExpertName();
   int length=StringLen(program);
   if(length>4 && StringSubstr(program,length-4)==".ex4")
      program=StringSubstr(program,0,length-4);
   return program;
}

double MRAHigherValue(const int timeframe,const int direction,const int blocks,
                     const bool use_wicks,const bool aggressive,const int mode,const int shift)
{
   if(iBars(_Symbol,timeframe)<=shift) return EMPTY_VALUE;
   ResetLastError();
   double result=iCustom(_Symbol,timeframe,MRASelfPath(),set0,set1,set2,
                         direction,blocks,use_wicks,aggressive,mode,shift);
   int error=GetLastError();
   if(error!=0) return EMPTY_VALUE;
   return result;
}

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

void OnDeinit(const int reason)
{
   string local_text_1;
   string local_text_2;
   string local_text_3;
   int api_result=0;
   int selected_value=0;
   int api_result_2=0;
   int selected_value_2=0;
   int computed_value=0;
   int api_result_3=0;
   int selected_value_3=0;
   int api_result_4=0;
   int selected_value_4=0;
   int computed_value_2=0;
   int api_result_5=0;
   int selected_value_5=0;
   int api_result_6=0;
   int selected_value_6=0;
   int computed_value_3=0;
   int next_selected_value=0;
   int next_selected_value_2=0;
   int next_selected_value_3=0;
   int next_selected_value_4=0;
   int next_selected_value_5=0;
   int next_selected_value_6=0;
   local_text_1=NULL;
   local_text_2=NULL;
   local_text_3=NULL;
   api_result=ObjectsTotal(-1);
   next_selected_value=api_result;
   selected_value=next_selected_value;
   while(true)
   {
      if((-1<selected_value))
      {
         local_text_1=NULL;
         local_text_1=ObjectName(selected_value);
         api_result_2=StringFind(local_text_1, global_text_8, 0);
         if((-1<api_result_2))
         {
            ObjectDelete(local_text_1);
            next_selected_value_2=selected_value;
            selected_value_2=next_selected_value_2;
         }
         else
         {
            next_selected_value_2=selected_value;
            selected_value_2=next_selected_value_2;
         }
         computed_value=(int)((uint)selected_value_2+(uint)0xffffffff);
         next_selected_value=computed_value;
         selected_value=next_selected_value;
         continue;
      }
      else
      {
         break;
      }
   }
   api_result_3=ObjectsTotal(-1);
   next_selected_value_3=api_result_3;
   selected_value_3=next_selected_value_3;
   while(true)
   {
      if((-1<selected_value_3))
      {
         local_text_2=NULL;
         local_text_2=ObjectName(selected_value_3);
         api_result_4=StringFind(local_text_2, global_text_10, 0);
         if((-1<api_result_4))
         {
            ObjectDelete(local_text_2);
            next_selected_value_4=selected_value_3;
            selected_value_4=next_selected_value_4;
         }
         else
         {
            next_selected_value_4=selected_value_3;
            selected_value_4=next_selected_value_4;
         }
         computed_value_2=(int)((uint)selected_value_4+(uint)0xffffffff);
         next_selected_value_3=computed_value_2;
         selected_value_3=next_selected_value_3;
         continue;
      }
      else
      {
         break;
      }
   }
   api_result_5=ObjectsTotal(-1);
   next_selected_value_5=api_result_5;
   selected_value_5=next_selected_value_5;
   while(true)
   {
      if((-1<selected_value_5))
      {
         local_text_3=NULL;
         local_text_3=ObjectName(selected_value_5);
         api_result_6=StringFind(local_text_3, global_text_9, 0);
         if((-1<api_result_6))
         {
            ObjectDelete(local_text_3);
            next_selected_value_6=selected_value_5;
            selected_value_6=next_selected_value_6;
         }
         else
         {
            next_selected_value_6=selected_value_5;
            selected_value_6=next_selected_value_6;
         }
         computed_value_3=(int)((uint)selected_value_6+(uint)0xffffffff);
         next_selected_value_5=computed_value_3;
         selected_value_5=next_selected_value_5;
         continue;
      }
      else
      {
         break;
      }
   }
   ObjectDelete("DirectionArrow");
   ObjectDelete("DirectionArrow2");
   local_text_3=NULL;
   local_text_2=NULL;
   local_text_1=NULL;
   return;
}

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()
{

   return;
}

void OnChartEvent(const int id, const long &lparam, const double &dparam, const string &sparam)
{
   if(Bars<2 || ArraySize(indicator_buffer_20)<2) return;
   string local_text_1;
   string local_text_2;
   string local_text_3;
   string local_text_4;
   string local_text_5;
   string local_text_6;
   string local_text_7;
   string local_text_8;
   string local_text_9;
   string local_text_10;
   string local_text_11;
   string local_text_12;
   string local_text_13;
   string local_text_14;
   string local_text_15;
   string local_text_16;
   string local_text_17;
   string local_text_18;
   string local_text_19;
   string local_text_20;
   string local_text_21;
   string local_text_22;
   string local_text_23;
   string local_text_24;
   string local_text_25;
   string local_text_26;
   string local_text_27;
   int computed_value=0;
   bool global_state_38_value=false;
   int api_result=0;
   int selected_value=0;
   int highTimeFrameB_value=0;
   int highTimeFrameB_value_2=0;
   int selected_value_2=0;
   int selected_value_3=0;
   int selected_value_4=0;
   int selected_value_5=0;
   int selected_value_6=0;
   int selected_value_7=0;
   int selected_value_8=0;
   int selected_value_9=0;
   int selected_value_10=0;
   int selected_value_11=0;
   int selected_value_12=0;
   int selected_value_13=0;
   int selected_value_14=0;
   int selected_value_15=0;
   int selected_value_16=0;
   int selected_value_17=0;
   uint computed_value_2=0;
   int selected_value_18=0;
   int api_result_2=0;
   int selected_value_19=0;
   int highTimeFrameB_value_3=0;
   int highTimeFrameB_value_4=0;
   int selected_value_20=0;
   int selected_value_21=0;
   int selected_value_22=0;
   int selected_value_23=0;
   int selected_value_24=0;
   int selected_value_25=0;
   int selected_value_26=0;
   int selected_value_27=0;
   int selected_value_28=0;
   int selected_value_29=0;
   int selected_value_30=0;
   int selected_value_31=0;
   int selected_value_32=0;
   int selected_value_33=0;
   int selected_value_34=0;
   int selected_value_35=0;
   uint computed_value_3=0;
   int selected_value_36=0;
   int api_result_3=0;
   int selected_value_37=0;
   int highTimeFrameB_value_5=0;
   int highTimeFrameB_value_6=0;
   int selected_value_38=0;
   int selected_value_39=0;
   int selected_value_40=0;
   int selected_value_41=0;
   int selected_value_42=0;
   int selected_value_43=0;
   int selected_value_44=0;
   int selected_value_45=0;
   int selected_value_46=0;
   int selected_value_47=0;
   int selected_value_48=0;
   int selected_value_49=0;
   int selected_value_50=0;
   int selected_value_51=0;
   int selected_value_52=0;
   int selected_value_53=0;
   uint computed_value_4=0;
   int selected_value_54=0;
   int api_result_4=0;
   int selected_value_55=0;
   int highTimeFrameB_value_7=0;
   int highTimeFrameB_value_8=0;
   int selected_value_56=0;
   int selected_value_57=0;
   int selected_value_58=0;
   int selected_value_59=0;
   int selected_value_60=0;
   int selected_value_61=0;
   int selected_value_62=0;
   int selected_value_63=0;
   int selected_value_64=0;
   int selected_value_65=0;
   int selected_value_66=0;
   int selected_value_67=0;
   int selected_value_68=0;
   int selected_value_69=0;
   int selected_value_70=0;
   int selected_value_71=0;
   uint computed_value_5=0;
   int selected_value_72=0;
   int api_result_5=0;
   int selected_value_73=0;
   int computed_value_6=0;
   color backGroundColor_value=0;
   color textColor_value=0;
   int TaillePolice_value=0;
   int highTimeFrameB_value_9=0;
   int highTimeFrameB_value_10=0;
   color selected_value_74=0;
   color selected_value_75=0;
   int selected_value_76=0;
   int selected_value_77=0;
   color selected_value_78=0;
   color selected_value_79=0;
   int selected_value_80=0;
   int selected_value_81=0;
   color selected_value_82=0;
   color selected_value_83=0;
   int selected_value_84=0;
   int selected_value_85=0;
   color selected_value_86=0;
   color selected_value_87=0;
   int selected_value_88=0;
   int selected_value_89=0;
   color selected_value_90=0;
   color selected_value_91=0;
   int selected_value_92=0;
   int selected_value_93=0;
   color selected_value_94=0;
   color selected_value_95=0;
   int selected_value_96=0;
   int selected_value_97=0;
   color selected_value_98=0;
   color selected_value_99=0;
   int selected_value_100=0;
   int selected_value_101=0;
   color selected_value_102=0;
   color selected_value_103=0;
   int selected_value_104=0;
   int selected_value_105=0;
   uint computed_value_7=0;
   color selected_value_106=0;
   color selected_value_107=0;
   int selected_value_108=0;
   int boxHeight_value=0;
   int boxWidth_value=0;
   int shiftY_value=0;
   int shiftX_value=0;
   color backGroundColor_value_2=0;
   color textColor_value_2=0;
   int TaillePolice_value_2=0;
   int highTimeFrameB_value_11=0;
   int highTimeFrameB_value_12=0;
   color selected_value_109=0;
   color selected_value_110=0;
   int selected_value_111=0;
   int selected_value_112=0;
   color selected_value_113=0;
   color selected_value_114=0;
   int selected_value_115=0;
   int selected_value_116=0;
   color selected_value_117=0;
   color selected_value_118=0;
   int selected_value_119=0;
   int selected_value_120=0;
   color selected_value_121=0;
   color selected_value_122=0;
   int selected_value_123=0;
   int selected_value_124=0;
   color selected_value_125=0;
   color selected_value_126=0;
   int selected_value_127=0;
   int selected_value_128=0;
   color selected_value_129=0;
   color selected_value_130=0;
   int selected_value_131=0;
   int selected_value_132=0;
   color selected_value_133=0;
   color selected_value_134=0;
   int selected_value_135=0;
   int selected_value_136=0;
   color selected_value_137=0;
   color selected_value_138=0;
   int selected_value_139=0;
   int selected_value_140=0;
   uint computed_value_8=0;
   color selected_value_141=0;
   color selected_value_142=0;
   int selected_value_143=0;
   int boxHeight_value_2=0;
   int boxWidth_value_2=0;
   int shiftY_value_2=0;
   int shiftX_value_2=0;
   color backGroundColor_value_3=0;
   color textColor_value_3=0;
   int TaillePolice_value_3=0;
   int highTimeFrameB_value_13=0;
   int highTimeFrameB_value_14=0;
   color selected_value_144=0;
   color selected_value_145=0;
   int selected_value_146=0;
   int selected_value_147=0;
   color selected_value_148=0;
   color selected_value_149=0;
   int selected_value_150=0;
   int selected_value_151=0;
   color selected_value_152=0;
   color selected_value_153=0;
   int selected_value_154=0;
   int selected_value_155=0;
   color selected_value_156=0;
   color selected_value_157=0;
   int selected_value_158=0;
   int selected_value_159=0;
   color selected_value_160=0;
   color selected_value_161=0;
   int selected_value_162=0;
   int selected_value_163=0;
   color selected_value_164=0;
   color selected_value_165=0;
   int selected_value_166=0;
   int selected_value_167=0;
   color selected_value_168=0;
   color selected_value_169=0;
   int selected_value_170=0;
   int selected_value_171=0;
   color selected_value_172=0;
   color selected_value_173=0;
   int selected_value_174=0;
   int selected_value_175=0;
   uint computed_value_9=0;
   color selected_value_176=0;
   color selected_value_177=0;
   int selected_value_178=0;
   int boxHeight_value_3=0;
   int boxWidth_value_3=0;
   int shiftY_value_3=0;
   int shiftX_value_3=0;
   bool global_state_38_value_2=false;
   int breakersHighTimeFrame_value=0;
   int _Period_value=0;
   int highTimeFrameB_value_15=0;
   color backGroundColor_value_4=0;
   color textColor_value_4=0;
   int TaillePolice_value_4=0;
   int highTimeFrameB_value_16=0;
   int highTimeFrameB_value_17=0;
   color selected_value_179=0;
   color selected_value_180=0;
   int selected_value_181=0;
   int selected_value_182=0;
   color selected_value_183=0;
   color selected_value_184=0;
   int selected_value_185=0;
   int selected_value_186=0;
   color selected_value_187=0;
   color selected_value_188=0;
   int selected_value_189=0;
   int selected_value_190=0;
   color selected_value_191=0;
   color selected_value_192=0;
   int selected_value_193=0;
   int selected_value_194=0;
   color selected_value_195=0;
   color selected_value_196=0;
   int selected_value_197=0;
   int selected_value_198=0;
   color selected_value_199=0;
   color selected_value_200=0;
   int selected_value_201=0;
   int selected_value_202=0;
   color selected_value_203=0;
   color selected_value_204=0;
   int selected_value_205=0;
   int selected_value_206=0;
   color selected_value_207=0;
   color selected_value_208=0;
   int selected_value_209=0;
   int selected_value_210=0;
   uint computed_value_10=0;
   color selected_value_211=0;
   color selected_value_212=0;
   int selected_value_213=0;
   int boxHeight_value_4=0;
   int boxWidth_value_4=0;
   int shiftY_value_4=0;
   int shiftX_value_4=0;
   bool displayDirectionArrow_value=false;
   bool alertRetest_value=false;
   int api_result_6=0;
   int selected_value_214=0;
   int api_result_7=0;
   int selected_value_215=0;
   int computed_value_11=0;
   int next_selected_value=0;
   int next_selected_value_2=0;
   int next_selected_value_3=0;
   int next_selected_value_4=0;
   int next_selected_value_5=0;
   int next_selected_value_6=0;
   int next_selected_value_7=0;
   int next_selected_value_8=0;
   int next_selected_value_9=0;
   int next_selected_value_10=0;
   int next_selected_value_11=0;
   int next_selected_value_12=0;
   int next_selected_value_13=0;
   int next_selected_value_14=0;
   int next_selected_value_15=0;
   int next_selected_value_16=0;
   int next_selected_value_17=0;
   int next_selected_value_18=0;
   int next_selected_value_19=0;
   int next_selected_value_20=0;
   int next_selected_value_21=0;
   int next_selected_value_22=0;
   int next_selected_value_23=0;
   int next_selected_value_24=0;
   int next_selected_value_25=0;
   int next_selected_value_26=0;
   int next_selected_value_27=0;
   int next_selected_value_28=0;
   int next_selected_value_29=0;
   int next_selected_value_30=0;
   int next_selected_value_31=0;
   int next_selected_value_32=0;
   int next_selected_value_33=0;
   int next_selected_value_34=0;
   int next_selected_value_35=0;
   int next_selected_value_36=0;
   int next_selected_value_37=0;
   int next_selected_value_38=0;
   int next_selected_value_39=0;
   int next_selected_value_40=0;
   int next_selected_value_41=0;
   int next_selected_value_42=0;
   int next_selected_value_43=0;
   int next_selected_value_44=0;
   int next_selected_value_45=0;
   int next_selected_value_46=0;
   int next_selected_value_47=0;
   int next_selected_value_48=0;
   int next_selected_value_49=0;
   int next_selected_value_50=0;
   int next_selected_value_51=0;
   int next_selected_value_52=0;
   int next_selected_value_53=0;
   int next_selected_value_54=0;
   int next_selected_value_55=0;
   int next_selected_value_56=0;
   int next_selected_value_57=0;
   int next_selected_value_58=0;
   int next_selected_value_59=0;
   int next_selected_value_60=0;
   int next_selected_value_61=0;
   int next_selected_value_62=0;
   int next_selected_value_63=0;
   int next_selected_value_64=0;
   int next_selected_value_65=0;
   int next_selected_value_66=0;
   int next_selected_value_67=0;
   int next_selected_value_68=0;
   int next_selected_value_69=0;
   int next_selected_value_70=0;
   int next_selected_value_71=0;
   int next_selected_value_72=0;
   int next_selected_value_73=0;
   color next_selected_value_74=0;
   color next_selected_value_75=0;
   int next_selected_value_76=0;
   int next_selected_value_77=0;
   color next_selected_value_78=0;
   color next_selected_value_79=0;
   int next_selected_value_80=0;
   int next_selected_value_81=0;
   color next_selected_value_82=0;
   color next_selected_value_83=0;
   int next_selected_value_84=0;
   int next_selected_value_85=0;
   color next_selected_value_86=0;
   color next_selected_value_87=0;
   int next_selected_value_88=0;
   int next_selected_value_89=0;
   color next_selected_value_90=0;
   color next_selected_value_91=0;
   int next_selected_value_92=0;
   int next_selected_value_93=0;
   color next_selected_value_94=0;
   color next_selected_value_95=0;
   int next_selected_value_96=0;
   int next_selected_value_97=0;
   color next_selected_value_98=0;
   color next_selected_value_99=0;
   int next_selected_value_100=0;
   int next_selected_value_101=0;
   color next_selected_value_102=0;
   color next_selected_value_103=0;
   int next_selected_value_104=0;
   int next_selected_value_105=0;
   color next_selected_value_106=0;
   color next_selected_value_107=0;
   int next_selected_value_108=0;
   color next_selected_value_109=0;
   color next_selected_value_110=0;
   int next_selected_value_111=0;
   int next_selected_value_112=0;
   color next_selected_value_113=0;
   color next_selected_value_114=0;
   int next_selected_value_115=0;
   int next_selected_value_116=0;
   color next_selected_value_117=0;
   color next_selected_value_118=0;
   int next_selected_value_119=0;
   int next_selected_value_120=0;
   color next_selected_value_121=0;
   color next_selected_value_122=0;
   int next_selected_value_123=0;
   int next_selected_value_124=0;
   color next_selected_value_125=0;
   color next_selected_value_126=0;
   int next_selected_value_127=0;
   int next_selected_value_128=0;
   color next_selected_value_129=0;
   color next_selected_value_130=0;
   int next_selected_value_131=0;
   int next_selected_value_132=0;
   color next_selected_value_133=0;
   color next_selected_value_134=0;
   int next_selected_value_135=0;
   int next_selected_value_136=0;
   color next_selected_value_137=0;
   color next_selected_value_138=0;
   int next_selected_value_139=0;
   int next_selected_value_140=0;
   color next_selected_value_141=0;
   color next_selected_value_142=0;
   int next_selected_value_143=0;
   color next_selected_value_144=0;
   color next_selected_value_145=0;
   int next_selected_value_146=0;
   int next_selected_value_147=0;
   color next_selected_value_148=0;
   color next_selected_value_149=0;
   int next_selected_value_150=0;
   int next_selected_value_151=0;
   color next_selected_value_152=0;
   color next_selected_value_153=0;
   int next_selected_value_154=0;
   int next_selected_value_155=0;
   color next_selected_value_156=0;
   color next_selected_value_157=0;
   int next_selected_value_158=0;
   int next_selected_value_159=0;
   color next_selected_value_160=0;
   color next_selected_value_161=0;
   int next_selected_value_162=0;
   int next_selected_value_163=0;
   color next_selected_value_164=0;
   color next_selected_value_165=0;
   int next_selected_value_166=0;
   int next_selected_value_167=0;
   color next_selected_value_168=0;
   color next_selected_value_169=0;
   int next_selected_value_170=0;
   int next_selected_value_171=0;
   color next_selected_value_172=0;
   color next_selected_value_173=0;
   int next_selected_value_174=0;
   int next_selected_value_175=0;
   color next_selected_value_176=0;
   color next_selected_value_177=0;
   int next_selected_value_178=0;
   color next_selected_value_179=0;
   color next_selected_value_180=0;
   int next_selected_value_181=0;
   int next_selected_value_182=0;
   color next_selected_value_183=0;
   color next_selected_value_184=0;
   int next_selected_value_185=0;
   int next_selected_value_186=0;
   color next_selected_value_187=0;
   color next_selected_value_188=0;
   int next_selected_value_189=0;
   int next_selected_value_190=0;
   color next_selected_value_191=0;
   color next_selected_value_192=0;
   int next_selected_value_193=0;
   int next_selected_value_194=0;
   color next_selected_value_195=0;
   color next_selected_value_196=0;
   int next_selected_value_197=0;
   int next_selected_value_198=0;
   color next_selected_value_199=0;
   color next_selected_value_200=0;
   int next_selected_value_201=0;
   int next_selected_value_202=0;
   color next_selected_value_203=0;
   color next_selected_value_204=0;
   int next_selected_value_205=0;
   int next_selected_value_206=0;
   color next_selected_value_207=0;
   color next_selected_value_208=0;
   int next_selected_value_209=0;
   int next_selected_value_210=0;
   color next_selected_value_211=0;
   color next_selected_value_212=0;
   int next_selected_value_213=0;
   int next_selected_value_214=0;
   int next_selected_value_215=0;
   local_text_1=NULL;
   local_text_2=NULL;
   local_text_3=NULL;
   local_text_4=NULL;
   local_text_5=NULL;
   local_text_6=NULL;
   local_text_7=NULL;
   local_text_8=NULL;
   local_text_9=NULL;
   local_text_10=NULL;
   local_text_11=NULL;
   local_text_12=NULL;
   local_text_13=NULL;
   local_text_14=NULL;
   local_text_15=NULL;
   local_text_16=NULL;
   local_text_17=NULL;
   local_text_18=NULL;
   local_text_19=NULL;
   local_text_20=NULL;
   local_text_21=NULL;
   local_text_22=NULL;
   local_text_23=NULL;
   local_text_24=NULL;
   local_text_25=NULL;
   local_text_25="";
   if((id==1))
   {
      local_text_1=global_text_9;
      local_text_1+="HideButton";
      computed_value=(sparam!=local_text_1);
      if((computed_value==0))
      {
         global_state_38_value=global_state_38;
         if((global_state_38_value==false))
         {
            backGroundColor_value_2=backGroundColor;
            textColor_value_2=textColor;
            TaillePolice_value_2=TaillePolice;
            local_text_1=global_text_11;
            highTimeFrameB_value_11=highTimeFrameB;
            local_text_2=NULL;
            local_text_2="NONE";
            highTimeFrameB_value_12=highTimeFrameB;
            if((highTimeFrameB_value_12==1))
            {
               local_text_2="M1";
               next_selected_value_109=backGroundColor_value_2;
               next_selected_value_110=textColor_value_2;
               next_selected_value_111=TaillePolice_value_2;
               next_selected_value_112=highTimeFrameB_value_11;
               selected_value_109=next_selected_value_109;
               selected_value_110=next_selected_value_110;
               selected_value_111=next_selected_value_111;
               selected_value_112=next_selected_value_112;
            }
            else
            {
               next_selected_value_109=backGroundColor_value_2;
               next_selected_value_110=textColor_value_2;
               next_selected_value_111=TaillePolice_value_2;
               next_selected_value_112=highTimeFrameB_value_11;
               selected_value_109=next_selected_value_109;
               selected_value_110=next_selected_value_110;
               selected_value_111=next_selected_value_111;
               selected_value_112=next_selected_value_112;
            }
            if((selected_value_112==5))
            {
               local_text_2="M5";
               next_selected_value_113=selected_value_109;
               next_selected_value_114=selected_value_110;
               next_selected_value_115=selected_value_111;
               next_selected_value_116=selected_value_112;
               selected_value_113=next_selected_value_113;
               selected_value_114=next_selected_value_114;
               selected_value_115=next_selected_value_115;
               selected_value_116=next_selected_value_116;
            }
            else
            {
               next_selected_value_113=selected_value_109;
               next_selected_value_114=selected_value_110;
               next_selected_value_115=selected_value_111;
               next_selected_value_116=selected_value_112;
               selected_value_113=next_selected_value_113;
               selected_value_114=next_selected_value_114;
               selected_value_115=next_selected_value_115;
               selected_value_116=next_selected_value_116;
            }
            if((selected_value_116==15))
            {
               local_text_2="M15";
               next_selected_value_117=selected_value_113;
               next_selected_value_118=selected_value_114;
               next_selected_value_119=selected_value_115;
               next_selected_value_120=selected_value_116;
               selected_value_117=next_selected_value_117;
               selected_value_118=next_selected_value_118;
               selected_value_119=next_selected_value_119;
               selected_value_120=next_selected_value_120;
            }
            else
            {
               next_selected_value_117=selected_value_113;
               next_selected_value_118=selected_value_114;
               next_selected_value_119=selected_value_115;
               next_selected_value_120=selected_value_116;
               selected_value_117=next_selected_value_117;
               selected_value_118=next_selected_value_118;
               selected_value_119=next_selected_value_119;
               selected_value_120=next_selected_value_120;
            }
            if((selected_value_120==30))
            {
               local_text_2="M30";
               next_selected_value_121=selected_value_117;
               next_selected_value_122=selected_value_118;
               next_selected_value_123=selected_value_119;
               next_selected_value_124=selected_value_120;
               selected_value_121=next_selected_value_121;
               selected_value_122=next_selected_value_122;
               selected_value_123=next_selected_value_123;
               selected_value_124=next_selected_value_124;
            }
            else
            {
               next_selected_value_121=selected_value_117;
               next_selected_value_122=selected_value_118;
               next_selected_value_123=selected_value_119;
               next_selected_value_124=selected_value_120;
               selected_value_121=next_selected_value_121;
               selected_value_122=next_selected_value_122;
               selected_value_123=next_selected_value_123;
               selected_value_124=next_selected_value_124;
            }
            if((selected_value_124==60))
            {
               local_text_2="H1";
               next_selected_value_125=selected_value_121;
               next_selected_value_126=selected_value_122;
               next_selected_value_127=selected_value_123;
               next_selected_value_128=selected_value_124;
               selected_value_125=next_selected_value_125;
               selected_value_126=next_selected_value_126;
               selected_value_127=next_selected_value_127;
               selected_value_128=next_selected_value_128;
            }
            else
            {
               next_selected_value_125=selected_value_121;
               next_selected_value_126=selected_value_122;
               next_selected_value_127=selected_value_123;
               next_selected_value_128=selected_value_124;
               selected_value_125=next_selected_value_125;
               selected_value_126=next_selected_value_126;
               selected_value_127=next_selected_value_127;
               selected_value_128=next_selected_value_128;
            }
            if((selected_value_128==240))
            {
               local_text_2="H4";
               next_selected_value_129=selected_value_125;
               next_selected_value_130=selected_value_126;
               next_selected_value_131=selected_value_127;
               next_selected_value_132=selected_value_128;
               selected_value_129=next_selected_value_129;
               selected_value_130=next_selected_value_130;
               selected_value_131=next_selected_value_131;
               selected_value_132=next_selected_value_132;
            }
            else
            {
               next_selected_value_129=selected_value_125;
               next_selected_value_130=selected_value_126;
               next_selected_value_131=selected_value_127;
               next_selected_value_132=selected_value_128;
               selected_value_129=next_selected_value_129;
               selected_value_130=next_selected_value_130;
               selected_value_131=next_selected_value_131;
               selected_value_132=next_selected_value_132;
            }
            if((selected_value_132==1440))
            {
               local_text_2="D1";
               next_selected_value_133=selected_value_129;
               next_selected_value_134=selected_value_130;
               next_selected_value_135=selected_value_131;
               next_selected_value_136=selected_value_132;
               selected_value_133=next_selected_value_133;
               selected_value_134=next_selected_value_134;
               selected_value_135=next_selected_value_135;
               selected_value_136=next_selected_value_136;
            }
            else
            {
               next_selected_value_133=selected_value_129;
               next_selected_value_134=selected_value_130;
               next_selected_value_135=selected_value_131;
               next_selected_value_136=selected_value_132;
               selected_value_133=next_selected_value_133;
               selected_value_134=next_selected_value_134;
               selected_value_135=next_selected_value_135;
               selected_value_136=next_selected_value_136;
            }
            if((selected_value_136==10080))
            {
               local_text_2="W1";
               next_selected_value_137=selected_value_133;
               next_selected_value_138=selected_value_134;
               next_selected_value_139=selected_value_135;
               next_selected_value_140=selected_value_136;
               selected_value_137=next_selected_value_137;
               selected_value_138=next_selected_value_138;
               selected_value_139=next_selected_value_139;
               selected_value_140=next_selected_value_140;
            }
            else
            {
               next_selected_value_137=selected_value_133;
               next_selected_value_138=selected_value_134;
               next_selected_value_139=selected_value_135;
               next_selected_value_140=selected_value_136;
               selected_value_137=next_selected_value_137;
               selected_value_138=next_selected_value_138;
               selected_value_139=next_selected_value_139;
               selected_value_140=next_selected_value_140;
            }
            computed_value_8=(uint)0xa8c0;
            if((selected_value_140==(int)computed_value_8))
            {
               local_text_2="MN1";
               next_selected_value_141=selected_value_137;
               next_selected_value_142=selected_value_138;
               next_selected_value_143=selected_value_139;
               selected_value_141=next_selected_value_141;
               selected_value_142=next_selected_value_142;
               selected_value_143=next_selected_value_143;
            }
            else
            {
               next_selected_value_141=selected_value_137;
               next_selected_value_142=selected_value_138;
               next_selected_value_143=selected_value_139;
               selected_value_141=next_selected_value_141;
               selected_value_142=next_selected_value_142;
               selected_value_143=next_selected_value_143;
            }
            local_text_3="DISPLAY ";
            local_text_3+=local_text_2;
            local_text_3+=" Reversal";
            local_text_4=global_text_9;
            local_text_4+="HideButton";
            boxHeight_value_2=boxHeight;
            boxWidth_value_2=boxWidth;
            shiftY_value_2=shiftY;
            shiftX_value_2=shiftX;
            ReadSharedValue3((uint)0x0, (uint)0x0, local_text_4, 0, shiftX_value_2, shiftY_value_2, boxWidth_value_2, boxHeight_value_2, 0, local_text_3, local_text_1, selected_value_143, (int)selected_value_142, (int)selected_value_141, (uint)0xffffffff, false, false, false, true, (uint)0x0, (uint)0x0);
            global_state_38=true;
            backGroundColor_value_3=backGroundColor;
            textColor_value_3=textColor;
            TaillePolice_value_3=TaillePolice;
            local_text_5=global_text_11;
            highTimeFrameB_value_13=highTimeFrameB;
            local_text_6=NULL;
            local_text_6="NONE";
            highTimeFrameB_value_14=highTimeFrameB;
            if((highTimeFrameB_value_14==1))
            {
               local_text_6="M1";
               next_selected_value_144=backGroundColor_value_3;
               next_selected_value_145=textColor_value_3;
               next_selected_value_146=TaillePolice_value_3;
               next_selected_value_147=highTimeFrameB_value_13;
               selected_value_144=next_selected_value_144;
               selected_value_145=next_selected_value_145;
               selected_value_146=next_selected_value_146;
               selected_value_147=next_selected_value_147;
            }
            else
            {
               next_selected_value_144=backGroundColor_value_3;
               next_selected_value_145=textColor_value_3;
               next_selected_value_146=TaillePolice_value_3;
               next_selected_value_147=highTimeFrameB_value_13;
               selected_value_144=next_selected_value_144;
               selected_value_145=next_selected_value_145;
               selected_value_146=next_selected_value_146;
               selected_value_147=next_selected_value_147;
            }
            if((selected_value_147==5))
            {
               local_text_6="M5";
               next_selected_value_148=selected_value_144;
               next_selected_value_149=selected_value_145;
               next_selected_value_150=selected_value_146;
               next_selected_value_151=selected_value_147;
               selected_value_148=next_selected_value_148;
               selected_value_149=next_selected_value_149;
               selected_value_150=next_selected_value_150;
               selected_value_151=next_selected_value_151;
            }
            else
            {
               next_selected_value_148=selected_value_144;
               next_selected_value_149=selected_value_145;
               next_selected_value_150=selected_value_146;
               next_selected_value_151=selected_value_147;
               selected_value_148=next_selected_value_148;
               selected_value_149=next_selected_value_149;
               selected_value_150=next_selected_value_150;
               selected_value_151=next_selected_value_151;
            }
            if((selected_value_151==15))
            {
               local_text_6="M15";
               next_selected_value_152=selected_value_148;
               next_selected_value_153=selected_value_149;
               next_selected_value_154=selected_value_150;
               next_selected_value_155=selected_value_151;
               selected_value_152=next_selected_value_152;
               selected_value_153=next_selected_value_153;
               selected_value_154=next_selected_value_154;
               selected_value_155=next_selected_value_155;
            }
            else
            {
               next_selected_value_152=selected_value_148;
               next_selected_value_153=selected_value_149;
               next_selected_value_154=selected_value_150;
               next_selected_value_155=selected_value_151;
               selected_value_152=next_selected_value_152;
               selected_value_153=next_selected_value_153;
               selected_value_154=next_selected_value_154;
               selected_value_155=next_selected_value_155;
            }
            if((selected_value_155==30))
            {
               local_text_6="M30";
               next_selected_value_156=selected_value_152;
               next_selected_value_157=selected_value_153;
               next_selected_value_158=selected_value_154;
               next_selected_value_159=selected_value_155;
               selected_value_156=next_selected_value_156;
               selected_value_157=next_selected_value_157;
               selected_value_158=next_selected_value_158;
               selected_value_159=next_selected_value_159;
            }
            else
            {
               next_selected_value_156=selected_value_152;
               next_selected_value_157=selected_value_153;
               next_selected_value_158=selected_value_154;
               next_selected_value_159=selected_value_155;
               selected_value_156=next_selected_value_156;
               selected_value_157=next_selected_value_157;
               selected_value_158=next_selected_value_158;
               selected_value_159=next_selected_value_159;
            }
            if((selected_value_159==60))
            {
               local_text_6="H1";
               next_selected_value_160=selected_value_156;
               next_selected_value_161=selected_value_157;
               next_selected_value_162=selected_value_158;
               next_selected_value_163=selected_value_159;
               selected_value_160=next_selected_value_160;
               selected_value_161=next_selected_value_161;
               selected_value_162=next_selected_value_162;
               selected_value_163=next_selected_value_163;
            }
            else
            {
               next_selected_value_160=selected_value_156;
               next_selected_value_161=selected_value_157;
               next_selected_value_162=selected_value_158;
               next_selected_value_163=selected_value_159;
               selected_value_160=next_selected_value_160;
               selected_value_161=next_selected_value_161;
               selected_value_162=next_selected_value_162;
               selected_value_163=next_selected_value_163;
            }
            if((selected_value_163==240))
            {
               local_text_6="H4";
               next_selected_value_164=selected_value_160;
               next_selected_value_165=selected_value_161;
               next_selected_value_166=selected_value_162;
               next_selected_value_167=selected_value_163;
               selected_value_164=next_selected_value_164;
               selected_value_165=next_selected_value_165;
               selected_value_166=next_selected_value_166;
               selected_value_167=next_selected_value_167;
            }
            else
            {
               next_selected_value_164=selected_value_160;
               next_selected_value_165=selected_value_161;
               next_selected_value_166=selected_value_162;
               next_selected_value_167=selected_value_163;
               selected_value_164=next_selected_value_164;
               selected_value_165=next_selected_value_165;
               selected_value_166=next_selected_value_166;
               selected_value_167=next_selected_value_167;
            }
            if((selected_value_167==1440))
            {
               local_text_6="D1";
               next_selected_value_168=selected_value_164;
               next_selected_value_169=selected_value_165;
               next_selected_value_170=selected_value_166;
               next_selected_value_171=selected_value_167;
               selected_value_168=next_selected_value_168;
               selected_value_169=next_selected_value_169;
               selected_value_170=next_selected_value_170;
               selected_value_171=next_selected_value_171;
            }
            else
            {
               next_selected_value_168=selected_value_164;
               next_selected_value_169=selected_value_165;
               next_selected_value_170=selected_value_166;
               next_selected_value_171=selected_value_167;
               selected_value_168=next_selected_value_168;
               selected_value_169=next_selected_value_169;
               selected_value_170=next_selected_value_170;
               selected_value_171=next_selected_value_171;
            }
            if((selected_value_171==10080))
            {
               local_text_6="W1";
               next_selected_value_172=selected_value_168;
               next_selected_value_173=selected_value_169;
               next_selected_value_174=selected_value_170;
               next_selected_value_175=selected_value_171;
               selected_value_172=next_selected_value_172;
               selected_value_173=next_selected_value_173;
               selected_value_174=next_selected_value_174;
               selected_value_175=next_selected_value_175;
            }
            else
            {
               next_selected_value_172=selected_value_168;
               next_selected_value_173=selected_value_169;
               next_selected_value_174=selected_value_170;
               next_selected_value_175=selected_value_171;
               selected_value_172=next_selected_value_172;
               selected_value_173=next_selected_value_173;
               selected_value_174=next_selected_value_174;
               selected_value_175=next_selected_value_175;
            }
            computed_value_9=(uint)0xa8c0;
            if((selected_value_175==(int)computed_value_9))
            {
               local_text_6="MN1";
               next_selected_value_176=selected_value_172;
               next_selected_value_177=selected_value_173;
               next_selected_value_178=selected_value_174;
               selected_value_176=next_selected_value_176;
               selected_value_177=next_selected_value_177;
               selected_value_178=next_selected_value_178;
            }
            else
            {
               next_selected_value_176=selected_value_172;
               next_selected_value_177=selected_value_173;
               next_selected_value_178=selected_value_174;
               selected_value_176=next_selected_value_176;
               selected_value_177=next_selected_value_177;
               selected_value_178=next_selected_value_178;
            }
            local_text_7="DISPLAY ";
            local_text_7+=local_text_6;
            local_text_7+=" Reversal";
            local_text_8=global_text_9;
            local_text_8+="HideButton";
            boxHeight_value_3=boxHeight;
            boxWidth_value_3=boxWidth;
            shiftY_value_3=shiftY;
            shiftX_value_3=shiftX;
            ReadSharedValue3((uint)0x0, (uint)0x0, local_text_8, 0, shiftX_value_3, shiftY_value_3, boxWidth_value_3, boxHeight_value_3, 0, local_text_7, local_text_5, selected_value_178, (int)selected_value_177, (int)selected_value_176, (uint)0xffffffff, false, false, false, true, (uint)0x0, (uint)0x0);
            global_state_38_value_2=global_state_38;
            if((global_state_38_value_2==true))
            {
               breakersHighTimeFrame_value=breakersHighTimeFrame;
               if((breakersHighTimeFrame_value!=0))
               {
                  _Period_value=_Period;
                  highTimeFrameB_value_15=highTimeFrameB;
                  if((_Period_value!=highTimeFrameB_value_15))
                  {
                     UpdateText8((uint)0x1);
                  }
                  backGroundColor_value_4=backGroundColor;
                  textColor_value_4=textColor;
                  TaillePolice_value_4=TaillePolice;
                  local_text_9=global_text_11;
                  highTimeFrameB_value_16=highTimeFrameB;
                  local_text_10=NULL;
                  local_text_10="NONE";
                  highTimeFrameB_value_17=highTimeFrameB;
                  if((highTimeFrameB_value_17==1))
                  {
                     local_text_10="M1";
                     next_selected_value_179=backGroundColor_value_4;
                     next_selected_value_180=textColor_value_4;
                     next_selected_value_181=TaillePolice_value_4;
                     next_selected_value_182=highTimeFrameB_value_16;
                     selected_value_179=next_selected_value_179;
                     selected_value_180=next_selected_value_180;
                     selected_value_181=next_selected_value_181;
                     selected_value_182=next_selected_value_182;
                  }
                  else
                  {
                     next_selected_value_179=backGroundColor_value_4;
                     next_selected_value_180=textColor_value_4;
                     next_selected_value_181=TaillePolice_value_4;
                     next_selected_value_182=highTimeFrameB_value_16;
                     selected_value_179=next_selected_value_179;
                     selected_value_180=next_selected_value_180;
                     selected_value_181=next_selected_value_181;
                     selected_value_182=next_selected_value_182;
                  }
                  if((selected_value_182==5))
                  {
                     local_text_10="M5";
                     next_selected_value_183=selected_value_179;
                     next_selected_value_184=selected_value_180;
                     next_selected_value_185=selected_value_181;
                     next_selected_value_186=selected_value_182;
                     selected_value_183=next_selected_value_183;
                     selected_value_184=next_selected_value_184;
                     selected_value_185=next_selected_value_185;
                     selected_value_186=next_selected_value_186;
                  }
                  else
                  {
                     next_selected_value_183=selected_value_179;
                     next_selected_value_184=selected_value_180;
                     next_selected_value_185=selected_value_181;
                     next_selected_value_186=selected_value_182;
                     selected_value_183=next_selected_value_183;
                     selected_value_184=next_selected_value_184;
                     selected_value_185=next_selected_value_185;
                     selected_value_186=next_selected_value_186;
                  }
                  if((selected_value_186==15))
                  {
                     local_text_10="M15";
                     next_selected_value_187=selected_value_183;
                     next_selected_value_188=selected_value_184;
                     next_selected_value_189=selected_value_185;
                     next_selected_value_190=selected_value_186;
                     selected_value_187=next_selected_value_187;
                     selected_value_188=next_selected_value_188;
                     selected_value_189=next_selected_value_189;
                     selected_value_190=next_selected_value_190;
                  }
                  else
                  {
                     next_selected_value_187=selected_value_183;
                     next_selected_value_188=selected_value_184;
                     next_selected_value_189=selected_value_185;
                     next_selected_value_190=selected_value_186;
                     selected_value_187=next_selected_value_187;
                     selected_value_188=next_selected_value_188;
                     selected_value_189=next_selected_value_189;
                     selected_value_190=next_selected_value_190;
                  }
                  if((selected_value_190==30))
                  {
                     local_text_10="M30";
                     next_selected_value_191=selected_value_187;
                     next_selected_value_192=selected_value_188;
                     next_selected_value_193=selected_value_189;
                     next_selected_value_194=selected_value_190;
                     selected_value_191=next_selected_value_191;
                     selected_value_192=next_selected_value_192;
                     selected_value_193=next_selected_value_193;
                     selected_value_194=next_selected_value_194;
                  }
                  else
                  {
                     next_selected_value_191=selected_value_187;
                     next_selected_value_192=selected_value_188;
                     next_selected_value_193=selected_value_189;
                     next_selected_value_194=selected_value_190;
                     selected_value_191=next_selected_value_191;
                     selected_value_192=next_selected_value_192;
                     selected_value_193=next_selected_value_193;
                     selected_value_194=next_selected_value_194;
                  }
                  if((selected_value_194==60))
                  {
                     local_text_10="H1";
                     next_selected_value_195=selected_value_191;
                     next_selected_value_196=selected_value_192;
                     next_selected_value_197=selected_value_193;
                     next_selected_value_198=selected_value_194;
                     selected_value_195=next_selected_value_195;
                     selected_value_196=next_selected_value_196;
                     selected_value_197=next_selected_value_197;
                     selected_value_198=next_selected_value_198;
                  }
                  else
                  {
                     next_selected_value_195=selected_value_191;
                     next_selected_value_196=selected_value_192;
                     next_selected_value_197=selected_value_193;
                     next_selected_value_198=selected_value_194;
                     selected_value_195=next_selected_value_195;
                     selected_value_196=next_selected_value_196;
                     selected_value_197=next_selected_value_197;
                     selected_value_198=next_selected_value_198;
                  }
                  if((selected_value_198==240))
                  {
                     local_text_10="H4";
                     next_selected_value_199=selected_value_195;
                     next_selected_value_200=selected_value_196;
                     next_selected_value_201=selected_value_197;
                     next_selected_value_202=selected_value_198;
                     selected_value_199=next_selected_value_199;
                     selected_value_200=next_selected_value_200;
                     selected_value_201=next_selected_value_201;
                     selected_value_202=next_selected_value_202;
                  }
                  else
                  {
                     next_selected_value_199=selected_value_195;
                     next_selected_value_200=selected_value_196;
                     next_selected_value_201=selected_value_197;
                     next_selected_value_202=selected_value_198;
                     selected_value_199=next_selected_value_199;
                     selected_value_200=next_selected_value_200;
                     selected_value_201=next_selected_value_201;
                     selected_value_202=next_selected_value_202;
                  }
                  if((selected_value_202==1440))
                  {
                     local_text_10="D1";
                     next_selected_value_203=selected_value_199;
                     next_selected_value_204=selected_value_200;
                     next_selected_value_205=selected_value_201;
                     next_selected_value_206=selected_value_202;
                     selected_value_203=next_selected_value_203;
                     selected_value_204=next_selected_value_204;
                     selected_value_205=next_selected_value_205;
                     selected_value_206=next_selected_value_206;
                  }
                  else
                  {
                     next_selected_value_203=selected_value_199;
                     next_selected_value_204=selected_value_200;
                     next_selected_value_205=selected_value_201;
                     next_selected_value_206=selected_value_202;
                     selected_value_203=next_selected_value_203;
                     selected_value_204=next_selected_value_204;
                     selected_value_205=next_selected_value_205;
                     selected_value_206=next_selected_value_206;
                  }
                  if((selected_value_206==10080))
                  {
                     local_text_10="W1";
                     next_selected_value_207=selected_value_203;
                     next_selected_value_208=selected_value_204;
                     next_selected_value_209=selected_value_205;
                     next_selected_value_210=selected_value_206;
                     selected_value_207=next_selected_value_207;
                     selected_value_208=next_selected_value_208;
                     selected_value_209=next_selected_value_209;
                     selected_value_210=next_selected_value_210;
                  }
                  else
                  {
                     next_selected_value_207=selected_value_203;
                     next_selected_value_208=selected_value_204;
                     next_selected_value_209=selected_value_205;
                     next_selected_value_210=selected_value_206;
                     selected_value_207=next_selected_value_207;
                     selected_value_208=next_selected_value_208;
                     selected_value_209=next_selected_value_209;
                     selected_value_210=next_selected_value_210;
                  }
                  computed_value_10=(uint)0xa8c0;
                  if((selected_value_210==(int)computed_value_10))
                  {
                     local_text_10="MN1";
                     next_selected_value_211=selected_value_207;
                     next_selected_value_212=selected_value_208;
                     next_selected_value_213=selected_value_209;
                     selected_value_211=next_selected_value_211;
                     selected_value_212=next_selected_value_212;
                     selected_value_213=next_selected_value_213;
                  }
                  else
                  {
                     next_selected_value_211=selected_value_207;
                     next_selected_value_212=selected_value_208;
                     next_selected_value_213=selected_value_209;
                     selected_value_211=next_selected_value_211;
                     selected_value_212=next_selected_value_212;
                     selected_value_213=next_selected_value_213;
                  }
                  local_text_11="DISPLAY ";
                  local_text_11+=local_text_10;
                  local_text_11+=" Reversal";
                  local_text_12=global_text_9;
                  local_text_12+="HideButton";
                  boxHeight_value_4=boxHeight;
                  boxWidth_value_4=boxWidth;
                  shiftY_value_4=shiftY;
                  shiftX_value_4=shiftX;
                  ReadSharedValue3((uint)0x0, (uint)0x0, local_text_12, 0, shiftX_value_4, shiftY_value_4, boxWidth_value_4, boxHeight_value_4, 0, local_text_11, local_text_9, selected_value_213, (int)selected_value_212, (int)selected_value_211, (uint)0xffffffff, false, false, false, true, (uint)0x0, (uint)0x0);
               }
            }
            UpdateText5();
            UpdateText4();
            UpdateText6();
            displayDirectionArrow_value=displayDirectionArrow;
            if((displayDirectionArrow_value==true))
            {
               UpdateText3();
            }
            ChartRedraw(0);
            alertRetest_value=alertRetest;
            if((alertRetest_value==true))
            {
               indicator_buffer_21[(uint)0x1]=2147483647.0;
               indicator_buffer_22[(uint)0x1]=2147483647.0;
               api_result_6=ObjectsTotal(-1);
               next_selected_value_214=api_result_6;
               selected_value_214=next_selected_value_214;
               while(true)
               {
                  if((-1<selected_value_214))
                  {
                     local_text_26=NULL;
                     local_text_26=ObjectName(selected_value_214);
                     api_result_7=StringFind(local_text_26, global_text_10, 0);
                     if((-1<api_result_7))
                     {
                        ObjectDelete(local_text_26);
                        next_selected_value_215=selected_value_214;
                        selected_value_215=next_selected_value_215;
                     }
                     else
                     {
                        next_selected_value_215=selected_value_214;
                        selected_value_215=next_selected_value_215;
                     }
                     local_text_26=NULL;
                     computed_value_11=(int)((uint)selected_value_215+(uint)0xffffffff);
                     next_selected_value_214=computed_value_11;
                     selected_value_214=next_selected_value_214;
                     continue;
                  }
                  else
                  {
                     break;
                  }
               }
               UpdateText10();
               UpdateText11();
            }
            UpdateText7();
         }
         else
         {
            api_result=ObjectsTotal(-1);
            next_selected_value=api_result;
            selected_value=next_selected_value;
            while(true)
            {
               if((-1<selected_value))
               {
                  local_text_27=NULL;
                  local_text_27=ObjectName(selected_value);
                  local_text_13=global_text_8;
                  local_text_13+="RectTop";
                  local_text_13+=" ";
                  local_text_13+="Block ";
                  highTimeFrameB_value=highTimeFrameB;
                  local_text_14=NULL;
                  local_text_14="NONE";
                  highTimeFrameB_value_2=highTimeFrameB;
                  if((highTimeFrameB_value_2==1))
                  {
                     local_text_14="M1";
                     next_selected_value_2=selected_value;
                     next_selected_value_3=highTimeFrameB_value;
                     selected_value_2=next_selected_value_2;
                     selected_value_3=next_selected_value_3;
                  }
                  else
                  {
                     next_selected_value_2=selected_value;
                     next_selected_value_3=highTimeFrameB_value;
                     selected_value_2=next_selected_value_2;
                     selected_value_3=next_selected_value_3;
                  }
                  if((selected_value_3==5))
                  {
                     local_text_14="M5";
                     next_selected_value_4=selected_value_2;
                     next_selected_value_5=selected_value_3;
                     selected_value_4=next_selected_value_4;
                     selected_value_5=next_selected_value_5;
                  }
                  else
                  {
                     next_selected_value_4=selected_value_2;
                     next_selected_value_5=selected_value_3;
                     selected_value_4=next_selected_value_4;
                     selected_value_5=next_selected_value_5;
                  }
                  if((selected_value_5==15))
                  {
                     local_text_14="M15";
                     next_selected_value_6=selected_value_4;
                     next_selected_value_7=selected_value_5;
                     selected_value_6=next_selected_value_6;
                     selected_value_7=next_selected_value_7;
                  }
                  else
                  {
                     next_selected_value_6=selected_value_4;
                     next_selected_value_7=selected_value_5;
                     selected_value_6=next_selected_value_6;
                     selected_value_7=next_selected_value_7;
                  }
                  if((selected_value_7==30))
                  {
                     local_text_14="M30";
                     next_selected_value_8=selected_value_6;
                     next_selected_value_9=selected_value_7;
                     selected_value_8=next_selected_value_8;
                     selected_value_9=next_selected_value_9;
                  }
                  else
                  {
                     next_selected_value_8=selected_value_6;
                     next_selected_value_9=selected_value_7;
                     selected_value_8=next_selected_value_8;
                     selected_value_9=next_selected_value_9;
                  }
                  if((selected_value_9==60))
                  {
                     local_text_14="H1";
                     next_selected_value_10=selected_value_8;
                     next_selected_value_11=selected_value_9;
                     selected_value_10=next_selected_value_10;
                     selected_value_11=next_selected_value_11;
                  }
                  else
                  {
                     next_selected_value_10=selected_value_8;
                     next_selected_value_11=selected_value_9;
                     selected_value_10=next_selected_value_10;
                     selected_value_11=next_selected_value_11;
                  }
                  if((selected_value_11==240))
                  {
                     local_text_14="H4";
                     next_selected_value_12=selected_value_10;
                     next_selected_value_13=selected_value_11;
                     selected_value_12=next_selected_value_12;
                     selected_value_13=next_selected_value_13;
                  }
                  else
                  {
                     next_selected_value_12=selected_value_10;
                     next_selected_value_13=selected_value_11;
                     selected_value_12=next_selected_value_12;
                     selected_value_13=next_selected_value_13;
                  }
                  if((selected_value_13==1440))
                  {
                     local_text_14="D1";
                     next_selected_value_14=selected_value_12;
                     next_selected_value_15=selected_value_13;
                     selected_value_14=next_selected_value_14;
                     selected_value_15=next_selected_value_15;
                  }
                  else
                  {
                     next_selected_value_14=selected_value_12;
                     next_selected_value_15=selected_value_13;
                     selected_value_14=next_selected_value_14;
                     selected_value_15=next_selected_value_15;
                  }
                  if((selected_value_15==10080))
                  {
                     local_text_14="W1";
                     next_selected_value_16=selected_value_14;
                     next_selected_value_17=selected_value_15;
                     selected_value_16=next_selected_value_16;
                     selected_value_17=next_selected_value_17;
                  }
                  else
                  {
                     next_selected_value_16=selected_value_14;
                     next_selected_value_17=selected_value_15;
                     selected_value_16=next_selected_value_16;
                     selected_value_17=next_selected_value_17;
                  }
                  computed_value_2=(uint)0xa8c0;
                  if((selected_value_17==(int)computed_value_2))
                  {
                     local_text_14="MN1";
                     next_selected_value_18=selected_value_16;
                     selected_value_18=next_selected_value_18;
                  }
                  else
                  {
                     next_selected_value_18=selected_value_16;
                     selected_value_18=next_selected_value_18;
                  }
                  local_text_13+=local_text_14;
                  api_result_2=StringFind(local_text_27, local_text_13, 0);
                  if((-1<api_result_2))
                  {
                     ObjectDelete(local_text_27);
                     next_selected_value_19=selected_value_18;
                     selected_value_19=next_selected_value_19;
                  }
                  else
                  {
                     next_selected_value_19=selected_value_18;
                     selected_value_19=next_selected_value_19;
                  }
                  local_text_15=global_text_8;
                  local_text_15+="RectTop";
                  local_text_15+=" ";
                  local_text_15+=" ReversalComplete ";
                  highTimeFrameB_value_3=highTimeFrameB;
                  local_text_16=NULL;
                  local_text_16="NONE";
                  highTimeFrameB_value_4=highTimeFrameB;
                  if((highTimeFrameB_value_4==1))
                  {
                     local_text_16="M1";
                     next_selected_value_20=selected_value_19;
                     next_selected_value_21=highTimeFrameB_value_3;
                     selected_value_20=next_selected_value_20;
                     selected_value_21=next_selected_value_21;
                  }
                  else
                  {
                     next_selected_value_20=selected_value_19;
                     next_selected_value_21=highTimeFrameB_value_3;
                     selected_value_20=next_selected_value_20;
                     selected_value_21=next_selected_value_21;
                  }
                  if((selected_value_21==5))
                  {
                     local_text_16="M5";
                     next_selected_value_22=selected_value_20;
                     next_selected_value_23=selected_value_21;
                     selected_value_22=next_selected_value_22;
                     selected_value_23=next_selected_value_23;
                  }
                  else
                  {
                     next_selected_value_22=selected_value_20;
                     next_selected_value_23=selected_value_21;
                     selected_value_22=next_selected_value_22;
                     selected_value_23=next_selected_value_23;
                  }
                  if((selected_value_23==15))
                  {
                     local_text_16="M15";
                     next_selected_value_24=selected_value_22;
                     next_selected_value_25=selected_value_23;
                     selected_value_24=next_selected_value_24;
                     selected_value_25=next_selected_value_25;
                  }
                  else
                  {
                     next_selected_value_24=selected_value_22;
                     next_selected_value_25=selected_value_23;
                     selected_value_24=next_selected_value_24;
                     selected_value_25=next_selected_value_25;
                  }
                  if((selected_value_25==30))
                  {
                     local_text_16="M30";
                     next_selected_value_26=selected_value_24;
                     next_selected_value_27=selected_value_25;
                     selected_value_26=next_selected_value_26;
                     selected_value_27=next_selected_value_27;
                  }
                  else
                  {
                     next_selected_value_26=selected_value_24;
                     next_selected_value_27=selected_value_25;
                     selected_value_26=next_selected_value_26;
                     selected_value_27=next_selected_value_27;
                  }
                  if((selected_value_27==60))
                  {
                     local_text_16="H1";
                     next_selected_value_28=selected_value_26;
                     next_selected_value_29=selected_value_27;
                     selected_value_28=next_selected_value_28;
                     selected_value_29=next_selected_value_29;
                  }
                  else
                  {
                     next_selected_value_28=selected_value_26;
                     next_selected_value_29=selected_value_27;
                     selected_value_28=next_selected_value_28;
                     selected_value_29=next_selected_value_29;
                  }
                  if((selected_value_29==240))
                  {
                     local_text_16="H4";
                     next_selected_value_30=selected_value_28;
                     next_selected_value_31=selected_value_29;
                     selected_value_30=next_selected_value_30;
                     selected_value_31=next_selected_value_31;
                  }
                  else
                  {
                     next_selected_value_30=selected_value_28;
                     next_selected_value_31=selected_value_29;
                     selected_value_30=next_selected_value_30;
                     selected_value_31=next_selected_value_31;
                  }
                  if((selected_value_31==1440))
                  {
                     local_text_16="D1";
                     next_selected_value_32=selected_value_30;
                     next_selected_value_33=selected_value_31;
                     selected_value_32=next_selected_value_32;
                     selected_value_33=next_selected_value_33;
                  }
                  else
                  {
                     next_selected_value_32=selected_value_30;
                     next_selected_value_33=selected_value_31;
                     selected_value_32=next_selected_value_32;
                     selected_value_33=next_selected_value_33;
                  }
                  if((selected_value_33==10080))
                  {
                     local_text_16="W1";
                     next_selected_value_34=selected_value_32;
                     next_selected_value_35=selected_value_33;
                     selected_value_34=next_selected_value_34;
                     selected_value_35=next_selected_value_35;
                  }
                  else
                  {
                     next_selected_value_34=selected_value_32;
                     next_selected_value_35=selected_value_33;
                     selected_value_34=next_selected_value_34;
                     selected_value_35=next_selected_value_35;
                  }
                  computed_value_3=(uint)0xa8c0;
                  if((selected_value_35==(int)computed_value_3))
                  {
                     local_text_16="MN1";
                     next_selected_value_36=selected_value_34;
                     selected_value_36=next_selected_value_36;
                  }
                  else
                  {
                     next_selected_value_36=selected_value_34;
                     selected_value_36=next_selected_value_36;
                  }
                  local_text_15+=local_text_16;
                  api_result_3=StringFind(local_text_27, local_text_15, 0);
                  if((-1<api_result_3))
                  {
                     ObjectDelete(local_text_27);
                     next_selected_value_37=selected_value_36;
                     selected_value_37=next_selected_value_37;
                  }
                  else
                  {
                     next_selected_value_37=selected_value_36;
                     selected_value_37=next_selected_value_37;
                  }
                  local_text_17=global_text_8;
                  local_text_17+="RectBottom";
                  local_text_17+=" ";
                  local_text_17+=" ReversalComplete ";
                  highTimeFrameB_value_5=highTimeFrameB;
                  local_text_18=NULL;
                  local_text_18="NONE";
                  highTimeFrameB_value_6=highTimeFrameB;
                  if((highTimeFrameB_value_6==1))
                  {
                     local_text_18="M1";
                     next_selected_value_38=selected_value_37;
                     next_selected_value_39=highTimeFrameB_value_5;
                     selected_value_38=next_selected_value_38;
                     selected_value_39=next_selected_value_39;
                  }
                  else
                  {
                     next_selected_value_38=selected_value_37;
                     next_selected_value_39=highTimeFrameB_value_5;
                     selected_value_38=next_selected_value_38;
                     selected_value_39=next_selected_value_39;
                  }
                  if((selected_value_39==5))
                  {
                     local_text_18="M5";
                     next_selected_value_40=selected_value_38;
                     next_selected_value_41=selected_value_39;
                     selected_value_40=next_selected_value_40;
                     selected_value_41=next_selected_value_41;
                  }
                  else
                  {
                     next_selected_value_40=selected_value_38;
                     next_selected_value_41=selected_value_39;
                     selected_value_40=next_selected_value_40;
                     selected_value_41=next_selected_value_41;
                  }
                  if((selected_value_41==15))
                  {
                     local_text_18="M15";
                     next_selected_value_42=selected_value_40;
                     next_selected_value_43=selected_value_41;
                     selected_value_42=next_selected_value_42;
                     selected_value_43=next_selected_value_43;
                  }
                  else
                  {
                     next_selected_value_42=selected_value_40;
                     next_selected_value_43=selected_value_41;
                     selected_value_42=next_selected_value_42;
                     selected_value_43=next_selected_value_43;
                  }
                  if((selected_value_43==30))
                  {
                     local_text_18="M30";
                     next_selected_value_44=selected_value_42;
                     next_selected_value_45=selected_value_43;
                     selected_value_44=next_selected_value_44;
                     selected_value_45=next_selected_value_45;
                  }
                  else
                  {
                     next_selected_value_44=selected_value_42;
                     next_selected_value_45=selected_value_43;
                     selected_value_44=next_selected_value_44;
                     selected_value_45=next_selected_value_45;
                  }
                  if((selected_value_45==60))
                  {
                     local_text_18="H1";
                     next_selected_value_46=selected_value_44;
                     next_selected_value_47=selected_value_45;
                     selected_value_46=next_selected_value_46;
                     selected_value_47=next_selected_value_47;
                  }
                  else
                  {
                     next_selected_value_46=selected_value_44;
                     next_selected_value_47=selected_value_45;
                     selected_value_46=next_selected_value_46;
                     selected_value_47=next_selected_value_47;
                  }
                  if((selected_value_47==240))
                  {
                     local_text_18="H4";
                     next_selected_value_48=selected_value_46;
                     next_selected_value_49=selected_value_47;
                     selected_value_48=next_selected_value_48;
                     selected_value_49=next_selected_value_49;
                  }
                  else
                  {
                     next_selected_value_48=selected_value_46;
                     next_selected_value_49=selected_value_47;
                     selected_value_48=next_selected_value_48;
                     selected_value_49=next_selected_value_49;
                  }
                  if((selected_value_49==1440))
                  {
                     local_text_18="D1";
                     next_selected_value_50=selected_value_48;
                     next_selected_value_51=selected_value_49;
                     selected_value_50=next_selected_value_50;
                     selected_value_51=next_selected_value_51;
                  }
                  else
                  {
                     next_selected_value_50=selected_value_48;
                     next_selected_value_51=selected_value_49;
                     selected_value_50=next_selected_value_50;
                     selected_value_51=next_selected_value_51;
                  }
                  if((selected_value_51==10080))
                  {
                     local_text_18="W1";
                     next_selected_value_52=selected_value_50;
                     next_selected_value_53=selected_value_51;
                     selected_value_52=next_selected_value_52;
                     selected_value_53=next_selected_value_53;
                  }
                  else
                  {
                     next_selected_value_52=selected_value_50;
                     next_selected_value_53=selected_value_51;
                     selected_value_52=next_selected_value_52;
                     selected_value_53=next_selected_value_53;
                  }
                  computed_value_4=(uint)0xa8c0;
                  if((selected_value_53==(int)computed_value_4))
                  {
                     local_text_18="MN1";
                     next_selected_value_54=selected_value_52;
                     selected_value_54=next_selected_value_54;
                  }
                  else
                  {
                     next_selected_value_54=selected_value_52;
                     selected_value_54=next_selected_value_54;
                  }
                  local_text_17+=local_text_18;
                  api_result_4=StringFind(local_text_27, local_text_17, 0);
                  if((-1<api_result_4))
                  {
                     ObjectDelete(local_text_27);
                     next_selected_value_55=selected_value_54;
                     selected_value_55=next_selected_value_55;
                  }
                  else
                  {
                     next_selected_value_55=selected_value_54;
                     selected_value_55=next_selected_value_55;
                  }
                  local_text_19=global_text_8;
                  local_text_19+="RectBottom";
                  local_text_19+=" ";
                  local_text_19+="Block ";
                  highTimeFrameB_value_7=highTimeFrameB;
                  local_text_20=NULL;
                  local_text_20="NONE";
                  highTimeFrameB_value_8=highTimeFrameB;
                  if((highTimeFrameB_value_8==1))
                  {
                     local_text_20="M1";
                     next_selected_value_56=selected_value_55;
                     next_selected_value_57=highTimeFrameB_value_7;
                     selected_value_56=next_selected_value_56;
                     selected_value_57=next_selected_value_57;
                  }
                  else
                  {
                     next_selected_value_56=selected_value_55;
                     next_selected_value_57=highTimeFrameB_value_7;
                     selected_value_56=next_selected_value_56;
                     selected_value_57=next_selected_value_57;
                  }
                  if((selected_value_57==5))
                  {
                     local_text_20="M5";
                     next_selected_value_58=selected_value_56;
                     next_selected_value_59=selected_value_57;
                     selected_value_58=next_selected_value_58;
                     selected_value_59=next_selected_value_59;
                  }
                  else
                  {
                     next_selected_value_58=selected_value_56;
                     next_selected_value_59=selected_value_57;
                     selected_value_58=next_selected_value_58;
                     selected_value_59=next_selected_value_59;
                  }
                  if((selected_value_59==15))
                  {
                     local_text_20="M15";
                     next_selected_value_60=selected_value_58;
                     next_selected_value_61=selected_value_59;
                     selected_value_60=next_selected_value_60;
                     selected_value_61=next_selected_value_61;
                  }
                  else
                  {
                     next_selected_value_60=selected_value_58;
                     next_selected_value_61=selected_value_59;
                     selected_value_60=next_selected_value_60;
                     selected_value_61=next_selected_value_61;
                  }
                  if((selected_value_61==30))
                  {
                     local_text_20="M30";
                     next_selected_value_62=selected_value_60;
                     next_selected_value_63=selected_value_61;
                     selected_value_62=next_selected_value_62;
                     selected_value_63=next_selected_value_63;
                  }
                  else
                  {
                     next_selected_value_62=selected_value_60;
                     next_selected_value_63=selected_value_61;
                     selected_value_62=next_selected_value_62;
                     selected_value_63=next_selected_value_63;
                  }
                  if((selected_value_63==60))
                  {
                     local_text_20="H1";
                     next_selected_value_64=selected_value_62;
                     next_selected_value_65=selected_value_63;
                     selected_value_64=next_selected_value_64;
                     selected_value_65=next_selected_value_65;
                  }
                  else
                  {
                     next_selected_value_64=selected_value_62;
                     next_selected_value_65=selected_value_63;
                     selected_value_64=next_selected_value_64;
                     selected_value_65=next_selected_value_65;
                  }
                  if((selected_value_65==240))
                  {
                     local_text_20="H4";
                     next_selected_value_66=selected_value_64;
                     next_selected_value_67=selected_value_65;
                     selected_value_66=next_selected_value_66;
                     selected_value_67=next_selected_value_67;
                  }
                  else
                  {
                     next_selected_value_66=selected_value_64;
                     next_selected_value_67=selected_value_65;
                     selected_value_66=next_selected_value_66;
                     selected_value_67=next_selected_value_67;
                  }
                  if((selected_value_67==1440))
                  {
                     local_text_20="D1";
                     next_selected_value_68=selected_value_66;
                     next_selected_value_69=selected_value_67;
                     selected_value_68=next_selected_value_68;
                     selected_value_69=next_selected_value_69;
                  }
                  else
                  {
                     next_selected_value_68=selected_value_66;
                     next_selected_value_69=selected_value_67;
                     selected_value_68=next_selected_value_68;
                     selected_value_69=next_selected_value_69;
                  }
                  if((selected_value_69==10080))
                  {
                     local_text_20="W1";
                     next_selected_value_70=selected_value_68;
                     next_selected_value_71=selected_value_69;
                     selected_value_70=next_selected_value_70;
                     selected_value_71=next_selected_value_71;
                  }
                  else
                  {
                     next_selected_value_70=selected_value_68;
                     next_selected_value_71=selected_value_69;
                     selected_value_70=next_selected_value_70;
                     selected_value_71=next_selected_value_71;
                  }
                  computed_value_5=(uint)0xa8c0;
                  if((selected_value_71==(int)computed_value_5))
                  {
                     local_text_20="MN1";
                     next_selected_value_72=selected_value_70;
                     selected_value_72=next_selected_value_72;
                  }
                  else
                  {
                     next_selected_value_72=selected_value_70;
                     selected_value_72=next_selected_value_72;
                  }
                  local_text_19+=local_text_20;
                  api_result_5=StringFind(local_text_27, local_text_19, 0);
                  if((-1<api_result_5))
                  {
                     ObjectDelete(local_text_27);
                     next_selected_value_73=selected_value_72;
                     selected_value_73=next_selected_value_73;
                  }
                  else
                  {
                     next_selected_value_73=selected_value_72;
                     selected_value_73=next_selected_value_73;
                  }
                  local_text_27=NULL;
                  computed_value_6=(int)((uint)selected_value_73+(uint)0xffffffff);
                  next_selected_value=computed_value_6;
                  selected_value=next_selected_value;
                  continue;
               }
               else
               {
                  break;
               }
            }
            global_state_38=false;
            backGroundColor_value=backGroundColor;
            textColor_value=textColor;
            TaillePolice_value=TaillePolice;
            local_text_21=global_text_11;
            highTimeFrameB_value_9=highTimeFrameB;
            local_text_22=NULL;
            local_text_22="NONE";
            highTimeFrameB_value_10=highTimeFrameB;
            if((highTimeFrameB_value_10==1))
            {
               local_text_22="M1";
               next_selected_value_74=backGroundColor_value;
               next_selected_value_75=textColor_value;
               next_selected_value_76=TaillePolice_value;
               next_selected_value_77=highTimeFrameB_value_9;
               selected_value_74=next_selected_value_74;
               selected_value_75=next_selected_value_75;
               selected_value_76=next_selected_value_76;
               selected_value_77=next_selected_value_77;
            }
            else
            {
               next_selected_value_74=backGroundColor_value;
               next_selected_value_75=textColor_value;
               next_selected_value_76=TaillePolice_value;
               next_selected_value_77=highTimeFrameB_value_9;
               selected_value_74=next_selected_value_74;
               selected_value_75=next_selected_value_75;
               selected_value_76=next_selected_value_76;
               selected_value_77=next_selected_value_77;
            }
            if((selected_value_77==5))
            {
               local_text_22="M5";
               next_selected_value_78=selected_value_74;
               next_selected_value_79=selected_value_75;
               next_selected_value_80=selected_value_76;
               next_selected_value_81=selected_value_77;
               selected_value_78=next_selected_value_78;
               selected_value_79=next_selected_value_79;
               selected_value_80=next_selected_value_80;
               selected_value_81=next_selected_value_81;
            }
            else
            {
               next_selected_value_78=selected_value_74;
               next_selected_value_79=selected_value_75;
               next_selected_value_80=selected_value_76;
               next_selected_value_81=selected_value_77;
               selected_value_78=next_selected_value_78;
               selected_value_79=next_selected_value_79;
               selected_value_80=next_selected_value_80;
               selected_value_81=next_selected_value_81;
            }
            if((selected_value_81==15))
            {
               local_text_22="M15";
               next_selected_value_82=selected_value_78;
               next_selected_value_83=selected_value_79;
               next_selected_value_84=selected_value_80;
               next_selected_value_85=selected_value_81;
               selected_value_82=next_selected_value_82;
               selected_value_83=next_selected_value_83;
               selected_value_84=next_selected_value_84;
               selected_value_85=next_selected_value_85;
            }
            else
            {
               next_selected_value_82=selected_value_78;
               next_selected_value_83=selected_value_79;
               next_selected_value_84=selected_value_80;
               next_selected_value_85=selected_value_81;
               selected_value_82=next_selected_value_82;
               selected_value_83=next_selected_value_83;
               selected_value_84=next_selected_value_84;
               selected_value_85=next_selected_value_85;
            }
            if((selected_value_85==30))
            {
               local_text_22="M30";
               next_selected_value_86=selected_value_82;
               next_selected_value_87=selected_value_83;
               next_selected_value_88=selected_value_84;
               next_selected_value_89=selected_value_85;
               selected_value_86=next_selected_value_86;
               selected_value_87=next_selected_value_87;
               selected_value_88=next_selected_value_88;
               selected_value_89=next_selected_value_89;
            }
            else
            {
               next_selected_value_86=selected_value_82;
               next_selected_value_87=selected_value_83;
               next_selected_value_88=selected_value_84;
               next_selected_value_89=selected_value_85;
               selected_value_86=next_selected_value_86;
               selected_value_87=next_selected_value_87;
               selected_value_88=next_selected_value_88;
               selected_value_89=next_selected_value_89;
            }
            if((selected_value_89==60))
            {
               local_text_22="H1";
               next_selected_value_90=selected_value_86;
               next_selected_value_91=selected_value_87;
               next_selected_value_92=selected_value_88;
               next_selected_value_93=selected_value_89;
               selected_value_90=next_selected_value_90;
               selected_value_91=next_selected_value_91;
               selected_value_92=next_selected_value_92;
               selected_value_93=next_selected_value_93;
            }
            else
            {
               next_selected_value_90=selected_value_86;
               next_selected_value_91=selected_value_87;
               next_selected_value_92=selected_value_88;
               next_selected_value_93=selected_value_89;
               selected_value_90=next_selected_value_90;
               selected_value_91=next_selected_value_91;
               selected_value_92=next_selected_value_92;
               selected_value_93=next_selected_value_93;
            }
            if((selected_value_93==240))
            {
               local_text_22="H4";
               next_selected_value_94=selected_value_90;
               next_selected_value_95=selected_value_91;
               next_selected_value_96=selected_value_92;
               next_selected_value_97=selected_value_93;
               selected_value_94=next_selected_value_94;
               selected_value_95=next_selected_value_95;
               selected_value_96=next_selected_value_96;
               selected_value_97=next_selected_value_97;
            }
            else
            {
               next_selected_value_94=selected_value_90;
               next_selected_value_95=selected_value_91;
               next_selected_value_96=selected_value_92;
               next_selected_value_97=selected_value_93;
               selected_value_94=next_selected_value_94;
               selected_value_95=next_selected_value_95;
               selected_value_96=next_selected_value_96;
               selected_value_97=next_selected_value_97;
            }
            if((selected_value_97==1440))
            {
               local_text_22="D1";
               next_selected_value_98=selected_value_94;
               next_selected_value_99=selected_value_95;
               next_selected_value_100=selected_value_96;
               next_selected_value_101=selected_value_97;
               selected_value_98=next_selected_value_98;
               selected_value_99=next_selected_value_99;
               selected_value_100=next_selected_value_100;
               selected_value_101=next_selected_value_101;
            }
            else
            {
               next_selected_value_98=selected_value_94;
               next_selected_value_99=selected_value_95;
               next_selected_value_100=selected_value_96;
               next_selected_value_101=selected_value_97;
               selected_value_98=next_selected_value_98;
               selected_value_99=next_selected_value_99;
               selected_value_100=next_selected_value_100;
               selected_value_101=next_selected_value_101;
            }
            if((selected_value_101==10080))
            {
               local_text_22="W1";
               next_selected_value_102=selected_value_98;
               next_selected_value_103=selected_value_99;
               next_selected_value_104=selected_value_100;
               next_selected_value_105=selected_value_101;
               selected_value_102=next_selected_value_102;
               selected_value_103=next_selected_value_103;
               selected_value_104=next_selected_value_104;
               selected_value_105=next_selected_value_105;
            }
            else
            {
               next_selected_value_102=selected_value_98;
               next_selected_value_103=selected_value_99;
               next_selected_value_104=selected_value_100;
               next_selected_value_105=selected_value_101;
               selected_value_102=next_selected_value_102;
               selected_value_103=next_selected_value_103;
               selected_value_104=next_selected_value_104;
               selected_value_105=next_selected_value_105;
            }
            computed_value_7=(uint)0xa8c0;
            if((selected_value_105==(int)computed_value_7))
            {
               local_text_22="MN1";
               next_selected_value_106=selected_value_102;
               next_selected_value_107=selected_value_103;
               next_selected_value_108=selected_value_104;
               selected_value_106=next_selected_value_106;
               selected_value_107=next_selected_value_107;
               selected_value_108=next_selected_value_108;
            }
            else
            {
               next_selected_value_106=selected_value_102;
               next_selected_value_107=selected_value_103;
               next_selected_value_108=selected_value_104;
               selected_value_106=next_selected_value_106;
               selected_value_107=next_selected_value_107;
               selected_value_108=next_selected_value_108;
            }
            local_text_23="DISPLAY ";
            local_text_23+=local_text_22;
            local_text_23+=" Reversal";
            local_text_24=global_text_9;
            local_text_24+="HideButton";
            boxHeight_value=boxHeight;
            boxWidth_value=boxWidth;
            shiftY_value=shiftY;
            shiftX_value=shiftX;
            ReadSharedValue3((uint)0x0, (uint)0x0, local_text_24, 0, shiftX_value, shiftY_value, boxWidth_value, boxHeight_value, 0, local_text_23, local_text_21, selected_value_108, (int)selected_value_107, (int)selected_value_106, (uint)0xffffffff, false, false, false, true, (uint)0x0, (uint)0x0);
            ObjectDelete("DirectionArrow");
            ObjectDelete("DirectionArrow2");
         }
      }
   }
   local_text_25=NULL;
   local_text_24=NULL;
   local_text_23=NULL;
   local_text_22=NULL;
   local_text_21=NULL;
   local_text_20=NULL;
   local_text_19=NULL;
   local_text_18=NULL;
   local_text_17=NULL;
   local_text_16=NULL;
   local_text_15=NULL;
   local_text_14=NULL;
   local_text_13=NULL;
   local_text_12=NULL;
   local_text_11=NULL;
   local_text_10=NULL;
   local_text_9=NULL;
   local_text_8=NULL;
   local_text_7=NULL;
   local_text_6=NULL;
   local_text_5=NULL;
   local_text_4=NULL;
   local_text_3=NULL;
   local_text_2=NULL;
   local_text_1=NULL;
   return;
}

void UpdateArrayValues2()
{
   double local_values_1[];
   double local_values_2[];
   double local_values_3[];
   double local_values_4[];
   double local_values_5[];
   double local_values_6[];
   double local_values_7[];
   double local_values_8[];
   int api_result=0;
   int global_state_10_value=0;
   double computed_value=0.0;
   int global_state_22_value=0;
   int global_state_21_value=0;
   int global_state_10_value_2=0;
   int selected_value=0;
   int selected_value_2=0;
   int selected_value_3=0;
   int global_state_11_value=0;
   double computed_value_2=0.0;
   int global_state_24_value=0;
   int global_state_23_value=0;
   int global_state_11_value_2=0;
   int selected_value_4=0;
   int selected_value_5=0;
   int selected_value_6=0;
   int global_state_12_value=0;
   double computed_value_3=0.0;
   int global_state_26_value=0;
   int global_state_25_value=0;
   int global_state_12_value_2=0;
   int selected_value_7=0;
   int selected_value_8=0;
   int selected_value_9=0;
   int global_state_13_value=0;
   double computed_value_4=0.0;
   int global_state_28_value=0;
   int global_state_27_value=0;
   int global_state_13_value_2=0;
   int selected_value_10=0;
   int selected_value_11=0;
   int selected_value_12=0;
   int selected_value_13=0;
   int selected_value_14=0;
   int selected_value_15=0;
   int bar_index=0;
   double local_values_1_value=0.0;
   bool drawBlocksOnCircles_value=false;
   bool drawBlocksOnCircles_value_2=false;
   double local_values_3_value=0.0;
   double local_values_5_value=0.0;
   double local_values_7_value=0.0;
   int selected_value_16=0;
   int selected_value_17=0;
   int selected_value_18=0;
   int selected_value_19=0;
   int selected_value_20=0;
   int bar_index_2=0;
   int numberOfBlockToDisplay_value=0;
   int computed_value_5=0;
   int selected_value_21=0;
   int selected_value_22=0;
   int selected_value_23=0;
   double local_values_2_value=0.0;
   bool drawBlocksOnCircles_value_3=false;
   bool drawBlocksOnCircles_value_4=false;
   double local_values_4_value=0.0;
   double local_values_6_value=0.0;
   double local_values_8_value=0.0;
   int selected_value_24=0;
   int selected_value_25=0;
   int selected_value_26=0;
   int selected_value_27=0;
   int bar_index_3=0;
   int selected_value_28=0;
   int numberOfBlockToDisplay_value_2=0;
   int computed_value_6=0;
   int selected_value_29=0;
   int selected_value_30=0;
   int selected_value_31=0;
   int computed_value_7=0;
   int next_selected_value=0;
   int next_selected_value_2=0;
   int next_selected_value_3=0;
   int next_selected_value_4=0;
   int next_selected_value_5=0;
   int next_selected_value_6=0;
   int next_selected_value_7=0;
   int next_selected_value_8=0;
   int next_selected_value_9=0;
   int next_selected_value_10=0;
   int next_selected_value_11=0;
   int next_selected_value_12=0;
   int next_selected_value_13=0;
   int next_selected_value_14=0;
   int next_selected_value_15=0;
   int next_bar_index=0;
   int next_selected_value_16=0;
   int next_selected_value_17=0;
   int next_selected_value_18=0;
   int next_selected_value_19=0;
   int next_selected_value_20=0;
   int next_bar_index_2=0;
   int next_selected_value_21=0;
   int next_selected_value_22=0;
   int next_selected_value_23=0;
   int next_selected_value_24=0;
   int next_selected_value_25=0;
   int next_selected_value_26=0;
   int next_selected_value_27=0;
   int next_bar_index_3=0;
   int next_selected_value_28=0;
   int next_selected_value_29=0;
   int next_selected_value_30=0;
   int next_selected_value_31=0;
   api_result=iBars(_Symbol, 0);
   ArrayInitialize(global_array_1, -1);
   ArrayInitialize(global_array_2, -1);
   if(ArrayResize(local_values_1, api_result, 0)!=api_result) return;
   ArrayInitialize(local_values_1, 0.0);
   if(ArrayResize(local_values_2, api_result, 0)!=api_result) return;
   ArrayInitialize(local_values_2, 0.0);
   if(ArrayResize(local_values_3, api_result, 0)!=api_result) return;
   ArrayInitialize(local_values_3, 0.0);
   if(ArrayResize(local_values_4, api_result, 0)!=api_result) return;
   ArrayInitialize(local_values_4, 0.0);
   if(ArrayResize(local_values_5, api_result, 0)!=api_result) return;
   ArrayInitialize(local_values_5, 0.0);
   if(ArrayResize(local_values_6, api_result, 0)!=api_result) return;
   ArrayInitialize(local_values_6, 0.0);
   if(ArrayResize(local_values_7, api_result, 0)!=api_result) return;
   ArrayInitialize(local_values_7, 0.0);
   if(ArrayResize(local_values_8, api_result, 0)!=api_result) return;
   ArrayInitialize(local_values_8, 0.0);
   global_state_10_value=global_state_10;
   computed_value=(double)global_state_10_value;
   if((0.0<computed_value))
   {
      global_state_22_value=global_state_22;
      global_state_21_value=global_state_21;
      global_state_10_value_2=global_state_10;
      UpdateArrayValues(local_values_1, local_values_2, global_state_10_value_2, global_state_21_value, global_state_22_value);
      ArraySize(local_values_2);
      ArraySize(local_values_1);
      next_selected_value=api_result;
      next_selected_value_2=0;
      next_selected_value_3=0;
      selected_value=next_selected_value;
      selected_value_2=next_selected_value_2;
      selected_value_3=next_selected_value_3;
   }
   else
   {
      next_selected_value=api_result;
      next_selected_value_2=0;
      next_selected_value_3=0;
      selected_value=next_selected_value;
      selected_value_2=next_selected_value_2;
      selected_value_3=next_selected_value_3;
   }
   global_state_11_value=global_state_11;
   computed_value_2=(double)global_state_11_value;
   if((0.0<computed_value_2))
   {
      global_state_24_value=global_state_24;
      global_state_23_value=global_state_23;
      global_state_11_value_2=global_state_11;
      UpdateArrayValues(local_values_3, local_values_4, global_state_11_value_2, global_state_23_value, global_state_24_value);
      ArraySize(local_values_4);
      ArraySize(local_values_3);
      next_selected_value_4=selected_value;
      next_selected_value_5=selected_value_2;
      next_selected_value_6=selected_value_3;
      selected_value_4=next_selected_value_4;
      selected_value_5=next_selected_value_5;
      selected_value_6=next_selected_value_6;
   }
   else
   {
      next_selected_value_4=selected_value;
      next_selected_value_5=selected_value_2;
      next_selected_value_6=selected_value_3;
      selected_value_4=next_selected_value_4;
      selected_value_5=next_selected_value_5;
      selected_value_6=next_selected_value_6;
   }
   global_state_12_value=global_state_12;
   computed_value_3=(double)global_state_12_value;
   if((0.0<computed_value_3))
   {
      global_state_26_value=global_state_26;
      global_state_25_value=global_state_25;
      global_state_12_value_2=global_state_12;
      UpdateArrayValues(local_values_5, local_values_6, global_state_12_value_2, global_state_25_value, global_state_26_value);
      ArraySize(local_values_6);
      ArraySize(local_values_5);
      next_selected_value_7=selected_value_4;
      next_selected_value_8=selected_value_5;
      next_selected_value_9=selected_value_6;
      selected_value_7=next_selected_value_7;
      selected_value_8=next_selected_value_8;
      selected_value_9=next_selected_value_9;
   }
   else
   {
      next_selected_value_7=selected_value_4;
      next_selected_value_8=selected_value_5;
      next_selected_value_9=selected_value_6;
      selected_value_7=next_selected_value_7;
      selected_value_8=next_selected_value_8;
      selected_value_9=next_selected_value_9;
   }
   global_state_13_value=global_state_13;
   computed_value_4=(double)global_state_13_value;
   if((0.0<computed_value_4))
   {
      global_state_28_value=global_state_28;
      global_state_27_value=global_state_27;
      global_state_13_value_2=global_state_13;
      UpdateArrayValues(local_values_7, local_values_8, global_state_13_value_2, global_state_27_value, global_state_28_value);
      ArraySize(local_values_8);
      ArraySize(local_values_7);
      next_selected_value_10=selected_value_7;
      next_selected_value_11=selected_value_8;
      next_selected_value_12=selected_value_9;
      selected_value_10=next_selected_value_10;
      selected_value_11=next_selected_value_11;
      selected_value_12=next_selected_value_12;
   }
   else
   {
      next_selected_value_10=selected_value_7;
      next_selected_value_11=selected_value_8;
      next_selected_value_12=selected_value_9;
      selected_value_10=next_selected_value_10;
      selected_value_11=next_selected_value_11;
      selected_value_12=next_selected_value_12;
   }
   if((0<selected_value_10))
   {
      next_selected_value_13=selected_value_10;
      next_selected_value_14=selected_value_11;
      next_selected_value_15=selected_value_12;
      next_bar_index=0;
      selected_value_13=next_selected_value_13;
      selected_value_14=next_selected_value_14;
      selected_value_15=next_selected_value_15;
      bar_index=next_bar_index;
      while(true)
      {
         indicator_buffer_1[(uint)bar_index]=0.0;
         indicator_buffer_0[(uint)bar_index]=0.0;
         local_values_1_value=local_values_1[(uint)bar_index];
         if((local_values_1_value<=0.0))
         {
            drawBlocksOnCircles_value_2=drawBlocksOnCircles;
            if((drawBlocksOnCircles_value_2==false))
            {
               local_values_3_value=local_values_3[(uint)bar_index];
               if((local_values_3_value<=0.0))
               {
                  local_values_5_value=local_values_5[(uint)bar_index];
                  if((local_values_5_value<=0.0))
                  {
                     local_values_7_value=local_values_7[(uint)bar_index];
                     if((local_values_7_value<=0.0))
                     {
                        next_selected_value_21=selected_value_13;
                        next_selected_value_22=selected_value_14;
                        next_selected_value_23=selected_value_15;
                        selected_value_21=next_selected_value_21;
                        selected_value_22=next_selected_value_22;
                        selected_value_23=next_selected_value_23;
                     }
                     else
                     {
                        next_selected_value_16=selected_value_13;
                        next_selected_value_17=selected_value_14;
                        next_selected_value_18=selected_value_15;
                        selected_value_16=next_selected_value_16;
                        selected_value_17=next_selected_value_17;
                        selected_value_18=next_selected_value_18;
                        if((selected_value_18==0))
                        {
                           indicator_buffer_1[(uint)bar_index]=1.0;
                           next_selected_value_19=selected_value_16;
                           next_selected_value_20=selected_value_17;
                           next_bar_index_2=selected_value_18;
                           selected_value_19=next_selected_value_19;
                           selected_value_20=next_selected_value_20;
                           bar_index_2=next_bar_index_2;
                        }
                        else
                        {
                           next_selected_value_19=selected_value_16;
                           next_selected_value_20=selected_value_17;
                           next_bar_index_2=selected_value_18;
                           selected_value_19=next_selected_value_19;
                           selected_value_20=next_selected_value_20;
                           bar_index_2=next_bar_index_2;
                        }
                        numberOfBlockToDisplay_value=numberOfBlockToDisplay;
                        if((bar_index_2==numberOfBlockToDisplay_value))
                        {
                           break;
                        }
                        else
                        {
                           global_array_1[(uint)bar_index_2]=bar_index;
                           computed_value_5=(int)((uint)bar_index_2+(uint)0x1);
                           next_selected_value_21=selected_value_19;
                           next_selected_value_22=selected_value_20;
                           next_selected_value_23=computed_value_5;
                           selected_value_21=next_selected_value_21;
                           selected_value_22=next_selected_value_22;
                           selected_value_23=next_selected_value_23;
                        }
                     }
                  }
                  else
                  {
                     next_selected_value_16=selected_value_13;
                     next_selected_value_17=selected_value_14;
                     next_selected_value_18=selected_value_15;
                     selected_value_16=next_selected_value_16;
                     selected_value_17=next_selected_value_17;
                     selected_value_18=next_selected_value_18;
                     if((selected_value_18==0))
                     {
                        indicator_buffer_1[(uint)bar_index]=1.0;
                        next_selected_value_19=selected_value_16;
                        next_selected_value_20=selected_value_17;
                        next_bar_index_2=selected_value_18;
                        selected_value_19=next_selected_value_19;
                        selected_value_20=next_selected_value_20;
                        bar_index_2=next_bar_index_2;
                     }
                     else
                     {
                        next_selected_value_19=selected_value_16;
                        next_selected_value_20=selected_value_17;
                        next_bar_index_2=selected_value_18;
                        selected_value_19=next_selected_value_19;
                        selected_value_20=next_selected_value_20;
                        bar_index_2=next_bar_index_2;
                     }
                     numberOfBlockToDisplay_value=numberOfBlockToDisplay;
                     if((bar_index_2==numberOfBlockToDisplay_value))
                     {
                        break;
                     }
                     else
                     {
                        global_array_1[(uint)bar_index_2]=bar_index;
                        computed_value_5=(int)((uint)bar_index_2+(uint)0x1);
                        next_selected_value_21=selected_value_19;
                        next_selected_value_22=selected_value_20;
                        next_selected_value_23=computed_value_5;
                        selected_value_21=next_selected_value_21;
                        selected_value_22=next_selected_value_22;
                        selected_value_23=next_selected_value_23;
                     }
                  }
               }
               else
               {
                  next_selected_value_16=selected_value_13;
                  next_selected_value_17=selected_value_14;
                  next_selected_value_18=selected_value_15;
                  selected_value_16=next_selected_value_16;
                  selected_value_17=next_selected_value_17;
                  selected_value_18=next_selected_value_18;
                  if((selected_value_18==0))
                  {
                     indicator_buffer_1[(uint)bar_index]=1.0;
                     next_selected_value_19=selected_value_16;
                     next_selected_value_20=selected_value_17;
                     next_bar_index_2=selected_value_18;
                     selected_value_19=next_selected_value_19;
                     selected_value_20=next_selected_value_20;
                     bar_index_2=next_bar_index_2;
                  }
                  else
                  {
                     next_selected_value_19=selected_value_16;
                     next_selected_value_20=selected_value_17;
                     next_bar_index_2=selected_value_18;
                     selected_value_19=next_selected_value_19;
                     selected_value_20=next_selected_value_20;
                     bar_index_2=next_bar_index_2;
                  }
                  numberOfBlockToDisplay_value=numberOfBlockToDisplay;
                  if((bar_index_2==numberOfBlockToDisplay_value))
                  {
                     break;
                  }
                  else
                  {
                     global_array_1[(uint)bar_index_2]=bar_index;
                     computed_value_5=(int)((uint)bar_index_2+(uint)0x1);
                     next_selected_value_21=selected_value_19;
                     next_selected_value_22=selected_value_20;
                     next_selected_value_23=computed_value_5;
                     selected_value_21=next_selected_value_21;
                     selected_value_22=next_selected_value_22;
                     selected_value_23=next_selected_value_23;
                  }
               }
            }
            else
            {
               next_selected_value_21=selected_value_13;
               next_selected_value_22=selected_value_14;
               next_selected_value_23=selected_value_15;
               selected_value_21=next_selected_value_21;
               selected_value_22=next_selected_value_22;
               selected_value_23=next_selected_value_23;
            }
         }
         else
         {
            drawBlocksOnCircles_value=drawBlocksOnCircles;
            if((drawBlocksOnCircles_value!=true))
            {
               drawBlocksOnCircles_value_2=drawBlocksOnCircles;
               if((drawBlocksOnCircles_value_2==false))
               {
                  local_values_3_value=local_values_3[(uint)bar_index];
                  if((local_values_3_value<=0.0))
                  {
                     local_values_5_value=local_values_5[(uint)bar_index];
                     if((local_values_5_value<=0.0))
                     {
                        local_values_7_value=local_values_7[(uint)bar_index];
                        if((local_values_7_value<=0.0))
                        {
                           next_selected_value_21=selected_value_13;
                           next_selected_value_22=selected_value_14;
                           next_selected_value_23=selected_value_15;
                           selected_value_21=next_selected_value_21;
                           selected_value_22=next_selected_value_22;
                           selected_value_23=next_selected_value_23;
                        }
                        else
                        {
                           next_selected_value_16=selected_value_13;
                           next_selected_value_17=selected_value_14;
                           next_selected_value_18=selected_value_15;
                           selected_value_16=next_selected_value_16;
                           selected_value_17=next_selected_value_17;
                           selected_value_18=next_selected_value_18;
                           if((selected_value_18==0))
                           {
                              indicator_buffer_1[(uint)bar_index]=1.0;
                              next_selected_value_19=selected_value_16;
                              next_selected_value_20=selected_value_17;
                              next_bar_index_2=selected_value_18;
                              selected_value_19=next_selected_value_19;
                              selected_value_20=next_selected_value_20;
                              bar_index_2=next_bar_index_2;
                           }
                           else
                           {
                              next_selected_value_19=selected_value_16;
                              next_selected_value_20=selected_value_17;
                              next_bar_index_2=selected_value_18;
                              selected_value_19=next_selected_value_19;
                              selected_value_20=next_selected_value_20;
                              bar_index_2=next_bar_index_2;
                           }
                           numberOfBlockToDisplay_value=numberOfBlockToDisplay;
                           if((bar_index_2==numberOfBlockToDisplay_value))
                           {
                              break;
                           }
                           else
                           {
                              global_array_1[(uint)bar_index_2]=bar_index;
                              computed_value_5=(int)((uint)bar_index_2+(uint)0x1);
                              next_selected_value_21=selected_value_19;
                              next_selected_value_22=selected_value_20;
                              next_selected_value_23=computed_value_5;
                              selected_value_21=next_selected_value_21;
                              selected_value_22=next_selected_value_22;
                              selected_value_23=next_selected_value_23;
                           }
                        }
                     }
                     else
                     {
                        next_selected_value_16=selected_value_13;
                        next_selected_value_17=selected_value_14;
                        next_selected_value_18=selected_value_15;
                        selected_value_16=next_selected_value_16;
                        selected_value_17=next_selected_value_17;
                        selected_value_18=next_selected_value_18;
                        if((selected_value_18==0))
                        {
                           indicator_buffer_1[(uint)bar_index]=1.0;
                           next_selected_value_19=selected_value_16;
                           next_selected_value_20=selected_value_17;
                           next_bar_index_2=selected_value_18;
                           selected_value_19=next_selected_value_19;
                           selected_value_20=next_selected_value_20;
                           bar_index_2=next_bar_index_2;
                        }
                        else
                        {
                           next_selected_value_19=selected_value_16;
                           next_selected_value_20=selected_value_17;
                           next_bar_index_2=selected_value_18;
                           selected_value_19=next_selected_value_19;
                           selected_value_20=next_selected_value_20;
                           bar_index_2=next_bar_index_2;
                        }
                        numberOfBlockToDisplay_value=numberOfBlockToDisplay;
                        if((bar_index_2==numberOfBlockToDisplay_value))
                        {
                           break;
                        }
                        else
                        {
                           global_array_1[(uint)bar_index_2]=bar_index;
                           computed_value_5=(int)((uint)bar_index_2+(uint)0x1);
                           next_selected_value_21=selected_value_19;
                           next_selected_value_22=selected_value_20;
                           next_selected_value_23=computed_value_5;
                           selected_value_21=next_selected_value_21;
                           selected_value_22=next_selected_value_22;
                           selected_value_23=next_selected_value_23;
                        }
                     }
                  }
                  else
                  {
                     next_selected_value_16=selected_value_13;
                     next_selected_value_17=selected_value_14;
                     next_selected_value_18=selected_value_15;
                     selected_value_16=next_selected_value_16;
                     selected_value_17=next_selected_value_17;
                     selected_value_18=next_selected_value_18;
                     if((selected_value_18==0))
                     {
                        indicator_buffer_1[(uint)bar_index]=1.0;
                        next_selected_value_19=selected_value_16;
                        next_selected_value_20=selected_value_17;
                        next_bar_index_2=selected_value_18;
                        selected_value_19=next_selected_value_19;
                        selected_value_20=next_selected_value_20;
                        bar_index_2=next_bar_index_2;
                     }
                     else
                     {
                        next_selected_value_19=selected_value_16;
                        next_selected_value_20=selected_value_17;
                        next_bar_index_2=selected_value_18;
                        selected_value_19=next_selected_value_19;
                        selected_value_20=next_selected_value_20;
                        bar_index_2=next_bar_index_2;
                     }
                     numberOfBlockToDisplay_value=numberOfBlockToDisplay;
                     if((bar_index_2==numberOfBlockToDisplay_value))
                     {
                        break;
                     }
                     else
                     {
                        global_array_1[(uint)bar_index_2]=bar_index;
                        computed_value_5=(int)((uint)bar_index_2+(uint)0x1);
                        next_selected_value_21=selected_value_19;
                        next_selected_value_22=selected_value_20;
                        next_selected_value_23=computed_value_5;
                        selected_value_21=next_selected_value_21;
                        selected_value_22=next_selected_value_22;
                        selected_value_23=next_selected_value_23;
                     }
                  }
               }
               else
               {
                  next_selected_value_21=selected_value_13;
                  next_selected_value_22=selected_value_14;
                  next_selected_value_23=selected_value_15;
                  selected_value_21=next_selected_value_21;
                  selected_value_22=next_selected_value_22;
                  selected_value_23=next_selected_value_23;
               }
            }
            else
            {
               next_selected_value_16=selected_value_13;
               next_selected_value_17=selected_value_14;
               next_selected_value_18=selected_value_15;
               selected_value_16=next_selected_value_16;
               selected_value_17=next_selected_value_17;
               selected_value_18=next_selected_value_18;
               if((selected_value_18==0))
               {
                  indicator_buffer_1[(uint)bar_index]=1.0;
                  next_selected_value_19=selected_value_16;
                  next_selected_value_20=selected_value_17;
                  next_bar_index_2=selected_value_18;
                  selected_value_19=next_selected_value_19;
                  selected_value_20=next_selected_value_20;
                  bar_index_2=next_bar_index_2;
               }
               else
               {
                  next_selected_value_19=selected_value_16;
                  next_selected_value_20=selected_value_17;
                  next_bar_index_2=selected_value_18;
                  selected_value_19=next_selected_value_19;
                  selected_value_20=next_selected_value_20;
                  bar_index_2=next_bar_index_2;
               }
               numberOfBlockToDisplay_value=numberOfBlockToDisplay;
               if((bar_index_2==numberOfBlockToDisplay_value))
               {
                  break;
               }
               else
               {
                  global_array_1[(uint)bar_index_2]=bar_index;
                  computed_value_5=(int)((uint)bar_index_2+(uint)0x1);
                  next_selected_value_21=selected_value_19;
                  next_selected_value_22=selected_value_20;
                  next_selected_value_23=computed_value_5;
                  selected_value_21=next_selected_value_21;
                  selected_value_22=next_selected_value_22;
                  selected_value_23=next_selected_value_23;
               }
            }
         }
         local_values_2_value=local_values_2[(uint)bar_index];
         if((local_values_2_value<=0.0))
         {
            drawBlocksOnCircles_value_4=drawBlocksOnCircles;
            if((drawBlocksOnCircles_value_4==false))
            {
               local_values_4_value=local_values_4[(uint)bar_index];
               if((local_values_4_value<=0.0))
               {
                  local_values_6_value=local_values_6[(uint)bar_index];
                  if((local_values_6_value<=0.0))
                  {
                     local_values_8_value=local_values_8[(uint)bar_index];
                     if((local_values_8_value==0.0))
                     {
                        next_selected_value_29=selected_value_21;
                        next_selected_value_30=selected_value_22;
                        next_selected_value_31=selected_value_23;
                        selected_value_29=next_selected_value_29;
                        selected_value_30=next_selected_value_30;
                        selected_value_31=next_selected_value_31;
                        computed_value_7=(int)((uint)bar_index+(uint)0x1);
                        if((computed_value_7<selected_value_29))
                        {
                           next_selected_value_13=selected_value_29;
                           next_selected_value_14=selected_value_30;
                           next_selected_value_15=selected_value_31;
                           next_bar_index=computed_value_7;
                           selected_value_13=next_selected_value_13;
                           selected_value_14=next_selected_value_14;
                           selected_value_15=next_selected_value_15;
                           bar_index=next_bar_index;
                           continue;
                        }
                        else
                        {
                           break;
                        }
                     }
                     else
                     {
                        next_selected_value_24=selected_value_21;
                        next_selected_value_25=selected_value_22;
                        next_selected_value_26=selected_value_23;
                        selected_value_24=next_selected_value_24;
                        selected_value_25=next_selected_value_25;
                        selected_value_26=next_selected_value_26;
                     }
                  }
                  else
                  {
                     next_selected_value_24=selected_value_21;
                     next_selected_value_25=selected_value_22;
                     next_selected_value_26=selected_value_23;
                     selected_value_24=next_selected_value_24;
                     selected_value_25=next_selected_value_25;
                     selected_value_26=next_selected_value_26;
                  }
               }
               else
               {
                  next_selected_value_24=selected_value_21;
                  next_selected_value_25=selected_value_22;
                  next_selected_value_26=selected_value_23;
                  selected_value_24=next_selected_value_24;
                  selected_value_25=next_selected_value_25;
                  selected_value_26=next_selected_value_26;
               }
            }
            else
            {
               next_selected_value_29=selected_value_21;
               next_selected_value_30=selected_value_22;
               next_selected_value_31=selected_value_23;
               selected_value_29=next_selected_value_29;
               selected_value_30=next_selected_value_30;
               selected_value_31=next_selected_value_31;
               computed_value_7=(int)((uint)bar_index+(uint)0x1);
               if((computed_value_7<selected_value_29))
               {
                  next_selected_value_13=selected_value_29;
                  next_selected_value_14=selected_value_30;
                  next_selected_value_15=selected_value_31;
                  next_bar_index=computed_value_7;
                  selected_value_13=next_selected_value_13;
                  selected_value_14=next_selected_value_14;
                  selected_value_15=next_selected_value_15;
                  bar_index=next_bar_index;
                  continue;
               }
               else
               {
                  break;
               }
            }
         }
         else
         {
            drawBlocksOnCircles_value_3=drawBlocksOnCircles;
            if((drawBlocksOnCircles_value_3!=true))
            {
               drawBlocksOnCircles_value_4=drawBlocksOnCircles;
               if((drawBlocksOnCircles_value_4==false))
               {
                  local_values_4_value=local_values_4[(uint)bar_index];
                  if((local_values_4_value<=0.0))
                  {
                     local_values_6_value=local_values_6[(uint)bar_index];
                     if((local_values_6_value<=0.0))
                     {
                        local_values_8_value=local_values_8[(uint)bar_index];
                        if((local_values_8_value==0.0))
                        {
                           next_selected_value_29=selected_value_21;
                           next_selected_value_30=selected_value_22;
                           next_selected_value_31=selected_value_23;
                           selected_value_29=next_selected_value_29;
                           selected_value_30=next_selected_value_30;
                           selected_value_31=next_selected_value_31;
                           computed_value_7=(int)((uint)bar_index+(uint)0x1);
                           if((computed_value_7<selected_value_29))
                           {
                              next_selected_value_13=selected_value_29;
                              next_selected_value_14=selected_value_30;
                              next_selected_value_15=selected_value_31;
                              next_bar_index=computed_value_7;
                              selected_value_13=next_selected_value_13;
                              selected_value_14=next_selected_value_14;
                              selected_value_15=next_selected_value_15;
                              bar_index=next_bar_index;
                              continue;
                           }
                           else
                           {
                              break;
                           }
                        }
                        else
                        {
                           next_selected_value_24=selected_value_21;
                           next_selected_value_25=selected_value_22;
                           next_selected_value_26=selected_value_23;
                           selected_value_24=next_selected_value_24;
                           selected_value_25=next_selected_value_25;
                           selected_value_26=next_selected_value_26;
                        }
                     }
                     else
                     {
                        next_selected_value_24=selected_value_21;
                        next_selected_value_25=selected_value_22;
                        next_selected_value_26=selected_value_23;
                        selected_value_24=next_selected_value_24;
                        selected_value_25=next_selected_value_25;
                        selected_value_26=next_selected_value_26;
                     }
                  }
                  else
                  {
                     next_selected_value_24=selected_value_21;
                     next_selected_value_25=selected_value_22;
                     next_selected_value_26=selected_value_23;
                     selected_value_24=next_selected_value_24;
                     selected_value_25=next_selected_value_25;
                     selected_value_26=next_selected_value_26;
                  }
               }
               else
               {
                  next_selected_value_29=selected_value_21;
                  next_selected_value_30=selected_value_22;
                  next_selected_value_31=selected_value_23;
                  selected_value_29=next_selected_value_29;
                  selected_value_30=next_selected_value_30;
                  selected_value_31=next_selected_value_31;
                  computed_value_7=(int)((uint)bar_index+(uint)0x1);
                  if((computed_value_7<selected_value_29))
                  {
                     next_selected_value_13=selected_value_29;
                     next_selected_value_14=selected_value_30;
                     next_selected_value_15=selected_value_31;
                     next_bar_index=computed_value_7;
                     selected_value_13=next_selected_value_13;
                     selected_value_14=next_selected_value_14;
                     selected_value_15=next_selected_value_15;
                     bar_index=next_bar_index;
                     continue;
                  }
                  else
                  {
                     break;
                  }
               }
            }
            else
            {
               next_selected_value_24=selected_value_21;
               next_selected_value_25=selected_value_22;
               next_selected_value_26=selected_value_23;
               selected_value_24=next_selected_value_24;
               selected_value_25=next_selected_value_25;
               selected_value_26=next_selected_value_26;
            }
         }
         if((selected_value_25==0))
         {
            indicator_buffer_0[(uint)bar_index]=1.0;
            next_selected_value_27=selected_value_24;
            next_bar_index_3=selected_value_25;
            next_selected_value_28=selected_value_26;
            selected_value_27=next_selected_value_27;
            bar_index_3=next_bar_index_3;
            selected_value_28=next_selected_value_28;
         }
         else
         {
            next_selected_value_27=selected_value_24;
            next_bar_index_3=selected_value_25;
            next_selected_value_28=selected_value_26;
            selected_value_27=next_selected_value_27;
            bar_index_3=next_bar_index_3;
            selected_value_28=next_selected_value_28;
         }
         numberOfBlockToDisplay_value_2=numberOfBlockToDisplay;
         if((bar_index_3==numberOfBlockToDisplay_value_2))
         {
            break;
         }
         else
         {
            global_array_2[(uint)bar_index_3]=bar_index;
            computed_value_6=(int)((uint)bar_index_3+(uint)0x1);
            next_selected_value_29=selected_value_27;
            next_selected_value_30=computed_value_6;
            next_selected_value_31=selected_value_28;
            selected_value_29=next_selected_value_29;
            selected_value_30=next_selected_value_30;
            selected_value_31=next_selected_value_31;
            computed_value_7=(int)((uint)bar_index+(uint)0x1);
            if((computed_value_7<selected_value_29))
            {
               next_selected_value_13=selected_value_29;
               next_selected_value_14=selected_value_30;
               next_selected_value_15=selected_value_31;
               next_bar_index=computed_value_7;
               selected_value_13=next_selected_value_13;
               selected_value_14=next_selected_value_14;
               selected_value_15=next_selected_value_15;
               bar_index=next_bar_index;
               continue;
            }
            else
            {
               break;
            }
         }
      }
   }
   return;
}

void UpdateText13()
{
   string local_text_1;
   string local_text_2;
   string local_text_3;
   string local_text_4;
   string local_text_5;
   string local_text_6;
   double received_value;
   double received_value_2;
   double received_value_3;
   int api_result=0;
   int bar_index=0;
   int global_array_1_value=0;
   int computed_value=0;
   int api_result_2=0;
   int selected_value=0;
   int selected_value_2=0;
   int selected_value_3=0;
   int selected_value_4=0;
   double property_value=0.0;
   double property_value_2=0.0;
   bool selected_value_5=false;
   int computed_value_2=0;
   int api_result_3=0;
   int selected_value_6=0;
   int selected_value_7=0;
   int selected_value_8=0;
   double property_value_3=0.0;
   bool wicksOfCandles_value=false;
   int computed_value_3=0;
   int computed_value_4=0;
   long computed_value_5=0;
   int computed_value_6=0;
   int computed_value_7=0;
   int api_result_4=0;
   int _LastError_value=0;
   double High_value=0.0;
   double selected_value_9=0.0;
   double selected_value_10=0.0;
   double selected_value_11=0.0;
   double selected_value_12=0.0;
   double selected_value_13=0.0;
   int selected_value_14=0;
   int selected_value_15=0;
   int selected_value_16=0;
   int computed_value_8=0;
   int computed_value_9=0;
   long computed_value_10=0;
   int computed_value_11=0;
   int computed_value_12=0;
   int api_result_5=0;
   int _LastError_value_2=0;
   double High_value_2=0.0;
   double selected_value_17=0.0;
   double selected_value_18=0.0;
   double selected_value_19=0.0;
   double selected_value_20=0.0;
   double selected_value_21=0.0;
   int selected_value_22=0;
   int selected_value_23=0;
   int selected_value_24=0;
   double selected_value_25=0.0;
   double selected_value_26=0.0;
   double selected_value_27=0.0;
   double selected_value_28=0.0;
   double selected_value_29=0.0;
   int selected_value_30=0;
   int selected_value_31=0;
   int selected_value_32=0;
   int computed_value_13=0;
   datetime api_result_6=0;
   uint computed_value_14=0;
   uint computed_value_15=0;
   int _Period_value=0;
   int _Period_value_2=0;
   double selected_value_33=0.0;
   double selected_value_34=0.0;
   double selected_value_35=0.0;
   double selected_value_36=0.0;
   int selected_value_37=0;
   datetime selected_value_38=0;
   int selected_value_39=0;
   int selected_value_40=0;
   int selected_value_41=0;
   double selected_value_42=0.0;
   double selected_value_43=0.0;
   double selected_value_44=0.0;
   double selected_value_45=0.0;
   int selected_value_46=0;
   datetime selected_value_47=0;
   int selected_value_48=0;
   int selected_value_49=0;
   int selected_value_50=0;
   double selected_value_51=0.0;
   double selected_value_52=0.0;
   double selected_value_53=0.0;
   double selected_value_54=0.0;
   int selected_value_55=0;
   datetime selected_value_56=0;
   int selected_value_57=0;
   int selected_value_58=0;
   int selected_value_59=0;
   double selected_value_60=0.0;
   double selected_value_61=0.0;
   double selected_value_62=0.0;
   double selected_value_63=0.0;
   int selected_value_64=0;
   datetime selected_value_65=0;
   int selected_value_66=0;
   int selected_value_67=0;
   int selected_value_68=0;
   double selected_value_69=0.0;
   double selected_value_70=0.0;
   double selected_value_71=0.0;
   double selected_value_72=0.0;
   int selected_value_73=0;
   datetime selected_value_74=0;
   int selected_value_75=0;
   int selected_value_76=0;
   int selected_value_77=0;
   double selected_value_78=0.0;
   double selected_value_79=0.0;
   double selected_value_80=0.0;
   double selected_value_81=0.0;
   int selected_value_82=0;
   datetime selected_value_83=0;
   int selected_value_84=0;
   int selected_value_85=0;
   int selected_value_86=0;
   double selected_value_87=0.0;
   double selected_value_88=0.0;
   double selected_value_89=0.0;
   double selected_value_90=0.0;
   int selected_value_91=0;
   datetime selected_value_92=0;
   int selected_value_93=0;
   int selected_value_94=0;
   int selected_value_95=0;
   double selected_value_96=0.0;
   double selected_value_97=0.0;
   double selected_value_98=0.0;
   double selected_value_99=0.0;
   int selected_value_100=0;
   datetime selected_value_101=0;
   int selected_value_102=0;
   int selected_value_103=0;
   int selected_value_104=0;
   uint computed_value_16=0;
   double selected_value_105=0.0;
   double selected_value_106=0.0;
   double selected_value_107=0.0;
   double selected_value_108=0.0;
   int selected_value_109=0;
   datetime selected_value_110=0;
   int selected_value_111=0;
   int selected_value_112=0;
   long computed_value_17=0;
   int global_state_20_value=0;
   color rectangleBottom_value=0;
   datetime api_result_7=0;
   int _Period_value_3=0;
   int _Period_value_4=0;
   long computed_value_18=0;
   long computed_value_19=0;
   double selected_value_113=0.0;
   double selected_value_114=0.0;
   datetime selected_value_115=0;
   double selected_value_116=0.0;
   double selected_value_117=0.0;
   long selected_value_118=0;
   long selected_value_119=0;
   int selected_value_120=0;
   int selected_value_121=0;
   int selected_value_122=0;
   bool selected_value_123=false;
   bool selected_value_124=false;
   bool selected_value_125=false;
   int selected_value_126=0;
   datetime selected_value_127=0;
   int selected_value_128=0;
   int selected_value_129=0;
   double selected_value_130=0.0;
   double selected_value_131=0.0;
   datetime selected_value_132=0;
   double selected_value_133=0.0;
   double selected_value_134=0.0;
   long selected_value_135=0;
   long selected_value_136=0;
   int selected_value_137=0;
   int selected_value_138=0;
   int selected_value_139=0;
   bool selected_value_140=false;
   bool selected_value_141=false;
   bool selected_value_142=false;
   int selected_value_143=0;
   datetime selected_value_144=0;
   int selected_value_145=0;
   int selected_value_146=0;
   double selected_value_147=0.0;
   double selected_value_148=0.0;
   datetime selected_value_149=0;
   double selected_value_150=0.0;
   double selected_value_151=0.0;
   long selected_value_152=0;
   long selected_value_153=0;
   int selected_value_154=0;
   int selected_value_155=0;
   int selected_value_156=0;
   bool selected_value_157=false;
   bool selected_value_158=false;
   bool selected_value_159=false;
   int selected_value_160=0;
   datetime selected_value_161=0;
   int selected_value_162=0;
   int selected_value_163=0;
   double selected_value_164=0.0;
   double selected_value_165=0.0;
   datetime selected_value_166=0;
   double selected_value_167=0.0;
   double selected_value_168=0.0;
   long selected_value_169=0;
   long selected_value_170=0;
   int selected_value_171=0;
   int selected_value_172=0;
   int selected_value_173=0;
   bool selected_value_174=false;
   bool selected_value_175=false;
   bool selected_value_176=false;
   int selected_value_177=0;
   datetime selected_value_178=0;
   int selected_value_179=0;
   int selected_value_180=0;
   double selected_value_181=0.0;
   double selected_value_182=0.0;
   datetime selected_value_183=0;
   double selected_value_184=0.0;
   double selected_value_185=0.0;
   long selected_value_186=0;
   long selected_value_187=0;
   int selected_value_188=0;
   int selected_value_189=0;
   int selected_value_190=0;
   bool selected_value_191=false;
   bool selected_value_192=false;
   bool selected_value_193=false;
   int selected_value_194=0;
   datetime selected_value_195=0;
   int selected_value_196=0;
   int selected_value_197=0;
   double selected_value_198=0.0;
   double selected_value_199=0.0;
   datetime selected_value_200=0;
   double selected_value_201=0.0;
   double selected_value_202=0.0;
   long selected_value_203=0;
   long selected_value_204=0;
   int selected_value_205=0;
   int selected_value_206=0;
   int selected_value_207=0;
   bool selected_value_208=false;
   bool selected_value_209=false;
   bool selected_value_210=false;
   int selected_value_211=0;
   datetime selected_value_212=0;
   int selected_value_213=0;
   int selected_value_214=0;
   double selected_value_215=0.0;
   double selected_value_216=0.0;
   datetime selected_value_217=0;
   double selected_value_218=0.0;
   double selected_value_219=0.0;
   long selected_value_220=0;
   long selected_value_221=0;
   int selected_value_222=0;
   int selected_value_223=0;
   int selected_value_224=0;
   bool selected_value_225=false;
   bool selected_value_226=false;
   bool selected_value_227=false;
   int selected_value_228=0;
   datetime selected_value_229=0;
   int selected_value_230=0;
   int selected_value_231=0;
   double selected_value_232=0.0;
   double selected_value_233=0.0;
   datetime selected_value_234=0;
   double selected_value_235=0.0;
   double selected_value_236=0.0;
   long selected_value_237=0;
   long selected_value_238=0;
   int selected_value_239=0;
   int selected_value_240=0;
   int selected_value_241=0;
   bool selected_value_242=false;
   bool selected_value_243=false;
   bool selected_value_244=false;
   int selected_value_245=0;
   datetime selected_value_246=0;
   int selected_value_247=0;
   int selected_value_248=0;
   uint computed_value_20=0;
   double selected_value_249=0.0;
   double selected_value_250=0.0;
   datetime selected_value_251=0;
   double selected_value_252=0.0;
   double selected_value_253=0.0;
   long selected_value_254=0;
   long selected_value_255=0;
   int selected_value_256=0;
   int selected_value_257=0;
   int selected_value_258=0;
   bool selected_value_259=false;
   bool selected_value_260=false;
   bool selected_value_261=false;
   int selected_value_262=0;
   datetime selected_value_263=0;
   int selected_value_264=0;
   long computed_value_21=0;
   bool api_result_8=false;
   long computed_value_22=0;
   int computed_value_23=0;
   long computed_value_24=0;
   int computed_value_25=0;
   long computed_value_26=0;
   int computed_value_27=0;
   long computed_value_28=0;
   int computed_value_29=0;
   long computed_value_30=0;
   long api_result_9=0;
   int _LastError_value_3=0;
   double selected_value_265=0.0;
   double selected_value_266=0.0;
   int selected_value_267=0;
   int selected_value_268=0;
   int selected_value_269=0;
   bool global_state_33_value=false;
   double computed_value_31=0.0;
   double computed_value_32=0.0;
   datetime api_result_10=0;
   int global_state_20_value_2=0;
   color rectangleBottom_value_2=0;
   datetime api_result_11=0;
   int _Period_value_5=0;
   int _Period_value_6=0;
   long computed_value_33=0;
   long computed_value_34=0;
   double selected_value_270=0.0;
   double selected_value_271=0.0;
   datetime selected_value_272=0;
   double selected_value_273=0.0;
   double selected_value_274=0.0;
   long selected_value_275=0;
   long selected_value_276=0;
   int selected_value_277=0;
   int selected_value_278=0;
   bool selected_value_279=false;
   bool selected_value_280=false;
   bool selected_value_281=false;
   int selected_value_282=0;
   datetime selected_value_283=0;
   int selected_value_284=0;
   int selected_value_285=0;
   double selected_value_286=0.0;
   double selected_value_287=0.0;
   datetime selected_value_288=0;
   double selected_value_289=0.0;
   double selected_value_290=0.0;
   long selected_value_291=0;
   long selected_value_292=0;
   int selected_value_293=0;
   int selected_value_294=0;
   bool selected_value_295=false;
   bool selected_value_296=false;
   bool selected_value_297=false;
   int selected_value_298=0;
   datetime selected_value_299=0;
   int selected_value_300=0;
   int selected_value_301=0;
   double selected_value_302=0.0;
   double selected_value_303=0.0;
   datetime selected_value_304=0;
   double selected_value_305=0.0;
   double selected_value_306=0.0;
   long selected_value_307=0;
   long selected_value_308=0;
   int selected_value_309=0;
   int selected_value_310=0;
   bool selected_value_311=false;
   bool selected_value_312=false;
   bool selected_value_313=false;
   int selected_value_314=0;
   datetime selected_value_315=0;
   int selected_value_316=0;
   int selected_value_317=0;
   double selected_value_318=0.0;
   double selected_value_319=0.0;
   datetime selected_value_320=0;
   double selected_value_321=0.0;
   double selected_value_322=0.0;
   long selected_value_323=0;
   long selected_value_324=0;
   int selected_value_325=0;
   int selected_value_326=0;
   bool selected_value_327=false;
   bool selected_value_328=false;
   bool selected_value_329=false;
   int selected_value_330=0;
   datetime selected_value_331=0;
   int selected_value_332=0;
   int selected_value_333=0;
   double selected_value_334=0.0;
   double selected_value_335=0.0;
   datetime selected_value_336=0;
   double selected_value_337=0.0;
   double selected_value_338=0.0;
   long selected_value_339=0;
   long selected_value_340=0;
   int selected_value_341=0;
   int selected_value_342=0;
   bool selected_value_343=false;
   bool selected_value_344=false;
   bool selected_value_345=false;
   int selected_value_346=0;
   datetime selected_value_347=0;
   int selected_value_348=0;
   int selected_value_349=0;
   double selected_value_350=0.0;
   double selected_value_351=0.0;
   datetime selected_value_352=0;
   double selected_value_353=0.0;
   double selected_value_354=0.0;
   long selected_value_355=0;
   long selected_value_356=0;
   int selected_value_357=0;
   int selected_value_358=0;
   bool selected_value_359=false;
   bool selected_value_360=false;
   bool selected_value_361=false;
   int selected_value_362=0;
   datetime selected_value_363=0;
   int selected_value_364=0;
   int selected_value_365=0;
   double selected_value_366=0.0;
   double selected_value_367=0.0;
   datetime selected_value_368=0;
   double selected_value_369=0.0;
   double selected_value_370=0.0;
   long selected_value_371=0;
   long selected_value_372=0;
   int selected_value_373=0;
   int selected_value_374=0;
   bool selected_value_375=false;
   bool selected_value_376=false;
   bool selected_value_377=false;
   int selected_value_378=0;
   datetime selected_value_379=0;
   int selected_value_380=0;
   int selected_value_381=0;
   double selected_value_382=0.0;
   double selected_value_383=0.0;
   datetime selected_value_384=0;
   double selected_value_385=0.0;
   double selected_value_386=0.0;
   long selected_value_387=0;
   long selected_value_388=0;
   int selected_value_389=0;
   int selected_value_390=0;
   bool selected_value_391=false;
   bool selected_value_392=false;
   bool selected_value_393=false;
   int selected_value_394=0;
   datetime selected_value_395=0;
   int selected_value_396=0;
   int selected_value_397=0;
   uint computed_value_35=0;
   double selected_value_398=0.0;
   double selected_value_399=0.0;
   datetime selected_value_400=0;
   double selected_value_401=0.0;
   double selected_value_402=0.0;
   long selected_value_403=0;
   long selected_value_404=0;
   int selected_value_405=0;
   int selected_value_406=0;
   bool selected_value_407=false;
   bool selected_value_408=false;
   bool selected_value_409=false;
   int selected_value_410=0;
   datetime selected_value_411=0;
   int selected_value_412=0;
   long computed_value_36=0;
   bool api_result_12=false;
   long computed_value_37=0;
   int computed_value_38=0;
   long computed_value_39=0;
   int computed_value_40=0;
   long computed_value_41=0;
   int computed_value_42=0;
   long computed_value_43=0;
   int computed_value_44=0;
   long computed_value_45=0;
   long api_result_13=0;
   int _LastError_value_4=0;
   double selected_value_413=0.0;
   double selected_value_414=0.0;
   int selected_value_415=0;
   int selected_value_416=0;
   bool global_state_35_value=false;
   double computed_value_46=0.0;
   int selected_value_417=0;
   int computed_value_47=0;
   int api_result_14=0;
   int next_bar_index=0;
   int next_selected_value=0;
   int next_selected_value_2=0;
   int next_selected_value_3=0;
   int next_selected_value_4=0;
   bool next_selected_value_5=false;
   int next_selected_value_6=0;
   int next_selected_value_7=0;
   int next_selected_value_8=0;
   double next_selected_value_9=0.0;
   double next_selected_value_10=0.0;
   double next_selected_value_11=0.0;
   double next_selected_value_12=0.0;
   double next_selected_value_13=0.0;
   int next_selected_value_14=0;
   int next_selected_value_15=0;
   int next_selected_value_16=0;
   double next_selected_value_17=0.0;
   double next_selected_value_18=0.0;
   double next_selected_value_19=0.0;
   double next_selected_value_20=0.0;
   double next_selected_value_21=0.0;
   int next_selected_value_22=0;
   int next_selected_value_23=0;
   int next_selected_value_24=0;
   double next_selected_value_25=0.0;
   double next_selected_value_26=0.0;
   double next_selected_value_27=0.0;
   double next_selected_value_28=0.0;
   double next_selected_value_29=0.0;
   int next_selected_value_30=0;
   int next_selected_value_31=0;
   int next_selected_value_32=0;
   double next_selected_value_33=0.0;
   double next_selected_value_34=0.0;
   double next_selected_value_35=0.0;
   double next_selected_value_36=0.0;
   int next_selected_value_37=0;
   datetime next_selected_value_38=0;
   int next_selected_value_39=0;
   int next_selected_value_40=0;
   int next_selected_value_41=0;
   double next_selected_value_42=0.0;
   double next_selected_value_43=0.0;
   double next_selected_value_44=0.0;
   double next_selected_value_45=0.0;
   int next_selected_value_46=0;
   datetime next_selected_value_47=0;
   int next_selected_value_48=0;
   int next_selected_value_49=0;
   int next_selected_value_50=0;
   double next_selected_value_51=0.0;
   double next_selected_value_52=0.0;
   double next_selected_value_53=0.0;
   double next_selected_value_54=0.0;
   int next_selected_value_55=0;
   datetime next_selected_value_56=0;
   int next_selected_value_57=0;
   int next_selected_value_58=0;
   int next_selected_value_59=0;
   double next_selected_value_60=0.0;
   double next_selected_value_61=0.0;
   double next_selected_value_62=0.0;
   double next_selected_value_63=0.0;
   int next_selected_value_64=0;
   datetime next_selected_value_65=0;
   int next_selected_value_66=0;
   int next_selected_value_67=0;
   int next_selected_value_68=0;
   double next_selected_value_69=0.0;
   double next_selected_value_70=0.0;
   double next_selected_value_71=0.0;
   double next_selected_value_72=0.0;
   int next_selected_value_73=0;
   datetime next_selected_value_74=0;
   int next_selected_value_75=0;
   int next_selected_value_76=0;
   int next_selected_value_77=0;
   double next_selected_value_78=0.0;
   double next_selected_value_79=0.0;
   double next_selected_value_80=0.0;
   double next_selected_value_81=0.0;
   int next_selected_value_82=0;
   datetime next_selected_value_83=0;
   int next_selected_value_84=0;
   int next_selected_value_85=0;
   int next_selected_value_86=0;
   double next_selected_value_87=0.0;
   double next_selected_value_88=0.0;
   double next_selected_value_89=0.0;
   double next_selected_value_90=0.0;
   int next_selected_value_91=0;
   datetime next_selected_value_92=0;
   int next_selected_value_93=0;
   int next_selected_value_94=0;
   int next_selected_value_95=0;
   double next_selected_value_96=0.0;
   double next_selected_value_97=0.0;
   double next_selected_value_98=0.0;
   double next_selected_value_99=0.0;
   int next_selected_value_100=0;
   datetime next_selected_value_101=0;
   int next_selected_value_102=0;
   int next_selected_value_103=0;
   int next_selected_value_104=0;
   double next_selected_value_105=0.0;
   double next_selected_value_106=0.0;
   double next_selected_value_107=0.0;
   double next_selected_value_108=0.0;
   int next_selected_value_109=0;
   datetime next_selected_value_110=0;
   int next_selected_value_111=0;
   int next_selected_value_112=0;
   double next_selected_value_113=0.0;
   double next_selected_value_114=0.0;
   datetime next_selected_value_115=0;
   double next_selected_value_116=0.0;
   double next_selected_value_117=0.0;
   long next_selected_value_118=0;
   long next_selected_value_119=0;
   int next_selected_value_120=0;
   int next_selected_value_121=0;
   int next_selected_value_122=0;
   bool next_selected_value_123=false;
   bool next_selected_value_124=false;
   bool next_selected_value_125=false;
   int next_selected_value_126=0;
   datetime next_selected_value_127=0;
   int next_selected_value_128=0;
   int next_selected_value_129=0;
   double next_selected_value_130=0.0;
   double next_selected_value_131=0.0;
   datetime next_selected_value_132=0;
   double next_selected_value_133=0.0;
   double next_selected_value_134=0.0;
   long next_selected_value_135=0;
   long next_selected_value_136=0;
   int next_selected_value_137=0;
   int next_selected_value_138=0;
   int next_selected_value_139=0;
   bool next_selected_value_140=false;
   bool next_selected_value_141=false;
   bool next_selected_value_142=false;
   int next_selected_value_143=0;
   datetime next_selected_value_144=0;
   int next_selected_value_145=0;
   int next_selected_value_146=0;
   double next_selected_value_147=0.0;
   double next_selected_value_148=0.0;
   datetime next_selected_value_149=0;
   double next_selected_value_150=0.0;
   double next_selected_value_151=0.0;
   long next_selected_value_152=0;
   long next_selected_value_153=0;
   int next_selected_value_154=0;
   int next_selected_value_155=0;
   int next_selected_value_156=0;
   bool next_selected_value_157=false;
   bool next_selected_value_158=false;
   bool next_selected_value_159=false;
   int next_selected_value_160=0;
   datetime next_selected_value_161=0;
   int next_selected_value_162=0;
   int next_selected_value_163=0;
   double next_selected_value_164=0.0;
   double next_selected_value_165=0.0;
   datetime next_selected_value_166=0;
   double next_selected_value_167=0.0;
   double next_selected_value_168=0.0;
   long next_selected_value_169=0;
   long next_selected_value_170=0;
   int next_selected_value_171=0;
   int next_selected_value_172=0;
   int next_selected_value_173=0;
   bool next_selected_value_174=false;
   bool next_selected_value_175=false;
   bool next_selected_value_176=false;
   int next_selected_value_177=0;
   datetime next_selected_value_178=0;
   int next_selected_value_179=0;
   int next_selected_value_180=0;
   double next_selected_value_181=0.0;
   double next_selected_value_182=0.0;
   datetime next_selected_value_183=0;
   double next_selected_value_184=0.0;
   double next_selected_value_185=0.0;
   long next_selected_value_186=0;
   long next_selected_value_187=0;
   int next_selected_value_188=0;
   int next_selected_value_189=0;
   int next_selected_value_190=0;
   bool next_selected_value_191=false;
   bool next_selected_value_192=false;
   bool next_selected_value_193=false;
   int next_selected_value_194=0;
   datetime next_selected_value_195=0;
   int next_selected_value_196=0;
   int next_selected_value_197=0;
   double next_selected_value_198=0.0;
   double next_selected_value_199=0.0;
   datetime next_selected_value_200=0;
   double next_selected_value_201=0.0;
   double next_selected_value_202=0.0;
   long next_selected_value_203=0;
   long next_selected_value_204=0;
   int next_selected_value_205=0;
   int next_selected_value_206=0;
   int next_selected_value_207=0;
   bool next_selected_value_208=false;
   bool next_selected_value_209=false;
   bool next_selected_value_210=false;
   int next_selected_value_211=0;
   datetime next_selected_value_212=0;
   int next_selected_value_213=0;
   int next_selected_value_214=0;
   double next_selected_value_215=0.0;
   double next_selected_value_216=0.0;
   datetime next_selected_value_217=0;
   double next_selected_value_218=0.0;
   double next_selected_value_219=0.0;
   long next_selected_value_220=0;
   long next_selected_value_221=0;
   int next_selected_value_222=0;
   int next_selected_value_223=0;
   int next_selected_value_224=0;
   bool next_selected_value_225=false;
   bool next_selected_value_226=false;
   bool next_selected_value_227=false;
   int next_selected_value_228=0;
   datetime next_selected_value_229=0;
   int next_selected_value_230=0;
   int next_selected_value_231=0;
   double next_selected_value_232=0.0;
   double next_selected_value_233=0.0;
   datetime next_selected_value_234=0;
   double next_selected_value_235=0.0;
   double next_selected_value_236=0.0;
   long next_selected_value_237=0;
   long next_selected_value_238=0;
   int next_selected_value_239=0;
   int next_selected_value_240=0;
   int next_selected_value_241=0;
   bool next_selected_value_242=false;
   bool next_selected_value_243=false;
   bool next_selected_value_244=false;
   int next_selected_value_245=0;
   datetime next_selected_value_246=0;
   int next_selected_value_247=0;
   int next_selected_value_248=0;
   double next_selected_value_249=0.0;
   double next_selected_value_250=0.0;
   datetime next_selected_value_251=0;
   double next_selected_value_252=0.0;
   double next_selected_value_253=0.0;
   long next_selected_value_254=0;
   long next_selected_value_255=0;
   int next_selected_value_256=0;
   int next_selected_value_257=0;
   int next_selected_value_258=0;
   bool next_selected_value_259=false;
   bool next_selected_value_260=false;
   bool next_selected_value_261=false;
   int next_selected_value_262=0;
   datetime next_selected_value_263=0;
   int next_selected_value_264=0;
   double next_selected_value_265=0.0;
   double next_selected_value_266=0.0;
   int next_selected_value_267=0;
   int next_selected_value_268=0;
   int next_selected_value_269=0;
   double next_selected_value_270=0.0;
   double next_selected_value_271=0.0;
   datetime next_selected_value_272=0;
   double next_selected_value_273=0.0;
   double next_selected_value_274=0.0;
   long next_selected_value_275=0;
   long next_selected_value_276=0;
   int next_selected_value_277=0;
   int next_selected_value_278=0;
   bool next_selected_value_279=false;
   bool next_selected_value_280=false;
   bool next_selected_value_281=false;
   int next_selected_value_282=0;
   datetime next_selected_value_283=0;
   int next_selected_value_284=0;
   int next_selected_value_285=0;
   double next_selected_value_286=0.0;
   double next_selected_value_287=0.0;
   datetime next_selected_value_288=0;
   double next_selected_value_289=0.0;
   double next_selected_value_290=0.0;
   long next_selected_value_291=0;
   long next_selected_value_292=0;
   int next_selected_value_293=0;
   int next_selected_value_294=0;
   bool next_selected_value_295=false;
   bool next_selected_value_296=false;
   bool next_selected_value_297=false;
   int next_selected_value_298=0;
   datetime next_selected_value_299=0;
   int next_selected_value_300=0;
   int next_selected_value_301=0;
   double next_selected_value_302=0.0;
   double next_selected_value_303=0.0;
   datetime next_selected_value_304=0;
   double next_selected_value_305=0.0;
   double next_selected_value_306=0.0;
   long next_selected_value_307=0;
   long next_selected_value_308=0;
   int next_selected_value_309=0;
   int next_selected_value_310=0;
   bool next_selected_value_311=false;
   bool next_selected_value_312=false;
   bool next_selected_value_313=false;
   int next_selected_value_314=0;
   datetime next_selected_value_315=0;
   int next_selected_value_316=0;
   int next_selected_value_317=0;
   double next_selected_value_318=0.0;
   double next_selected_value_319=0.0;
   datetime next_selected_value_320=0;
   double next_selected_value_321=0.0;
   double next_selected_value_322=0.0;
   long next_selected_value_323=0;
   long next_selected_value_324=0;
   int next_selected_value_325=0;
   int next_selected_value_326=0;
   bool next_selected_value_327=false;
   bool next_selected_value_328=false;
   bool next_selected_value_329=false;
   int next_selected_value_330=0;
   datetime next_selected_value_331=0;
   int next_selected_value_332=0;
   int next_selected_value_333=0;
   double next_selected_value_334=0.0;
   double next_selected_value_335=0.0;
   datetime next_selected_value_336=0;
   double next_selected_value_337=0.0;
   double next_selected_value_338=0.0;
   long next_selected_value_339=0;
   long next_selected_value_340=0;
   int next_selected_value_341=0;
   int next_selected_value_342=0;
   bool next_selected_value_343=false;
   bool next_selected_value_344=false;
   bool next_selected_value_345=false;
   int next_selected_value_346=0;
   datetime next_selected_value_347=0;
   int next_selected_value_348=0;
   int next_selected_value_349=0;
   double next_selected_value_350=0.0;
   double next_selected_value_351=0.0;
   datetime next_selected_value_352=0;
   double next_selected_value_353=0.0;
   double next_selected_value_354=0.0;
   long next_selected_value_355=0;
   long next_selected_value_356=0;
   int next_selected_value_357=0;
   int next_selected_value_358=0;
   bool next_selected_value_359=false;
   bool next_selected_value_360=false;
   bool next_selected_value_361=false;
   int next_selected_value_362=0;
   datetime next_selected_value_363=0;
   int next_selected_value_364=0;
   int next_selected_value_365=0;
   double next_selected_value_366=0.0;
   double next_selected_value_367=0.0;
   datetime next_selected_value_368=0;
   double next_selected_value_369=0.0;
   double next_selected_value_370=0.0;
   long next_selected_value_371=0;
   long next_selected_value_372=0;
   int next_selected_value_373=0;
   int next_selected_value_374=0;
   bool next_selected_value_375=false;
   bool next_selected_value_376=false;
   bool next_selected_value_377=false;
   int next_selected_value_378=0;
   datetime next_selected_value_379=0;
   int next_selected_value_380=0;
   int next_selected_value_381=0;
   double next_selected_value_382=0.0;
   double next_selected_value_383=0.0;
   datetime next_selected_value_384=0;
   double next_selected_value_385=0.0;
   double next_selected_value_386=0.0;
   long next_selected_value_387=0;
   long next_selected_value_388=0;
   int next_selected_value_389=0;
   int next_selected_value_390=0;
   bool next_selected_value_391=false;
   bool next_selected_value_392=false;
   bool next_selected_value_393=false;
   int next_selected_value_394=0;
   datetime next_selected_value_395=0;
   int next_selected_value_396=0;
   int next_selected_value_397=0;
   double next_selected_value_398=0.0;
   double next_selected_value_399=0.0;
   datetime next_selected_value_400=0;
   double next_selected_value_401=0.0;
   double next_selected_value_402=0.0;
   long next_selected_value_403=0;
   long next_selected_value_404=0;
   int next_selected_value_405=0;
   int next_selected_value_406=0;
   bool next_selected_value_407=false;
   bool next_selected_value_408=false;
   bool next_selected_value_409=false;
   int next_selected_value_410=0;
   datetime next_selected_value_411=0;
   int next_selected_value_412=0;
   double next_selected_value_413=0.0;
   double next_selected_value_414=0.0;
   int next_selected_value_415=0;
   int next_selected_value_416=0;
   int next_selected_value_417=0;
   local_text_1=NULL;
   local_text_2=NULL;
   local_text_3=NULL;
   local_text_4=NULL;
   local_text_5=NULL;
   local_text_6=NULL;
   api_result=ArraySize(global_array_1);
   if((0<api_result))
   {
      next_bar_index=0;
      bar_index=next_bar_index;
      while(true)
      {
         global_array_1_value=global_array_1[(uint)bar_index];
         if((global_array_1_value!=-1))
         {
            computed_value=(int)((uint)global_array_1_value+(uint)0x1);
            api_result_2=iBars(_Symbol, 0);
            if((computed_value<api_result_2))
            {
               next_selected_value=global_array_1_value;
               next_selected_value_2=bar_index;
               next_selected_value_3=0;
               next_selected_value_4=computed_value;
               selected_value=next_selected_value;
               selected_value_2=next_selected_value_2;
               selected_value_3=next_selected_value_3;
               selected_value_4=next_selected_value_4;
               while(true)
               {
                  received_value=iClose(_Symbol, 0, selected_value_4);
                  property_value=received_value;
                  received_value_2=iOpen(_Symbol, 0, selected_value_4);
                  property_value_2=received_value_2;
                  if((property_value_2<property_value))
                  {
                     next_selected_value_5=true;
                     selected_value_5=next_selected_value_5;
                  }
                  else
                  {
                     next_selected_value_5=false;
                     selected_value_5=next_selected_value_5;
                  }
                  if((selected_value_5==true))
                  {
                     next_selected_value_6=selected_value;
                     next_selected_value_7=selected_value_2;
                     next_selected_value_8=selected_value_4;
                     selected_value_6=next_selected_value_6;
                     selected_value_7=next_selected_value_7;
                     selected_value_8=next_selected_value_8;
                     break;
                  }
                  else
                  {
                     computed_value_2=(int)((uint)selected_value_4+(uint)0x1);
                     api_result_3=iBars(_Symbol, 0);
                     if((computed_value_2<api_result_3))
                     {
                        next_selected_value=selected_value;
                        next_selected_value_2=selected_value_2;
                        next_selected_value_3=selected_value_3;
                        next_selected_value_4=computed_value_2;
                        selected_value=next_selected_value;
                        selected_value_2=next_selected_value_2;
                        selected_value_3=next_selected_value_3;
                        selected_value_4=next_selected_value_4;
                        continue;
                     }
                     else
                     {
                        next_selected_value_6=selected_value;
                        next_selected_value_7=selected_value_2;
                        next_selected_value_8=selected_value_3;
                        selected_value_6=next_selected_value_6;
                        selected_value_7=next_selected_value_7;
                        selected_value_8=next_selected_value_8;
                        break;
                     }
                  }
               }
            }
            else
            {
               next_selected_value_6=global_array_1_value;
               next_selected_value_7=bar_index;
               next_selected_value_8=0;
               selected_value_6=next_selected_value_6;
               selected_value_7=next_selected_value_7;
               selected_value_8=next_selected_value_8;
            }
            received_value_3=iOpen(_Symbol, 0, selected_value_8);
            property_value_3=received_value_3;
            wicksOfCandles_value=wicksOfCandles;
            if((wicksOfCandles_value==false))
            {
               computed_value_9=(int)((uint)selected_value_8-(uint)selected_value_6);
               computed_value_10=((long)computed_value_9<0 ? -((long)computed_value_9) : (long)computed_value_9);
               computed_value_11=(int)((uint)((ulong)computed_value_10>>0));
               computed_value_12=(int)((uint)computed_value_11+(uint)0x1);
               api_result_5=iHighest(NULL, 0, 2, computed_value_12, selected_value_6);
               if((api_result_5==-1))
               {
                  _LastError_value_2=_LastError;
                  ResetLastError();
                  PrintFormat("Error in call iHighest. Error code=%d", _LastError_value_2);
                  next_selected_value_17=property_value_3;
                  next_selected_value_18=0.0;
                  next_selected_value_19=property_value_3;
                  next_selected_value_20=0.0;
                  next_selected_value_21=0.0;
                  next_selected_value_22=selected_value_8;
                  next_selected_value_23=selected_value_6;
                  next_selected_value_24=selected_value_7;
                  selected_value_17=next_selected_value_17;
                  selected_value_18=next_selected_value_18;
                  selected_value_19=next_selected_value_19;
                  selected_value_20=next_selected_value_20;
                  selected_value_21=next_selected_value_21;
                  selected_value_22=next_selected_value_22;
                  selected_value_23=next_selected_value_23;
                  selected_value_24=next_selected_value_24;
               }
               else
               {
                  High_value_2=High[(uint)api_result_5];
                  next_selected_value_17=property_value_3;
                  next_selected_value_18=High_value_2;
                  next_selected_value_19=property_value_3;
                  next_selected_value_20=High_value_2;
                  next_selected_value_21=High_value_2;
                  next_selected_value_22=selected_value_8;
                  next_selected_value_23=selected_value_6;
                  next_selected_value_24=selected_value_7;
                  selected_value_17=next_selected_value_17;
                  selected_value_18=next_selected_value_18;
                  selected_value_19=next_selected_value_19;
                  selected_value_20=next_selected_value_20;
                  selected_value_21=next_selected_value_21;
                  selected_value_22=next_selected_value_22;
                  selected_value_23=next_selected_value_23;
                  selected_value_24=next_selected_value_24;
               }
               next_selected_value_25=selected_value_17;
               next_selected_value_26=selected_value_18;
               next_selected_value_27=selected_value_19;
               next_selected_value_28=selected_value_20;
               next_selected_value_29=selected_value_21;
               next_selected_value_30=selected_value_22;
               next_selected_value_31=selected_value_23;
               next_selected_value_32=selected_value_24;
               selected_value_25=next_selected_value_25;
               selected_value_26=next_selected_value_26;
               selected_value_27=next_selected_value_27;
               selected_value_28=next_selected_value_28;
               selected_value_29=next_selected_value_29;
               selected_value_30=next_selected_value_30;
               selected_value_31=next_selected_value_31;
               selected_value_32=next_selected_value_32;
            }
            else
            {
               computed_value_3=(int)((uint)selected_value_8+(uint)0x1);
               computed_value_4=(int)((uint)computed_value_3-(uint)selected_value_6);
               computed_value_5=((long)computed_value_4<0 ? -((long)computed_value_4) : (long)computed_value_4);
               computed_value_6=(int)((uint)((ulong)computed_value_5>>0));
               computed_value_7=(int)((uint)computed_value_6+(uint)0x1);
               api_result_4=iHighest(NULL, 0, 2, computed_value_7, selected_value_6);
               if((api_result_4==-1))
               {
                  _LastError_value=_LastError;
                  ResetLastError();
                  PrintFormat("Error in call iHighest. Error code=%d", _LastError_value);
                  next_selected_value_9=property_value_3;
                  next_selected_value_10=0.0;
                  next_selected_value_11=property_value_3;
                  next_selected_value_12=0.0;
                  next_selected_value_13=0.0;
                  next_selected_value_14=selected_value_8;
                  next_selected_value_15=selected_value_6;
                  next_selected_value_16=selected_value_7;
                  selected_value_9=next_selected_value_9;
                  selected_value_10=next_selected_value_10;
                  selected_value_11=next_selected_value_11;
                  selected_value_12=next_selected_value_12;
                  selected_value_13=next_selected_value_13;
                  selected_value_14=next_selected_value_14;
                  selected_value_15=next_selected_value_15;
                  selected_value_16=next_selected_value_16;
               }
               else
               {
                  High_value=High[(uint)api_result_4];
                  next_selected_value_9=property_value_3;
                  next_selected_value_10=High_value;
                  next_selected_value_11=property_value_3;
                  next_selected_value_12=High_value;
                  next_selected_value_13=High_value;
                  next_selected_value_14=selected_value_8;
                  next_selected_value_15=selected_value_6;
                  next_selected_value_16=selected_value_7;
                  selected_value_9=next_selected_value_9;
                  selected_value_10=next_selected_value_10;
                  selected_value_11=next_selected_value_11;
                  selected_value_12=next_selected_value_12;
                  selected_value_13=next_selected_value_13;
                  selected_value_14=next_selected_value_14;
                  selected_value_15=next_selected_value_15;
                  selected_value_16=next_selected_value_16;
               }
               computed_value_8=(int)((uint)selected_value_14+(uint)0x1);
               next_selected_value_25=selected_value_9;
               next_selected_value_26=selected_value_10;
               next_selected_value_27=selected_value_11;
               next_selected_value_28=selected_value_12;
               next_selected_value_29=selected_value_13;
               next_selected_value_30=computed_value_8;
               next_selected_value_31=selected_value_15;
               next_selected_value_32=selected_value_16;
               selected_value_25=next_selected_value_25;
               selected_value_26=next_selected_value_26;
               selected_value_27=next_selected_value_27;
               selected_value_28=next_selected_value_28;
               selected_value_29=next_selected_value_29;
               selected_value_30=next_selected_value_30;
               selected_value_31=next_selected_value_31;
               selected_value_32=next_selected_value_32;
            }
            computed_value_13=ReadSharedValue2(selected_value_31, selected_value_29);
            if((computed_value_13<0))
            {
               api_result_10=iTime(_Symbol, 0, 0);
               global_state_20_value_2=global_state_20;
               rectangleBottom_value_2=rectangleBottom;
               api_result_11=iTime(_Symbol, 0, selected_value_30);
               local_text_1=global_text_8;
               local_text_1+="RectBottom";
               local_text_1+=" ";
               local_text_1+="Block ";
               _Period_value_5=_Period;
               local_text_2=NULL;
               local_text_2="NONE";
               _Period_value_6=_Period;
               computed_value_33=(long)((((ulong)(uint)0x0<<32)|(ulong)(uint)rectangleBottom_value_2));
               if((_Period_value_6==1))
               {
                  computed_value_34=(long)((((ulong)(uint)0x0<<32)|(ulong)(uint)rectangleBottom_value_2));
                  local_text_2="M1";
                  next_selected_value_270=selected_value_27;
                  next_selected_value_271=selected_value_28;
                  next_selected_value_272=api_result_10;
                  next_selected_value_273=selected_value_25;
                  next_selected_value_274=selected_value_26;
                  next_selected_value_275=computed_value_34;
                  next_selected_value_276=0;
                  next_selected_value_277=selected_value_30;
                  next_selected_value_278=selected_value_32;
                  next_selected_value_279=false;
                  next_selected_value_280=false;
                  next_selected_value_281=false;
                  next_selected_value_282=global_state_20_value_2;
                  next_selected_value_283=api_result_11;
                  next_selected_value_284=0;
                  next_selected_value_285=_Period_value_5;
                  selected_value_270=next_selected_value_270;
                  selected_value_271=next_selected_value_271;
                  selected_value_272=next_selected_value_272;
                  selected_value_273=next_selected_value_273;
                  selected_value_274=next_selected_value_274;
                  selected_value_275=next_selected_value_275;
                  selected_value_276=next_selected_value_276;
                  selected_value_277=next_selected_value_277;
                  selected_value_278=next_selected_value_278;
                  selected_value_279=next_selected_value_279;
                  selected_value_280=next_selected_value_280;
                  selected_value_281=next_selected_value_281;
                  selected_value_282=next_selected_value_282;
                  selected_value_283=next_selected_value_283;
                  selected_value_284=next_selected_value_284;
                  selected_value_285=next_selected_value_285;
               }
               else
               {
                  next_selected_value_270=selected_value_27;
                  next_selected_value_271=selected_value_28;
                  next_selected_value_272=api_result_10;
                  next_selected_value_273=selected_value_25;
                  next_selected_value_274=selected_value_26;
                  next_selected_value_275=computed_value_33;
                  next_selected_value_276=0;
                  next_selected_value_277=selected_value_30;
                  next_selected_value_278=selected_value_32;
                  next_selected_value_279=false;
                  next_selected_value_280=false;
                  next_selected_value_281=false;
                  next_selected_value_282=global_state_20_value_2;
                  next_selected_value_283=api_result_11;
                  next_selected_value_284=0;
                  next_selected_value_285=_Period_value_5;
                  selected_value_270=next_selected_value_270;
                  selected_value_271=next_selected_value_271;
                  selected_value_272=next_selected_value_272;
                  selected_value_273=next_selected_value_273;
                  selected_value_274=next_selected_value_274;
                  selected_value_275=next_selected_value_275;
                  selected_value_276=next_selected_value_276;
                  selected_value_277=next_selected_value_277;
                  selected_value_278=next_selected_value_278;
                  selected_value_279=next_selected_value_279;
                  selected_value_280=next_selected_value_280;
                  selected_value_281=next_selected_value_281;
                  selected_value_282=next_selected_value_282;
                  selected_value_283=next_selected_value_283;
                  selected_value_284=next_selected_value_284;
                  selected_value_285=next_selected_value_285;
               }
               if((selected_value_285==5))
               {
                  local_text_2="M5";
                  next_selected_value_286=selected_value_270;
                  next_selected_value_287=selected_value_271;
                  next_selected_value_288=selected_value_272;
                  next_selected_value_289=selected_value_273;
                  next_selected_value_290=selected_value_274;
                  next_selected_value_291=selected_value_275;
                  next_selected_value_292=selected_value_276;
                  next_selected_value_293=selected_value_277;
                  next_selected_value_294=selected_value_278;
                  next_selected_value_295=selected_value_279;
                  next_selected_value_296=selected_value_280;
                  next_selected_value_297=selected_value_281;
                  next_selected_value_298=selected_value_282;
                  next_selected_value_299=selected_value_283;
                  next_selected_value_300=selected_value_284;
                  next_selected_value_301=selected_value_285;
                  selected_value_286=next_selected_value_286;
                  selected_value_287=next_selected_value_287;
                  selected_value_288=next_selected_value_288;
                  selected_value_289=next_selected_value_289;
                  selected_value_290=next_selected_value_290;
                  selected_value_291=next_selected_value_291;
                  selected_value_292=next_selected_value_292;
                  selected_value_293=next_selected_value_293;
                  selected_value_294=next_selected_value_294;
                  selected_value_295=next_selected_value_295;
                  selected_value_296=next_selected_value_296;
                  selected_value_297=next_selected_value_297;
                  selected_value_298=next_selected_value_298;
                  selected_value_299=next_selected_value_299;
                  selected_value_300=next_selected_value_300;
                  selected_value_301=next_selected_value_301;
               }
               else
               {
                  next_selected_value_286=selected_value_270;
                  next_selected_value_287=selected_value_271;
                  next_selected_value_288=selected_value_272;
                  next_selected_value_289=selected_value_273;
                  next_selected_value_290=selected_value_274;
                  next_selected_value_291=selected_value_275;
                  next_selected_value_292=selected_value_276;
                  next_selected_value_293=selected_value_277;
                  next_selected_value_294=selected_value_278;
                  next_selected_value_295=selected_value_279;
                  next_selected_value_296=selected_value_280;
                  next_selected_value_297=selected_value_281;
                  next_selected_value_298=selected_value_282;
                  next_selected_value_299=selected_value_283;
                  next_selected_value_300=selected_value_284;
                  next_selected_value_301=selected_value_285;
                  selected_value_286=next_selected_value_286;
                  selected_value_287=next_selected_value_287;
                  selected_value_288=next_selected_value_288;
                  selected_value_289=next_selected_value_289;
                  selected_value_290=next_selected_value_290;
                  selected_value_291=next_selected_value_291;
                  selected_value_292=next_selected_value_292;
                  selected_value_293=next_selected_value_293;
                  selected_value_294=next_selected_value_294;
                  selected_value_295=next_selected_value_295;
                  selected_value_296=next_selected_value_296;
                  selected_value_297=next_selected_value_297;
                  selected_value_298=next_selected_value_298;
                  selected_value_299=next_selected_value_299;
                  selected_value_300=next_selected_value_300;
                  selected_value_301=next_selected_value_301;
               }
               if((selected_value_301==15))
               {
                  local_text_2="M15";
                  next_selected_value_302=selected_value_286;
                  next_selected_value_303=selected_value_287;
                  next_selected_value_304=selected_value_288;
                  next_selected_value_305=selected_value_289;
                  next_selected_value_306=selected_value_290;
                  next_selected_value_307=selected_value_291;
                  next_selected_value_308=selected_value_292;
                  next_selected_value_309=selected_value_293;
                  next_selected_value_310=selected_value_294;
                  next_selected_value_311=selected_value_295;
                  next_selected_value_312=selected_value_296;
                  next_selected_value_313=selected_value_297;
                  next_selected_value_314=selected_value_298;
                  next_selected_value_315=selected_value_299;
                  next_selected_value_316=selected_value_300;
                  next_selected_value_317=selected_value_301;
                  selected_value_302=next_selected_value_302;
                  selected_value_303=next_selected_value_303;
                  selected_value_304=next_selected_value_304;
                  selected_value_305=next_selected_value_305;
                  selected_value_306=next_selected_value_306;
                  selected_value_307=next_selected_value_307;
                  selected_value_308=next_selected_value_308;
                  selected_value_309=next_selected_value_309;
                  selected_value_310=next_selected_value_310;
                  selected_value_311=next_selected_value_311;
                  selected_value_312=next_selected_value_312;
                  selected_value_313=next_selected_value_313;
                  selected_value_314=next_selected_value_314;
                  selected_value_315=next_selected_value_315;
                  selected_value_316=next_selected_value_316;
                  selected_value_317=next_selected_value_317;
               }
               else
               {
                  next_selected_value_302=selected_value_286;
                  next_selected_value_303=selected_value_287;
                  next_selected_value_304=selected_value_288;
                  next_selected_value_305=selected_value_289;
                  next_selected_value_306=selected_value_290;
                  next_selected_value_307=selected_value_291;
                  next_selected_value_308=selected_value_292;
                  next_selected_value_309=selected_value_293;
                  next_selected_value_310=selected_value_294;
                  next_selected_value_311=selected_value_295;
                  next_selected_value_312=selected_value_296;
                  next_selected_value_313=selected_value_297;
                  next_selected_value_314=selected_value_298;
                  next_selected_value_315=selected_value_299;
                  next_selected_value_316=selected_value_300;
                  next_selected_value_317=selected_value_301;
                  selected_value_302=next_selected_value_302;
                  selected_value_303=next_selected_value_303;
                  selected_value_304=next_selected_value_304;
                  selected_value_305=next_selected_value_305;
                  selected_value_306=next_selected_value_306;
                  selected_value_307=next_selected_value_307;
                  selected_value_308=next_selected_value_308;
                  selected_value_309=next_selected_value_309;
                  selected_value_310=next_selected_value_310;
                  selected_value_311=next_selected_value_311;
                  selected_value_312=next_selected_value_312;
                  selected_value_313=next_selected_value_313;
                  selected_value_314=next_selected_value_314;
                  selected_value_315=next_selected_value_315;
                  selected_value_316=next_selected_value_316;
                  selected_value_317=next_selected_value_317;
               }
               if((selected_value_317==30))
               {
                  local_text_2="M30";
                  next_selected_value_318=selected_value_302;
                  next_selected_value_319=selected_value_303;
                  next_selected_value_320=selected_value_304;
                  next_selected_value_321=selected_value_305;
                  next_selected_value_322=selected_value_306;
                  next_selected_value_323=selected_value_307;
                  next_selected_value_324=selected_value_308;
                  next_selected_value_325=selected_value_309;
                  next_selected_value_326=selected_value_310;
                  next_selected_value_327=selected_value_311;
                  next_selected_value_328=selected_value_312;
                  next_selected_value_329=selected_value_313;
                  next_selected_value_330=selected_value_314;
                  next_selected_value_331=selected_value_315;
                  next_selected_value_332=selected_value_316;
                  next_selected_value_333=selected_value_317;
                  selected_value_318=next_selected_value_318;
                  selected_value_319=next_selected_value_319;
                  selected_value_320=next_selected_value_320;
                  selected_value_321=next_selected_value_321;
                  selected_value_322=next_selected_value_322;
                  selected_value_323=next_selected_value_323;
                  selected_value_324=next_selected_value_324;
                  selected_value_325=next_selected_value_325;
                  selected_value_326=next_selected_value_326;
                  selected_value_327=next_selected_value_327;
                  selected_value_328=next_selected_value_328;
                  selected_value_329=next_selected_value_329;
                  selected_value_330=next_selected_value_330;
                  selected_value_331=next_selected_value_331;
                  selected_value_332=next_selected_value_332;
                  selected_value_333=next_selected_value_333;
               }
               else
               {
                  next_selected_value_318=selected_value_302;
                  next_selected_value_319=selected_value_303;
                  next_selected_value_320=selected_value_304;
                  next_selected_value_321=selected_value_305;
                  next_selected_value_322=selected_value_306;
                  next_selected_value_323=selected_value_307;
                  next_selected_value_324=selected_value_308;
                  next_selected_value_325=selected_value_309;
                  next_selected_value_326=selected_value_310;
                  next_selected_value_327=selected_value_311;
                  next_selected_value_328=selected_value_312;
                  next_selected_value_329=selected_value_313;
                  next_selected_value_330=selected_value_314;
                  next_selected_value_331=selected_value_315;
                  next_selected_value_332=selected_value_316;
                  next_selected_value_333=selected_value_317;
                  selected_value_318=next_selected_value_318;
                  selected_value_319=next_selected_value_319;
                  selected_value_320=next_selected_value_320;
                  selected_value_321=next_selected_value_321;
                  selected_value_322=next_selected_value_322;
                  selected_value_323=next_selected_value_323;
                  selected_value_324=next_selected_value_324;
                  selected_value_325=next_selected_value_325;
                  selected_value_326=next_selected_value_326;
                  selected_value_327=next_selected_value_327;
                  selected_value_328=next_selected_value_328;
                  selected_value_329=next_selected_value_329;
                  selected_value_330=next_selected_value_330;
                  selected_value_331=next_selected_value_331;
                  selected_value_332=next_selected_value_332;
                  selected_value_333=next_selected_value_333;
               }
               if((selected_value_333==60))
               {
                  local_text_2="H1";
                  next_selected_value_334=selected_value_318;
                  next_selected_value_335=selected_value_319;
                  next_selected_value_336=selected_value_320;
                  next_selected_value_337=selected_value_321;
                  next_selected_value_338=selected_value_322;
                  next_selected_value_339=selected_value_323;
                  next_selected_value_340=selected_value_324;
                  next_selected_value_341=selected_value_325;
                  next_selected_value_342=selected_value_326;
                  next_selected_value_343=selected_value_327;
                  next_selected_value_344=selected_value_328;
                  next_selected_value_345=selected_value_329;
                  next_selected_value_346=selected_value_330;
                  next_selected_value_347=selected_value_331;
                  next_selected_value_348=selected_value_332;
                  next_selected_value_349=selected_value_333;
                  selected_value_334=next_selected_value_334;
                  selected_value_335=next_selected_value_335;
                  selected_value_336=next_selected_value_336;
                  selected_value_337=next_selected_value_337;
                  selected_value_338=next_selected_value_338;
                  selected_value_339=next_selected_value_339;
                  selected_value_340=next_selected_value_340;
                  selected_value_341=next_selected_value_341;
                  selected_value_342=next_selected_value_342;
                  selected_value_343=next_selected_value_343;
                  selected_value_344=next_selected_value_344;
                  selected_value_345=next_selected_value_345;
                  selected_value_346=next_selected_value_346;
                  selected_value_347=next_selected_value_347;
                  selected_value_348=next_selected_value_348;
                  selected_value_349=next_selected_value_349;
               }
               else
               {
                  next_selected_value_334=selected_value_318;
                  next_selected_value_335=selected_value_319;
                  next_selected_value_336=selected_value_320;
                  next_selected_value_337=selected_value_321;
                  next_selected_value_338=selected_value_322;
                  next_selected_value_339=selected_value_323;
                  next_selected_value_340=selected_value_324;
                  next_selected_value_341=selected_value_325;
                  next_selected_value_342=selected_value_326;
                  next_selected_value_343=selected_value_327;
                  next_selected_value_344=selected_value_328;
                  next_selected_value_345=selected_value_329;
                  next_selected_value_346=selected_value_330;
                  next_selected_value_347=selected_value_331;
                  next_selected_value_348=selected_value_332;
                  next_selected_value_349=selected_value_333;
                  selected_value_334=next_selected_value_334;
                  selected_value_335=next_selected_value_335;
                  selected_value_336=next_selected_value_336;
                  selected_value_337=next_selected_value_337;
                  selected_value_338=next_selected_value_338;
                  selected_value_339=next_selected_value_339;
                  selected_value_340=next_selected_value_340;
                  selected_value_341=next_selected_value_341;
                  selected_value_342=next_selected_value_342;
                  selected_value_343=next_selected_value_343;
                  selected_value_344=next_selected_value_344;
                  selected_value_345=next_selected_value_345;
                  selected_value_346=next_selected_value_346;
                  selected_value_347=next_selected_value_347;
                  selected_value_348=next_selected_value_348;
                  selected_value_349=next_selected_value_349;
               }
               if((selected_value_349==240))
               {
                  local_text_2="H4";
                  next_selected_value_350=selected_value_334;
                  next_selected_value_351=selected_value_335;
                  next_selected_value_352=selected_value_336;
                  next_selected_value_353=selected_value_337;
                  next_selected_value_354=selected_value_338;
                  next_selected_value_355=selected_value_339;
                  next_selected_value_356=selected_value_340;
                  next_selected_value_357=selected_value_341;
                  next_selected_value_358=selected_value_342;
                  next_selected_value_359=selected_value_343;
                  next_selected_value_360=selected_value_344;
                  next_selected_value_361=selected_value_345;
                  next_selected_value_362=selected_value_346;
                  next_selected_value_363=selected_value_347;
                  next_selected_value_364=selected_value_348;
                  next_selected_value_365=selected_value_349;
                  selected_value_350=next_selected_value_350;
                  selected_value_351=next_selected_value_351;
                  selected_value_352=next_selected_value_352;
                  selected_value_353=next_selected_value_353;
                  selected_value_354=next_selected_value_354;
                  selected_value_355=next_selected_value_355;
                  selected_value_356=next_selected_value_356;
                  selected_value_357=next_selected_value_357;
                  selected_value_358=next_selected_value_358;
                  selected_value_359=next_selected_value_359;
                  selected_value_360=next_selected_value_360;
                  selected_value_361=next_selected_value_361;
                  selected_value_362=next_selected_value_362;
                  selected_value_363=next_selected_value_363;
                  selected_value_364=next_selected_value_364;
                  selected_value_365=next_selected_value_365;
               }
               else
               {
                  next_selected_value_350=selected_value_334;
                  next_selected_value_351=selected_value_335;
                  next_selected_value_352=selected_value_336;
                  next_selected_value_353=selected_value_337;
                  next_selected_value_354=selected_value_338;
                  next_selected_value_355=selected_value_339;
                  next_selected_value_356=selected_value_340;
                  next_selected_value_357=selected_value_341;
                  next_selected_value_358=selected_value_342;
                  next_selected_value_359=selected_value_343;
                  next_selected_value_360=selected_value_344;
                  next_selected_value_361=selected_value_345;
                  next_selected_value_362=selected_value_346;
                  next_selected_value_363=selected_value_347;
                  next_selected_value_364=selected_value_348;
                  next_selected_value_365=selected_value_349;
                  selected_value_350=next_selected_value_350;
                  selected_value_351=next_selected_value_351;
                  selected_value_352=next_selected_value_352;
                  selected_value_353=next_selected_value_353;
                  selected_value_354=next_selected_value_354;
                  selected_value_355=next_selected_value_355;
                  selected_value_356=next_selected_value_356;
                  selected_value_357=next_selected_value_357;
                  selected_value_358=next_selected_value_358;
                  selected_value_359=next_selected_value_359;
                  selected_value_360=next_selected_value_360;
                  selected_value_361=next_selected_value_361;
                  selected_value_362=next_selected_value_362;
                  selected_value_363=next_selected_value_363;
                  selected_value_364=next_selected_value_364;
                  selected_value_365=next_selected_value_365;
               }
               if((selected_value_365==1440))
               {
                  local_text_2="D1";
                  next_selected_value_366=selected_value_350;
                  next_selected_value_367=selected_value_351;
                  next_selected_value_368=selected_value_352;
                  next_selected_value_369=selected_value_353;
                  next_selected_value_370=selected_value_354;
                  next_selected_value_371=selected_value_355;
                  next_selected_value_372=selected_value_356;
                  next_selected_value_373=selected_value_357;
                  next_selected_value_374=selected_value_358;
                  next_selected_value_375=selected_value_359;
                  next_selected_value_376=selected_value_360;
                  next_selected_value_377=selected_value_361;
                  next_selected_value_378=selected_value_362;
                  next_selected_value_379=selected_value_363;
                  next_selected_value_380=selected_value_364;
                  next_selected_value_381=selected_value_365;
                  selected_value_366=next_selected_value_366;
                  selected_value_367=next_selected_value_367;
                  selected_value_368=next_selected_value_368;
                  selected_value_369=next_selected_value_369;
                  selected_value_370=next_selected_value_370;
                  selected_value_371=next_selected_value_371;
                  selected_value_372=next_selected_value_372;
                  selected_value_373=next_selected_value_373;
                  selected_value_374=next_selected_value_374;
                  selected_value_375=next_selected_value_375;
                  selected_value_376=next_selected_value_376;
                  selected_value_377=next_selected_value_377;
                  selected_value_378=next_selected_value_378;
                  selected_value_379=next_selected_value_379;
                  selected_value_380=next_selected_value_380;
                  selected_value_381=next_selected_value_381;
               }
               else
               {
                  next_selected_value_366=selected_value_350;
                  next_selected_value_367=selected_value_351;
                  next_selected_value_368=selected_value_352;
                  next_selected_value_369=selected_value_353;
                  next_selected_value_370=selected_value_354;
                  next_selected_value_371=selected_value_355;
                  next_selected_value_372=selected_value_356;
                  next_selected_value_373=selected_value_357;
                  next_selected_value_374=selected_value_358;
                  next_selected_value_375=selected_value_359;
                  next_selected_value_376=selected_value_360;
                  next_selected_value_377=selected_value_361;
                  next_selected_value_378=selected_value_362;
                  next_selected_value_379=selected_value_363;
                  next_selected_value_380=selected_value_364;
                  next_selected_value_381=selected_value_365;
                  selected_value_366=next_selected_value_366;
                  selected_value_367=next_selected_value_367;
                  selected_value_368=next_selected_value_368;
                  selected_value_369=next_selected_value_369;
                  selected_value_370=next_selected_value_370;
                  selected_value_371=next_selected_value_371;
                  selected_value_372=next_selected_value_372;
                  selected_value_373=next_selected_value_373;
                  selected_value_374=next_selected_value_374;
                  selected_value_375=next_selected_value_375;
                  selected_value_376=next_selected_value_376;
                  selected_value_377=next_selected_value_377;
                  selected_value_378=next_selected_value_378;
                  selected_value_379=next_selected_value_379;
                  selected_value_380=next_selected_value_380;
                  selected_value_381=next_selected_value_381;
               }
               if((selected_value_381==10080))
               {
                  local_text_2="W1";
                  next_selected_value_382=selected_value_366;
                  next_selected_value_383=selected_value_367;
                  next_selected_value_384=selected_value_368;
                  next_selected_value_385=selected_value_369;
                  next_selected_value_386=selected_value_370;
                  next_selected_value_387=selected_value_371;
                  next_selected_value_388=selected_value_372;
                  next_selected_value_389=selected_value_373;
                  next_selected_value_390=selected_value_374;
                  next_selected_value_391=selected_value_375;
                  next_selected_value_392=selected_value_376;
                  next_selected_value_393=selected_value_377;
                  next_selected_value_394=selected_value_378;
                  next_selected_value_395=selected_value_379;
                  next_selected_value_396=selected_value_380;
                  next_selected_value_397=selected_value_381;
                  selected_value_382=next_selected_value_382;
                  selected_value_383=next_selected_value_383;
                  selected_value_384=next_selected_value_384;
                  selected_value_385=next_selected_value_385;
                  selected_value_386=next_selected_value_386;
                  selected_value_387=next_selected_value_387;
                  selected_value_388=next_selected_value_388;
                  selected_value_389=next_selected_value_389;
                  selected_value_390=next_selected_value_390;
                  selected_value_391=next_selected_value_391;
                  selected_value_392=next_selected_value_392;
                  selected_value_393=next_selected_value_393;
                  selected_value_394=next_selected_value_394;
                  selected_value_395=next_selected_value_395;
                  selected_value_396=next_selected_value_396;
                  selected_value_397=next_selected_value_397;
               }
               else
               {
                  next_selected_value_382=selected_value_366;
                  next_selected_value_383=selected_value_367;
                  next_selected_value_384=selected_value_368;
                  next_selected_value_385=selected_value_369;
                  next_selected_value_386=selected_value_370;
                  next_selected_value_387=selected_value_371;
                  next_selected_value_388=selected_value_372;
                  next_selected_value_389=selected_value_373;
                  next_selected_value_390=selected_value_374;
                  next_selected_value_391=selected_value_375;
                  next_selected_value_392=selected_value_376;
                  next_selected_value_393=selected_value_377;
                  next_selected_value_394=selected_value_378;
                  next_selected_value_395=selected_value_379;
                  next_selected_value_396=selected_value_380;
                  next_selected_value_397=selected_value_381;
                  selected_value_382=next_selected_value_382;
                  selected_value_383=next_selected_value_383;
                  selected_value_384=next_selected_value_384;
                  selected_value_385=next_selected_value_385;
                  selected_value_386=next_selected_value_386;
                  selected_value_387=next_selected_value_387;
                  selected_value_388=next_selected_value_388;
                  selected_value_389=next_selected_value_389;
                  selected_value_390=next_selected_value_390;
                  selected_value_391=next_selected_value_391;
                  selected_value_392=next_selected_value_392;
                  selected_value_393=next_selected_value_393;
                  selected_value_394=next_selected_value_394;
                  selected_value_395=next_selected_value_395;
                  selected_value_396=next_selected_value_396;
                  selected_value_397=next_selected_value_397;
               }
               computed_value_35=(uint)0xa8c0;
               if((selected_value_397==(int)computed_value_35))
               {
                  local_text_2="MN1";
                  next_selected_value_398=selected_value_382;
                  next_selected_value_399=selected_value_383;
                  next_selected_value_400=selected_value_384;
                  next_selected_value_401=selected_value_385;
                  next_selected_value_402=selected_value_386;
                  next_selected_value_403=selected_value_387;
                  next_selected_value_404=selected_value_388;
                  next_selected_value_405=selected_value_389;
                  next_selected_value_406=selected_value_390;
                  next_selected_value_407=selected_value_391;
                  next_selected_value_408=selected_value_392;
                  next_selected_value_409=selected_value_393;
                  next_selected_value_410=selected_value_394;
                  next_selected_value_411=selected_value_395;
                  next_selected_value_412=selected_value_396;
                  selected_value_398=next_selected_value_398;
                  selected_value_399=next_selected_value_399;
                  selected_value_400=next_selected_value_400;
                  selected_value_401=next_selected_value_401;
                  selected_value_402=next_selected_value_402;
                  selected_value_403=next_selected_value_403;
                  selected_value_404=next_selected_value_404;
                  selected_value_405=next_selected_value_405;
                  selected_value_406=next_selected_value_406;
                  selected_value_407=next_selected_value_407;
                  selected_value_408=next_selected_value_408;
                  selected_value_409=next_selected_value_409;
                  selected_value_410=next_selected_value_410;
                  selected_value_411=next_selected_value_411;
                  selected_value_412=next_selected_value_412;
               }
               else
               {
                  next_selected_value_398=selected_value_382;
                  next_selected_value_399=selected_value_383;
                  next_selected_value_400=selected_value_384;
                  next_selected_value_401=selected_value_385;
                  next_selected_value_402=selected_value_386;
                  next_selected_value_403=selected_value_387;
                  next_selected_value_404=selected_value_388;
                  next_selected_value_405=selected_value_389;
                  next_selected_value_406=selected_value_390;
                  next_selected_value_407=selected_value_391;
                  next_selected_value_408=selected_value_392;
                  next_selected_value_409=selected_value_393;
                  next_selected_value_410=selected_value_394;
                  next_selected_value_411=selected_value_395;
                  next_selected_value_412=selected_value_396;
                  selected_value_398=next_selected_value_398;
                  selected_value_399=next_selected_value_399;
                  selected_value_400=next_selected_value_400;
                  selected_value_401=next_selected_value_401;
                  selected_value_402=next_selected_value_402;
                  selected_value_403=next_selected_value_403;
                  selected_value_404=next_selected_value_404;
                  selected_value_405=next_selected_value_405;
                  selected_value_406=next_selected_value_406;
                  selected_value_407=next_selected_value_407;
                  selected_value_408=next_selected_value_408;
                  selected_value_409=next_selected_value_409;
                  selected_value_410=next_selected_value_410;
                  selected_value_411=next_selected_value_411;
                  selected_value_412=next_selected_value_412;
               }
               local_text_1+=local_text_2;
               local_text_1+=" ";
               computed_value_36=(long)selected_value_406;
               local_text_1+=IntegerToString(computed_value_36, 0, (ushort)(uint)0x20);
               local_text_1=local_text_1;
               ObjectDelete(local_text_1);
               ResetLastError();
               api_result_12=ObjectCreate(0, local_text_1, (ENUM_OBJECT)16, selected_value_412, selected_value_411, selected_value_398, selected_value_400, selected_value_399);
               if((api_result_12==false))
               {
                  _LastError_value_4=_LastError;
                  ResetLastError();
                  Print("RectangleCreate", ": failed to create a rectangle! Error code = ", _LastError_value_4);
                  next_selected_value_413=selected_value_401;
                  next_selected_value_414=selected_value_402;
                  next_selected_value_415=selected_value_405;
                  next_selected_value_416=selected_value_406;
                  selected_value_413=next_selected_value_413;
                  selected_value_414=next_selected_value_414;
                  selected_value_415=next_selected_value_415;
                  selected_value_416=next_selected_value_416;
               }
               else
               {
                  ObjectSetInteger(0, local_text_1, 6, selected_value_403);
                  computed_value_37=(long)selected_value_410;
                  ObjectSetInteger(0, local_text_1, 7, computed_value_37);
                  ObjectSetInteger(0, local_text_1, 8, 2);
                  computed_value_38=(int)(uint)selected_value_409;
                  computed_value_39=(long)computed_value_38;
                  ObjectSetInteger(0, local_text_1, 1031, computed_value_39);
                  computed_value_40=(int)(uint)selected_value_408;
                  computed_value_41=(long)computed_value_40;
                  ObjectSetInteger(0, local_text_1, 9, computed_value_41);
                  computed_value_42=(int)(uint)selected_value_407;
                  computed_value_43=(long)computed_value_42;
                  ObjectSetInteger(0, local_text_1, 1000, computed_value_43);
                  computed_value_44=(int)(uint)selected_value_407;
                  computed_value_45=(long)computed_value_44;
                  ObjectSetInteger(0, local_text_1, 17, computed_value_45);
                  ObjectSetInteger(0, local_text_1, 208, 0);
                  ObjectSetInteger(0, local_text_1, 207, selected_value_404);
                  api_result_13=ChartID();
                  ChartRedraw(api_result_13);
                  next_selected_value_413=selected_value_401;
                  next_selected_value_414=selected_value_402;
                  next_selected_value_415=selected_value_405;
                  next_selected_value_416=selected_value_406;
                  selected_value_413=next_selected_value_413;
                  selected_value_414=next_selected_value_414;
                  selected_value_415=next_selected_value_415;
                  selected_value_416=next_selected_value_416;
               }
               global_state_35_value=global_state_35;
               if((global_state_35_value==false))
               {
                  computed_value_46=(double)selected_value_415;
                  indicator_buffer_14[(uint)0x1]=computed_value_46;
                  indicator_buffer_15[(uint)0x1]=0.0;
                  indicator_buffer_16[(uint)0x1]=selected_value_413;
                  indicator_buffer_17[(uint)0x1]=selected_value_414;
                  global_state_35=true;
                  next_selected_value_417=selected_value_416;
                  selected_value_417=next_selected_value_417;
               }
               else
               {
                  next_selected_value_417=selected_value_416;
                  selected_value_417=next_selected_value_417;
               }
            }
            else
            {
               global_state_18=computed_value_13;
               api_result_6=iTime(_Symbol, 0, computed_value_13);
               computed_value_14=(uint)((uint)((ulong)api_result_6>>32));
               computed_value_15=(uint)((uint)((ulong)api_result_6>>0));
               UpdateText9(computed_value_15, computed_value_14, (uint)0x0);
               local_text_3=global_text_8;
               local_text_3+="RectBottom";
               local_text_3+=" ";
               local_text_3+="Block ";
               _Period_value=_Period;
               local_text_4=NULL;
               local_text_4="NONE";
               _Period_value_2=_Period;
               if((_Period_value_2==1))
               {
                  local_text_4="M1";
                  next_selected_value_33=selected_value_27;
                  next_selected_value_34=selected_value_28;
                  next_selected_value_35=selected_value_25;
                  next_selected_value_36=selected_value_26;
                  next_selected_value_37=selected_value_30;
                  next_selected_value_38=api_result_6;
                  next_selected_value_39=computed_value_13;
                  next_selected_value_40=selected_value_32;
                  next_selected_value_41=_Period_value;
                  selected_value_33=next_selected_value_33;
                  selected_value_34=next_selected_value_34;
                  selected_value_35=next_selected_value_35;
                  selected_value_36=next_selected_value_36;
                  selected_value_37=next_selected_value_37;
                  selected_value_38=next_selected_value_38;
                  selected_value_39=next_selected_value_39;
                  selected_value_40=next_selected_value_40;
                  selected_value_41=next_selected_value_41;
               }
               else
               {
                  next_selected_value_33=selected_value_27;
                  next_selected_value_34=selected_value_28;
                  next_selected_value_35=selected_value_25;
                  next_selected_value_36=selected_value_26;
                  next_selected_value_37=selected_value_30;
                  next_selected_value_38=api_result_6;
                  next_selected_value_39=computed_value_13;
                  next_selected_value_40=selected_value_32;
                  next_selected_value_41=_Period_value;
                  selected_value_33=next_selected_value_33;
                  selected_value_34=next_selected_value_34;
                  selected_value_35=next_selected_value_35;
                  selected_value_36=next_selected_value_36;
                  selected_value_37=next_selected_value_37;
                  selected_value_38=next_selected_value_38;
                  selected_value_39=next_selected_value_39;
                  selected_value_40=next_selected_value_40;
                  selected_value_41=next_selected_value_41;
               }
               if((selected_value_41==5))
               {
                  local_text_4="M5";
                  next_selected_value_42=selected_value_33;
                  next_selected_value_43=selected_value_34;
                  next_selected_value_44=selected_value_35;
                  next_selected_value_45=selected_value_36;
                  next_selected_value_46=selected_value_37;
                  next_selected_value_47=selected_value_38;
                  next_selected_value_48=selected_value_39;
                  next_selected_value_49=selected_value_40;
                  next_selected_value_50=selected_value_41;
                  selected_value_42=next_selected_value_42;
                  selected_value_43=next_selected_value_43;
                  selected_value_44=next_selected_value_44;
                  selected_value_45=next_selected_value_45;
                  selected_value_46=next_selected_value_46;
                  selected_value_47=next_selected_value_47;
                  selected_value_48=next_selected_value_48;
                  selected_value_49=next_selected_value_49;
                  selected_value_50=next_selected_value_50;
               }
               else
               {
                  next_selected_value_42=selected_value_33;
                  next_selected_value_43=selected_value_34;
                  next_selected_value_44=selected_value_35;
                  next_selected_value_45=selected_value_36;
                  next_selected_value_46=selected_value_37;
                  next_selected_value_47=selected_value_38;
                  next_selected_value_48=selected_value_39;
                  next_selected_value_49=selected_value_40;
                  next_selected_value_50=selected_value_41;
                  selected_value_42=next_selected_value_42;
                  selected_value_43=next_selected_value_43;
                  selected_value_44=next_selected_value_44;
                  selected_value_45=next_selected_value_45;
                  selected_value_46=next_selected_value_46;
                  selected_value_47=next_selected_value_47;
                  selected_value_48=next_selected_value_48;
                  selected_value_49=next_selected_value_49;
                  selected_value_50=next_selected_value_50;
               }
               if((selected_value_50==15))
               {
                  local_text_4="M15";
                  next_selected_value_51=selected_value_42;
                  next_selected_value_52=selected_value_43;
                  next_selected_value_53=selected_value_44;
                  next_selected_value_54=selected_value_45;
                  next_selected_value_55=selected_value_46;
                  next_selected_value_56=selected_value_47;
                  next_selected_value_57=selected_value_48;
                  next_selected_value_58=selected_value_49;
                  next_selected_value_59=selected_value_50;
                  selected_value_51=next_selected_value_51;
                  selected_value_52=next_selected_value_52;
                  selected_value_53=next_selected_value_53;
                  selected_value_54=next_selected_value_54;
                  selected_value_55=next_selected_value_55;
                  selected_value_56=next_selected_value_56;
                  selected_value_57=next_selected_value_57;
                  selected_value_58=next_selected_value_58;
                  selected_value_59=next_selected_value_59;
               }
               else
               {
                  next_selected_value_51=selected_value_42;
                  next_selected_value_52=selected_value_43;
                  next_selected_value_53=selected_value_44;
                  next_selected_value_54=selected_value_45;
                  next_selected_value_55=selected_value_46;
                  next_selected_value_56=selected_value_47;
                  next_selected_value_57=selected_value_48;
                  next_selected_value_58=selected_value_49;
                  next_selected_value_59=selected_value_50;
                  selected_value_51=next_selected_value_51;
                  selected_value_52=next_selected_value_52;
                  selected_value_53=next_selected_value_53;
                  selected_value_54=next_selected_value_54;
                  selected_value_55=next_selected_value_55;
                  selected_value_56=next_selected_value_56;
                  selected_value_57=next_selected_value_57;
                  selected_value_58=next_selected_value_58;
                  selected_value_59=next_selected_value_59;
               }
               if((selected_value_59==30))
               {
                  local_text_4="M30";
                  next_selected_value_60=selected_value_51;
                  next_selected_value_61=selected_value_52;
                  next_selected_value_62=selected_value_53;
                  next_selected_value_63=selected_value_54;
                  next_selected_value_64=selected_value_55;
                  next_selected_value_65=selected_value_56;
                  next_selected_value_66=selected_value_57;
                  next_selected_value_67=selected_value_58;
                  next_selected_value_68=selected_value_59;
                  selected_value_60=next_selected_value_60;
                  selected_value_61=next_selected_value_61;
                  selected_value_62=next_selected_value_62;
                  selected_value_63=next_selected_value_63;
                  selected_value_64=next_selected_value_64;
                  selected_value_65=next_selected_value_65;
                  selected_value_66=next_selected_value_66;
                  selected_value_67=next_selected_value_67;
                  selected_value_68=next_selected_value_68;
               }
               else
               {
                  next_selected_value_60=selected_value_51;
                  next_selected_value_61=selected_value_52;
                  next_selected_value_62=selected_value_53;
                  next_selected_value_63=selected_value_54;
                  next_selected_value_64=selected_value_55;
                  next_selected_value_65=selected_value_56;
                  next_selected_value_66=selected_value_57;
                  next_selected_value_67=selected_value_58;
                  next_selected_value_68=selected_value_59;
                  selected_value_60=next_selected_value_60;
                  selected_value_61=next_selected_value_61;
                  selected_value_62=next_selected_value_62;
                  selected_value_63=next_selected_value_63;
                  selected_value_64=next_selected_value_64;
                  selected_value_65=next_selected_value_65;
                  selected_value_66=next_selected_value_66;
                  selected_value_67=next_selected_value_67;
                  selected_value_68=next_selected_value_68;
               }
               if((selected_value_68==60))
               {
                  local_text_4="H1";
                  next_selected_value_69=selected_value_60;
                  next_selected_value_70=selected_value_61;
                  next_selected_value_71=selected_value_62;
                  next_selected_value_72=selected_value_63;
                  next_selected_value_73=selected_value_64;
                  next_selected_value_74=selected_value_65;
                  next_selected_value_75=selected_value_66;
                  next_selected_value_76=selected_value_67;
                  next_selected_value_77=selected_value_68;
                  selected_value_69=next_selected_value_69;
                  selected_value_70=next_selected_value_70;
                  selected_value_71=next_selected_value_71;
                  selected_value_72=next_selected_value_72;
                  selected_value_73=next_selected_value_73;
                  selected_value_74=next_selected_value_74;
                  selected_value_75=next_selected_value_75;
                  selected_value_76=next_selected_value_76;
                  selected_value_77=next_selected_value_77;
               }
               else
               {
                  next_selected_value_69=selected_value_60;
                  next_selected_value_70=selected_value_61;
                  next_selected_value_71=selected_value_62;
                  next_selected_value_72=selected_value_63;
                  next_selected_value_73=selected_value_64;
                  next_selected_value_74=selected_value_65;
                  next_selected_value_75=selected_value_66;
                  next_selected_value_76=selected_value_67;
                  next_selected_value_77=selected_value_68;
                  selected_value_69=next_selected_value_69;
                  selected_value_70=next_selected_value_70;
                  selected_value_71=next_selected_value_71;
                  selected_value_72=next_selected_value_72;
                  selected_value_73=next_selected_value_73;
                  selected_value_74=next_selected_value_74;
                  selected_value_75=next_selected_value_75;
                  selected_value_76=next_selected_value_76;
                  selected_value_77=next_selected_value_77;
               }
               if((selected_value_77==240))
               {
                  local_text_4="H4";
                  next_selected_value_78=selected_value_69;
                  next_selected_value_79=selected_value_70;
                  next_selected_value_80=selected_value_71;
                  next_selected_value_81=selected_value_72;
                  next_selected_value_82=selected_value_73;
                  next_selected_value_83=selected_value_74;
                  next_selected_value_84=selected_value_75;
                  next_selected_value_85=selected_value_76;
                  next_selected_value_86=selected_value_77;
                  selected_value_78=next_selected_value_78;
                  selected_value_79=next_selected_value_79;
                  selected_value_80=next_selected_value_80;
                  selected_value_81=next_selected_value_81;
                  selected_value_82=next_selected_value_82;
                  selected_value_83=next_selected_value_83;
                  selected_value_84=next_selected_value_84;
                  selected_value_85=next_selected_value_85;
                  selected_value_86=next_selected_value_86;
               }
               else
               {
                  next_selected_value_78=selected_value_69;
                  next_selected_value_79=selected_value_70;
                  next_selected_value_80=selected_value_71;
                  next_selected_value_81=selected_value_72;
                  next_selected_value_82=selected_value_73;
                  next_selected_value_83=selected_value_74;
                  next_selected_value_84=selected_value_75;
                  next_selected_value_85=selected_value_76;
                  next_selected_value_86=selected_value_77;
                  selected_value_78=next_selected_value_78;
                  selected_value_79=next_selected_value_79;
                  selected_value_80=next_selected_value_80;
                  selected_value_81=next_selected_value_81;
                  selected_value_82=next_selected_value_82;
                  selected_value_83=next_selected_value_83;
                  selected_value_84=next_selected_value_84;
                  selected_value_85=next_selected_value_85;
                  selected_value_86=next_selected_value_86;
               }
               if((selected_value_86==1440))
               {
                  local_text_4="D1";
                  next_selected_value_87=selected_value_78;
                  next_selected_value_88=selected_value_79;
                  next_selected_value_89=selected_value_80;
                  next_selected_value_90=selected_value_81;
                  next_selected_value_91=selected_value_82;
                  next_selected_value_92=selected_value_83;
                  next_selected_value_93=selected_value_84;
                  next_selected_value_94=selected_value_85;
                  next_selected_value_95=selected_value_86;
                  selected_value_87=next_selected_value_87;
                  selected_value_88=next_selected_value_88;
                  selected_value_89=next_selected_value_89;
                  selected_value_90=next_selected_value_90;
                  selected_value_91=next_selected_value_91;
                  selected_value_92=next_selected_value_92;
                  selected_value_93=next_selected_value_93;
                  selected_value_94=next_selected_value_94;
                  selected_value_95=next_selected_value_95;
               }
               else
               {
                  next_selected_value_87=selected_value_78;
                  next_selected_value_88=selected_value_79;
                  next_selected_value_89=selected_value_80;
                  next_selected_value_90=selected_value_81;
                  next_selected_value_91=selected_value_82;
                  next_selected_value_92=selected_value_83;
                  next_selected_value_93=selected_value_84;
                  next_selected_value_94=selected_value_85;
                  next_selected_value_95=selected_value_86;
                  selected_value_87=next_selected_value_87;
                  selected_value_88=next_selected_value_88;
                  selected_value_89=next_selected_value_89;
                  selected_value_90=next_selected_value_90;
                  selected_value_91=next_selected_value_91;
                  selected_value_92=next_selected_value_92;
                  selected_value_93=next_selected_value_93;
                  selected_value_94=next_selected_value_94;
                  selected_value_95=next_selected_value_95;
               }
               if((selected_value_95==10080))
               {
                  local_text_4="W1";
                  next_selected_value_96=selected_value_87;
                  next_selected_value_97=selected_value_88;
                  next_selected_value_98=selected_value_89;
                  next_selected_value_99=selected_value_90;
                  next_selected_value_100=selected_value_91;
                  next_selected_value_101=selected_value_92;
                  next_selected_value_102=selected_value_93;
                  next_selected_value_103=selected_value_94;
                  next_selected_value_104=selected_value_95;
                  selected_value_96=next_selected_value_96;
                  selected_value_97=next_selected_value_97;
                  selected_value_98=next_selected_value_98;
                  selected_value_99=next_selected_value_99;
                  selected_value_100=next_selected_value_100;
                  selected_value_101=next_selected_value_101;
                  selected_value_102=next_selected_value_102;
                  selected_value_103=next_selected_value_103;
                  selected_value_104=next_selected_value_104;
               }
               else
               {
                  next_selected_value_96=selected_value_87;
                  next_selected_value_97=selected_value_88;
                  next_selected_value_98=selected_value_89;
                  next_selected_value_99=selected_value_90;
                  next_selected_value_100=selected_value_91;
                  next_selected_value_101=selected_value_92;
                  next_selected_value_102=selected_value_93;
                  next_selected_value_103=selected_value_94;
                  next_selected_value_104=selected_value_95;
                  selected_value_96=next_selected_value_96;
                  selected_value_97=next_selected_value_97;
                  selected_value_98=next_selected_value_98;
                  selected_value_99=next_selected_value_99;
                  selected_value_100=next_selected_value_100;
                  selected_value_101=next_selected_value_101;
                  selected_value_102=next_selected_value_102;
                  selected_value_103=next_selected_value_103;
                  selected_value_104=next_selected_value_104;
               }
               computed_value_16=(uint)0xa8c0;
               if((selected_value_104==(int)computed_value_16))
               {
                  local_text_4="MN1";
                  next_selected_value_105=selected_value_96;
                  next_selected_value_106=selected_value_97;
                  next_selected_value_107=selected_value_98;
                  next_selected_value_108=selected_value_99;
                  next_selected_value_109=selected_value_100;
                  next_selected_value_110=selected_value_101;
                  next_selected_value_111=selected_value_102;
                  next_selected_value_112=selected_value_103;
                  selected_value_105=next_selected_value_105;
                  selected_value_106=next_selected_value_106;
                  selected_value_107=next_selected_value_107;
                  selected_value_108=next_selected_value_108;
                  selected_value_109=next_selected_value_109;
                  selected_value_110=next_selected_value_110;
                  selected_value_111=next_selected_value_111;
                  selected_value_112=next_selected_value_112;
               }
               else
               {
                  next_selected_value_105=selected_value_96;
                  next_selected_value_106=selected_value_97;
                  next_selected_value_107=selected_value_98;
                  next_selected_value_108=selected_value_99;
                  next_selected_value_109=selected_value_100;
                  next_selected_value_110=selected_value_101;
                  next_selected_value_111=selected_value_102;
                  next_selected_value_112=selected_value_103;
                  selected_value_105=next_selected_value_105;
                  selected_value_106=next_selected_value_106;
                  selected_value_107=next_selected_value_107;
                  selected_value_108=next_selected_value_108;
                  selected_value_109=next_selected_value_109;
                  selected_value_110=next_selected_value_110;
                  selected_value_111=next_selected_value_111;
                  selected_value_112=next_selected_value_112;
               }
               local_text_3+=local_text_4;
               local_text_3+=" ";
               computed_value_17=(long)selected_value_112;
               local_text_3+=IntegerToString(computed_value_17, 0, (ushort)(uint)0x20);
               ObjectDelete(local_text_3);
               global_state_20_value=global_state_20;
               rectangleBottom_value=rectangleBottom;
               api_result_7=iTime(_Symbol, 0, selected_value_109);
               local_text_5=global_text_8;
               local_text_5+="RectBottom";
               local_text_5+=" ";
               local_text_5+=" ReversalComplete ";
               _Period_value_3=_Period;
               local_text_6=NULL;
               local_text_6="NONE";
               _Period_value_4=_Period;
               computed_value_18=(long)((((ulong)(uint)0x0<<32)|(ulong)(uint)rectangleBottom_value));
               if((_Period_value_4==1))
               {
                  computed_value_19=(long)((((ulong)(uint)0x0<<32)|(ulong)(uint)rectangleBottom_value));
                  local_text_6="M1";
                  next_selected_value_113=selected_value_105;
                  next_selected_value_114=selected_value_106;
                  next_selected_value_115=selected_value_110;
                  next_selected_value_116=selected_value_107;
                  next_selected_value_117=selected_value_108;
                  next_selected_value_118=computed_value_19;
                  next_selected_value_119=0;
                  next_selected_value_120=selected_value_109;
                  next_selected_value_121=selected_value_111;
                  next_selected_value_122=selected_value_112;
                  next_selected_value_123=false;
                  next_selected_value_124=false;
                  next_selected_value_125=true;
                  next_selected_value_126=global_state_20_value;
                  next_selected_value_127=api_result_7;
                  next_selected_value_128=0;
                  next_selected_value_129=_Period_value_3;
                  selected_value_113=next_selected_value_113;
                  selected_value_114=next_selected_value_114;
                  selected_value_115=next_selected_value_115;
                  selected_value_116=next_selected_value_116;
                  selected_value_117=next_selected_value_117;
                  selected_value_118=next_selected_value_118;
                  selected_value_119=next_selected_value_119;
                  selected_value_120=next_selected_value_120;
                  selected_value_121=next_selected_value_121;
                  selected_value_122=next_selected_value_122;
                  selected_value_123=next_selected_value_123;
                  selected_value_124=next_selected_value_124;
                  selected_value_125=next_selected_value_125;
                  selected_value_126=next_selected_value_126;
                  selected_value_127=next_selected_value_127;
                  selected_value_128=next_selected_value_128;
                  selected_value_129=next_selected_value_129;
               }
               else
               {
                  next_selected_value_113=selected_value_105;
                  next_selected_value_114=selected_value_106;
                  next_selected_value_115=selected_value_110;
                  next_selected_value_116=selected_value_107;
                  next_selected_value_117=selected_value_108;
                  next_selected_value_118=computed_value_18;
                  next_selected_value_119=0;
                  next_selected_value_120=selected_value_109;
                  next_selected_value_121=selected_value_111;
                  next_selected_value_122=selected_value_112;
                  next_selected_value_123=false;
                  next_selected_value_124=false;
                  next_selected_value_125=true;
                  next_selected_value_126=global_state_20_value;
                  next_selected_value_127=api_result_7;
                  next_selected_value_128=0;
                  next_selected_value_129=_Period_value_3;
                  selected_value_113=next_selected_value_113;
                  selected_value_114=next_selected_value_114;
                  selected_value_115=next_selected_value_115;
                  selected_value_116=next_selected_value_116;
                  selected_value_117=next_selected_value_117;
                  selected_value_118=next_selected_value_118;
                  selected_value_119=next_selected_value_119;
                  selected_value_120=next_selected_value_120;
                  selected_value_121=next_selected_value_121;
                  selected_value_122=next_selected_value_122;
                  selected_value_123=next_selected_value_123;
                  selected_value_124=next_selected_value_124;
                  selected_value_125=next_selected_value_125;
                  selected_value_126=next_selected_value_126;
                  selected_value_127=next_selected_value_127;
                  selected_value_128=next_selected_value_128;
                  selected_value_129=next_selected_value_129;
               }
               if((selected_value_129==5))
               {
                  local_text_6="M5";
                  next_selected_value_130=selected_value_113;
                  next_selected_value_131=selected_value_114;
                  next_selected_value_132=selected_value_115;
                  next_selected_value_133=selected_value_116;
                  next_selected_value_134=selected_value_117;
                  next_selected_value_135=selected_value_118;
                  next_selected_value_136=selected_value_119;
                  next_selected_value_137=selected_value_120;
                  next_selected_value_138=selected_value_121;
                  next_selected_value_139=selected_value_122;
                  next_selected_value_140=selected_value_123;
                  next_selected_value_141=selected_value_124;
                  next_selected_value_142=selected_value_125;
                  next_selected_value_143=selected_value_126;
                  next_selected_value_144=selected_value_127;
                  next_selected_value_145=selected_value_128;
                  next_selected_value_146=selected_value_129;
                  selected_value_130=next_selected_value_130;
                  selected_value_131=next_selected_value_131;
                  selected_value_132=next_selected_value_132;
                  selected_value_133=next_selected_value_133;
                  selected_value_134=next_selected_value_134;
                  selected_value_135=next_selected_value_135;
                  selected_value_136=next_selected_value_136;
                  selected_value_137=next_selected_value_137;
                  selected_value_138=next_selected_value_138;
                  selected_value_139=next_selected_value_139;
                  selected_value_140=next_selected_value_140;
                  selected_value_141=next_selected_value_141;
                  selected_value_142=next_selected_value_142;
                  selected_value_143=next_selected_value_143;
                  selected_value_144=next_selected_value_144;
                  selected_value_145=next_selected_value_145;
                  selected_value_146=next_selected_value_146;
               }
               else
               {
                  next_selected_value_130=selected_value_113;
                  next_selected_value_131=selected_value_114;
                  next_selected_value_132=selected_value_115;
                  next_selected_value_133=selected_value_116;
                  next_selected_value_134=selected_value_117;
                  next_selected_value_135=selected_value_118;
                  next_selected_value_136=selected_value_119;
                  next_selected_value_137=selected_value_120;
                  next_selected_value_138=selected_value_121;
                  next_selected_value_139=selected_value_122;
                  next_selected_value_140=selected_value_123;
                  next_selected_value_141=selected_value_124;
                  next_selected_value_142=selected_value_125;
                  next_selected_value_143=selected_value_126;
                  next_selected_value_144=selected_value_127;
                  next_selected_value_145=selected_value_128;
                  next_selected_value_146=selected_value_129;
                  selected_value_130=next_selected_value_130;
                  selected_value_131=next_selected_value_131;
                  selected_value_132=next_selected_value_132;
                  selected_value_133=next_selected_value_133;
                  selected_value_134=next_selected_value_134;
                  selected_value_135=next_selected_value_135;
                  selected_value_136=next_selected_value_136;
                  selected_value_137=next_selected_value_137;
                  selected_value_138=next_selected_value_138;
                  selected_value_139=next_selected_value_139;
                  selected_value_140=next_selected_value_140;
                  selected_value_141=next_selected_value_141;
                  selected_value_142=next_selected_value_142;
                  selected_value_143=next_selected_value_143;
                  selected_value_144=next_selected_value_144;
                  selected_value_145=next_selected_value_145;
                  selected_value_146=next_selected_value_146;
               }
               if((selected_value_146==15))
               {
                  local_text_6="M15";
                  next_selected_value_147=selected_value_130;
                  next_selected_value_148=selected_value_131;
                  next_selected_value_149=selected_value_132;
                  next_selected_value_150=selected_value_133;
                  next_selected_value_151=selected_value_134;
                  next_selected_value_152=selected_value_135;
                  next_selected_value_153=selected_value_136;
                  next_selected_value_154=selected_value_137;
                  next_selected_value_155=selected_value_138;
                  next_selected_value_156=selected_value_139;
                  next_selected_value_157=selected_value_140;
                  next_selected_value_158=selected_value_141;
                  next_selected_value_159=selected_value_142;
                  next_selected_value_160=selected_value_143;
                  next_selected_value_161=selected_value_144;
                  next_selected_value_162=selected_value_145;
                  next_selected_value_163=selected_value_146;
                  selected_value_147=next_selected_value_147;
                  selected_value_148=next_selected_value_148;
                  selected_value_149=next_selected_value_149;
                  selected_value_150=next_selected_value_150;
                  selected_value_151=next_selected_value_151;
                  selected_value_152=next_selected_value_152;
                  selected_value_153=next_selected_value_153;
                  selected_value_154=next_selected_value_154;
                  selected_value_155=next_selected_value_155;
                  selected_value_156=next_selected_value_156;
                  selected_value_157=next_selected_value_157;
                  selected_value_158=next_selected_value_158;
                  selected_value_159=next_selected_value_159;
                  selected_value_160=next_selected_value_160;
                  selected_value_161=next_selected_value_161;
                  selected_value_162=next_selected_value_162;
                  selected_value_163=next_selected_value_163;
               }
               else
               {
                  next_selected_value_147=selected_value_130;
                  next_selected_value_148=selected_value_131;
                  next_selected_value_149=selected_value_132;
                  next_selected_value_150=selected_value_133;
                  next_selected_value_151=selected_value_134;
                  next_selected_value_152=selected_value_135;
                  next_selected_value_153=selected_value_136;
                  next_selected_value_154=selected_value_137;
                  next_selected_value_155=selected_value_138;
                  next_selected_value_156=selected_value_139;
                  next_selected_value_157=selected_value_140;
                  next_selected_value_158=selected_value_141;
                  next_selected_value_159=selected_value_142;
                  next_selected_value_160=selected_value_143;
                  next_selected_value_161=selected_value_144;
                  next_selected_value_162=selected_value_145;
                  next_selected_value_163=selected_value_146;
                  selected_value_147=next_selected_value_147;
                  selected_value_148=next_selected_value_148;
                  selected_value_149=next_selected_value_149;
                  selected_value_150=next_selected_value_150;
                  selected_value_151=next_selected_value_151;
                  selected_value_152=next_selected_value_152;
                  selected_value_153=next_selected_value_153;
                  selected_value_154=next_selected_value_154;
                  selected_value_155=next_selected_value_155;
                  selected_value_156=next_selected_value_156;
                  selected_value_157=next_selected_value_157;
                  selected_value_158=next_selected_value_158;
                  selected_value_159=next_selected_value_159;
                  selected_value_160=next_selected_value_160;
                  selected_value_161=next_selected_value_161;
                  selected_value_162=next_selected_value_162;
                  selected_value_163=next_selected_value_163;
               }
               if((selected_value_163==30))
               {
                  local_text_6="M30";
                  next_selected_value_164=selected_value_147;
                  next_selected_value_165=selected_value_148;
                  next_selected_value_166=selected_value_149;
                  next_selected_value_167=selected_value_150;
                  next_selected_value_168=selected_value_151;
                  next_selected_value_169=selected_value_152;
                  next_selected_value_170=selected_value_153;
                  next_selected_value_171=selected_value_154;
                  next_selected_value_172=selected_value_155;
                  next_selected_value_173=selected_value_156;
                  next_selected_value_174=selected_value_157;
                  next_selected_value_175=selected_value_158;
                  next_selected_value_176=selected_value_159;
                  next_selected_value_177=selected_value_160;
                  next_selected_value_178=selected_value_161;
                  next_selected_value_179=selected_value_162;
                  next_selected_value_180=selected_value_163;
                  selected_value_164=next_selected_value_164;
                  selected_value_165=next_selected_value_165;
                  selected_value_166=next_selected_value_166;
                  selected_value_167=next_selected_value_167;
                  selected_value_168=next_selected_value_168;
                  selected_value_169=next_selected_value_169;
                  selected_value_170=next_selected_value_170;
                  selected_value_171=next_selected_value_171;
                  selected_value_172=next_selected_value_172;
                  selected_value_173=next_selected_value_173;
                  selected_value_174=next_selected_value_174;
                  selected_value_175=next_selected_value_175;
                  selected_value_176=next_selected_value_176;
                  selected_value_177=next_selected_value_177;
                  selected_value_178=next_selected_value_178;
                  selected_value_179=next_selected_value_179;
                  selected_value_180=next_selected_value_180;
               }
               else
               {
                  next_selected_value_164=selected_value_147;
                  next_selected_value_165=selected_value_148;
                  next_selected_value_166=selected_value_149;
                  next_selected_value_167=selected_value_150;
                  next_selected_value_168=selected_value_151;
                  next_selected_value_169=selected_value_152;
                  next_selected_value_170=selected_value_153;
                  next_selected_value_171=selected_value_154;
                  next_selected_value_172=selected_value_155;
                  next_selected_value_173=selected_value_156;
                  next_selected_value_174=selected_value_157;
                  next_selected_value_175=selected_value_158;
                  next_selected_value_176=selected_value_159;
                  next_selected_value_177=selected_value_160;
                  next_selected_value_178=selected_value_161;
                  next_selected_value_179=selected_value_162;
                  next_selected_value_180=selected_value_163;
                  selected_value_164=next_selected_value_164;
                  selected_value_165=next_selected_value_165;
                  selected_value_166=next_selected_value_166;
                  selected_value_167=next_selected_value_167;
                  selected_value_168=next_selected_value_168;
                  selected_value_169=next_selected_value_169;
                  selected_value_170=next_selected_value_170;
                  selected_value_171=next_selected_value_171;
                  selected_value_172=next_selected_value_172;
                  selected_value_173=next_selected_value_173;
                  selected_value_174=next_selected_value_174;
                  selected_value_175=next_selected_value_175;
                  selected_value_176=next_selected_value_176;
                  selected_value_177=next_selected_value_177;
                  selected_value_178=next_selected_value_178;
                  selected_value_179=next_selected_value_179;
                  selected_value_180=next_selected_value_180;
               }
               if((selected_value_180==60))
               {
                  local_text_6="H1";
                  next_selected_value_181=selected_value_164;
                  next_selected_value_182=selected_value_165;
                  next_selected_value_183=selected_value_166;
                  next_selected_value_184=selected_value_167;
                  next_selected_value_185=selected_value_168;
                  next_selected_value_186=selected_value_169;
                  next_selected_value_187=selected_value_170;
                  next_selected_value_188=selected_value_171;
                  next_selected_value_189=selected_value_172;
                  next_selected_value_190=selected_value_173;
                  next_selected_value_191=selected_value_174;
                  next_selected_value_192=selected_value_175;
                  next_selected_value_193=selected_value_176;
                  next_selected_value_194=selected_value_177;
                  next_selected_value_195=selected_value_178;
                  next_selected_value_196=selected_value_179;
                  next_selected_value_197=selected_value_180;
                  selected_value_181=next_selected_value_181;
                  selected_value_182=next_selected_value_182;
                  selected_value_183=next_selected_value_183;
                  selected_value_184=next_selected_value_184;
                  selected_value_185=next_selected_value_185;
                  selected_value_186=next_selected_value_186;
                  selected_value_187=next_selected_value_187;
                  selected_value_188=next_selected_value_188;
                  selected_value_189=next_selected_value_189;
                  selected_value_190=next_selected_value_190;
                  selected_value_191=next_selected_value_191;
                  selected_value_192=next_selected_value_192;
                  selected_value_193=next_selected_value_193;
                  selected_value_194=next_selected_value_194;
                  selected_value_195=next_selected_value_195;
                  selected_value_196=next_selected_value_196;
                  selected_value_197=next_selected_value_197;
               }
               else
               {
                  next_selected_value_181=selected_value_164;
                  next_selected_value_182=selected_value_165;
                  next_selected_value_183=selected_value_166;
                  next_selected_value_184=selected_value_167;
                  next_selected_value_185=selected_value_168;
                  next_selected_value_186=selected_value_169;
                  next_selected_value_187=selected_value_170;
                  next_selected_value_188=selected_value_171;
                  next_selected_value_189=selected_value_172;
                  next_selected_value_190=selected_value_173;
                  next_selected_value_191=selected_value_174;
                  next_selected_value_192=selected_value_175;
                  next_selected_value_193=selected_value_176;
                  next_selected_value_194=selected_value_177;
                  next_selected_value_195=selected_value_178;
                  next_selected_value_196=selected_value_179;
                  next_selected_value_197=selected_value_180;
                  selected_value_181=next_selected_value_181;
                  selected_value_182=next_selected_value_182;
                  selected_value_183=next_selected_value_183;
                  selected_value_184=next_selected_value_184;
                  selected_value_185=next_selected_value_185;
                  selected_value_186=next_selected_value_186;
                  selected_value_187=next_selected_value_187;
                  selected_value_188=next_selected_value_188;
                  selected_value_189=next_selected_value_189;
                  selected_value_190=next_selected_value_190;
                  selected_value_191=next_selected_value_191;
                  selected_value_192=next_selected_value_192;
                  selected_value_193=next_selected_value_193;
                  selected_value_194=next_selected_value_194;
                  selected_value_195=next_selected_value_195;
                  selected_value_196=next_selected_value_196;
                  selected_value_197=next_selected_value_197;
               }
               if((selected_value_197==240))
               {
                  local_text_6="H4";
                  next_selected_value_198=selected_value_181;
                  next_selected_value_199=selected_value_182;
                  next_selected_value_200=selected_value_183;
                  next_selected_value_201=selected_value_184;
                  next_selected_value_202=selected_value_185;
                  next_selected_value_203=selected_value_186;
                  next_selected_value_204=selected_value_187;
                  next_selected_value_205=selected_value_188;
                  next_selected_value_206=selected_value_189;
                  next_selected_value_207=selected_value_190;
                  next_selected_value_208=selected_value_191;
                  next_selected_value_209=selected_value_192;
                  next_selected_value_210=selected_value_193;
                  next_selected_value_211=selected_value_194;
                  next_selected_value_212=selected_value_195;
                  next_selected_value_213=selected_value_196;
                  next_selected_value_214=selected_value_197;
                  selected_value_198=next_selected_value_198;
                  selected_value_199=next_selected_value_199;
                  selected_value_200=next_selected_value_200;
                  selected_value_201=next_selected_value_201;
                  selected_value_202=next_selected_value_202;
                  selected_value_203=next_selected_value_203;
                  selected_value_204=next_selected_value_204;
                  selected_value_205=next_selected_value_205;
                  selected_value_206=next_selected_value_206;
                  selected_value_207=next_selected_value_207;
                  selected_value_208=next_selected_value_208;
                  selected_value_209=next_selected_value_209;
                  selected_value_210=next_selected_value_210;
                  selected_value_211=next_selected_value_211;
                  selected_value_212=next_selected_value_212;
                  selected_value_213=next_selected_value_213;
                  selected_value_214=next_selected_value_214;
               }
               else
               {
                  next_selected_value_198=selected_value_181;
                  next_selected_value_199=selected_value_182;
                  next_selected_value_200=selected_value_183;
                  next_selected_value_201=selected_value_184;
                  next_selected_value_202=selected_value_185;
                  next_selected_value_203=selected_value_186;
                  next_selected_value_204=selected_value_187;
                  next_selected_value_205=selected_value_188;
                  next_selected_value_206=selected_value_189;
                  next_selected_value_207=selected_value_190;
                  next_selected_value_208=selected_value_191;
                  next_selected_value_209=selected_value_192;
                  next_selected_value_210=selected_value_193;
                  next_selected_value_211=selected_value_194;
                  next_selected_value_212=selected_value_195;
                  next_selected_value_213=selected_value_196;
                  next_selected_value_214=selected_value_197;
                  selected_value_198=next_selected_value_198;
                  selected_value_199=next_selected_value_199;
                  selected_value_200=next_selected_value_200;
                  selected_value_201=next_selected_value_201;
                  selected_value_202=next_selected_value_202;
                  selected_value_203=next_selected_value_203;
                  selected_value_204=next_selected_value_204;
                  selected_value_205=next_selected_value_205;
                  selected_value_206=next_selected_value_206;
                  selected_value_207=next_selected_value_207;
                  selected_value_208=next_selected_value_208;
                  selected_value_209=next_selected_value_209;
                  selected_value_210=next_selected_value_210;
                  selected_value_211=next_selected_value_211;
                  selected_value_212=next_selected_value_212;
                  selected_value_213=next_selected_value_213;
                  selected_value_214=next_selected_value_214;
               }
               if((selected_value_214==1440))
               {
                  local_text_6="D1";
                  next_selected_value_215=selected_value_198;
                  next_selected_value_216=selected_value_199;
                  next_selected_value_217=selected_value_200;
                  next_selected_value_218=selected_value_201;
                  next_selected_value_219=selected_value_202;
                  next_selected_value_220=selected_value_203;
                  next_selected_value_221=selected_value_204;
                  next_selected_value_222=selected_value_205;
                  next_selected_value_223=selected_value_206;
                  next_selected_value_224=selected_value_207;
                  next_selected_value_225=selected_value_208;
                  next_selected_value_226=selected_value_209;
                  next_selected_value_227=selected_value_210;
                  next_selected_value_228=selected_value_211;
                  next_selected_value_229=selected_value_212;
                  next_selected_value_230=selected_value_213;
                  next_selected_value_231=selected_value_214;
                  selected_value_215=next_selected_value_215;
                  selected_value_216=next_selected_value_216;
                  selected_value_217=next_selected_value_217;
                  selected_value_218=next_selected_value_218;
                  selected_value_219=next_selected_value_219;
                  selected_value_220=next_selected_value_220;
                  selected_value_221=next_selected_value_221;
                  selected_value_222=next_selected_value_222;
                  selected_value_223=next_selected_value_223;
                  selected_value_224=next_selected_value_224;
                  selected_value_225=next_selected_value_225;
                  selected_value_226=next_selected_value_226;
                  selected_value_227=next_selected_value_227;
                  selected_value_228=next_selected_value_228;
                  selected_value_229=next_selected_value_229;
                  selected_value_230=next_selected_value_230;
                  selected_value_231=next_selected_value_231;
               }
               else
               {
                  next_selected_value_215=selected_value_198;
                  next_selected_value_216=selected_value_199;
                  next_selected_value_217=selected_value_200;
                  next_selected_value_218=selected_value_201;
                  next_selected_value_219=selected_value_202;
                  next_selected_value_220=selected_value_203;
                  next_selected_value_221=selected_value_204;
                  next_selected_value_222=selected_value_205;
                  next_selected_value_223=selected_value_206;
                  next_selected_value_224=selected_value_207;
                  next_selected_value_225=selected_value_208;
                  next_selected_value_226=selected_value_209;
                  next_selected_value_227=selected_value_210;
                  next_selected_value_228=selected_value_211;
                  next_selected_value_229=selected_value_212;
                  next_selected_value_230=selected_value_213;
                  next_selected_value_231=selected_value_214;
                  selected_value_215=next_selected_value_215;
                  selected_value_216=next_selected_value_216;
                  selected_value_217=next_selected_value_217;
                  selected_value_218=next_selected_value_218;
                  selected_value_219=next_selected_value_219;
                  selected_value_220=next_selected_value_220;
                  selected_value_221=next_selected_value_221;
                  selected_value_222=next_selected_value_222;
                  selected_value_223=next_selected_value_223;
                  selected_value_224=next_selected_value_224;
                  selected_value_225=next_selected_value_225;
                  selected_value_226=next_selected_value_226;
                  selected_value_227=next_selected_value_227;
                  selected_value_228=next_selected_value_228;
                  selected_value_229=next_selected_value_229;
                  selected_value_230=next_selected_value_230;
                  selected_value_231=next_selected_value_231;
               }
               if((selected_value_231==10080))
               {
                  local_text_6="W1";
                  next_selected_value_232=selected_value_215;
                  next_selected_value_233=selected_value_216;
                  next_selected_value_234=selected_value_217;
                  next_selected_value_235=selected_value_218;
                  next_selected_value_236=selected_value_219;
                  next_selected_value_237=selected_value_220;
                  next_selected_value_238=selected_value_221;
                  next_selected_value_239=selected_value_222;
                  next_selected_value_240=selected_value_223;
                  next_selected_value_241=selected_value_224;
                  next_selected_value_242=selected_value_225;
                  next_selected_value_243=selected_value_226;
                  next_selected_value_244=selected_value_227;
                  next_selected_value_245=selected_value_228;
                  next_selected_value_246=selected_value_229;
                  next_selected_value_247=selected_value_230;
                  next_selected_value_248=selected_value_231;
                  selected_value_232=next_selected_value_232;
                  selected_value_233=next_selected_value_233;
                  selected_value_234=next_selected_value_234;
                  selected_value_235=next_selected_value_235;
                  selected_value_236=next_selected_value_236;
                  selected_value_237=next_selected_value_237;
                  selected_value_238=next_selected_value_238;
                  selected_value_239=next_selected_value_239;
                  selected_value_240=next_selected_value_240;
                  selected_value_241=next_selected_value_241;
                  selected_value_242=next_selected_value_242;
                  selected_value_243=next_selected_value_243;
                  selected_value_244=next_selected_value_244;
                  selected_value_245=next_selected_value_245;
                  selected_value_246=next_selected_value_246;
                  selected_value_247=next_selected_value_247;
                  selected_value_248=next_selected_value_248;
               }
               else
               {
                  next_selected_value_232=selected_value_215;
                  next_selected_value_233=selected_value_216;
                  next_selected_value_234=selected_value_217;
                  next_selected_value_235=selected_value_218;
                  next_selected_value_236=selected_value_219;
                  next_selected_value_237=selected_value_220;
                  next_selected_value_238=selected_value_221;
                  next_selected_value_239=selected_value_222;
                  next_selected_value_240=selected_value_223;
                  next_selected_value_241=selected_value_224;
                  next_selected_value_242=selected_value_225;
                  next_selected_value_243=selected_value_226;
                  next_selected_value_244=selected_value_227;
                  next_selected_value_245=selected_value_228;
                  next_selected_value_246=selected_value_229;
                  next_selected_value_247=selected_value_230;
                  next_selected_value_248=selected_value_231;
                  selected_value_232=next_selected_value_232;
                  selected_value_233=next_selected_value_233;
                  selected_value_234=next_selected_value_234;
                  selected_value_235=next_selected_value_235;
                  selected_value_236=next_selected_value_236;
                  selected_value_237=next_selected_value_237;
                  selected_value_238=next_selected_value_238;
                  selected_value_239=next_selected_value_239;
                  selected_value_240=next_selected_value_240;
                  selected_value_241=next_selected_value_241;
                  selected_value_242=next_selected_value_242;
                  selected_value_243=next_selected_value_243;
                  selected_value_244=next_selected_value_244;
                  selected_value_245=next_selected_value_245;
                  selected_value_246=next_selected_value_246;
                  selected_value_247=next_selected_value_247;
                  selected_value_248=next_selected_value_248;
               }
               computed_value_20=(uint)0xa8c0;
               if((selected_value_248==(int)computed_value_20))
               {
                  local_text_6="MN1";
                  next_selected_value_249=selected_value_232;
                  next_selected_value_250=selected_value_233;
                  next_selected_value_251=selected_value_234;
                  next_selected_value_252=selected_value_235;
                  next_selected_value_253=selected_value_236;
                  next_selected_value_254=selected_value_237;
                  next_selected_value_255=selected_value_238;
                  next_selected_value_256=selected_value_239;
                  next_selected_value_257=selected_value_240;
                  next_selected_value_258=selected_value_241;
                  next_selected_value_259=selected_value_242;
                  next_selected_value_260=selected_value_243;
                  next_selected_value_261=selected_value_244;
                  next_selected_value_262=selected_value_245;
                  next_selected_value_263=selected_value_246;
                  next_selected_value_264=selected_value_247;
                  selected_value_249=next_selected_value_249;
                  selected_value_250=next_selected_value_250;
                  selected_value_251=next_selected_value_251;
                  selected_value_252=next_selected_value_252;
                  selected_value_253=next_selected_value_253;
                  selected_value_254=next_selected_value_254;
                  selected_value_255=next_selected_value_255;
                  selected_value_256=next_selected_value_256;
                  selected_value_257=next_selected_value_257;
                  selected_value_258=next_selected_value_258;
                  selected_value_259=next_selected_value_259;
                  selected_value_260=next_selected_value_260;
                  selected_value_261=next_selected_value_261;
                  selected_value_262=next_selected_value_262;
                  selected_value_263=next_selected_value_263;
                  selected_value_264=next_selected_value_264;
               }
               else
               {
                  next_selected_value_249=selected_value_232;
                  next_selected_value_250=selected_value_233;
                  next_selected_value_251=selected_value_234;
                  next_selected_value_252=selected_value_235;
                  next_selected_value_253=selected_value_236;
                  next_selected_value_254=selected_value_237;
                  next_selected_value_255=selected_value_238;
                  next_selected_value_256=selected_value_239;
                  next_selected_value_257=selected_value_240;
                  next_selected_value_258=selected_value_241;
                  next_selected_value_259=selected_value_242;
                  next_selected_value_260=selected_value_243;
                  next_selected_value_261=selected_value_244;
                  next_selected_value_262=selected_value_245;
                  next_selected_value_263=selected_value_246;
                  next_selected_value_264=selected_value_247;
                  selected_value_249=next_selected_value_249;
                  selected_value_250=next_selected_value_250;
                  selected_value_251=next_selected_value_251;
                  selected_value_252=next_selected_value_252;
                  selected_value_253=next_selected_value_253;
                  selected_value_254=next_selected_value_254;
                  selected_value_255=next_selected_value_255;
                  selected_value_256=next_selected_value_256;
                  selected_value_257=next_selected_value_257;
                  selected_value_258=next_selected_value_258;
                  selected_value_259=next_selected_value_259;
                  selected_value_260=next_selected_value_260;
                  selected_value_261=next_selected_value_261;
                  selected_value_262=next_selected_value_262;
                  selected_value_263=next_selected_value_263;
                  selected_value_264=next_selected_value_264;
               }
               local_text_5+=local_text_6;
               local_text_5+=" ";
               computed_value_21=(long)selected_value_258;
               local_text_5+=IntegerToString(computed_value_21, 0, (ushort)(uint)0x20);
               local_text_5=local_text_5;
               ObjectDelete(local_text_5);
               ResetLastError();
               api_result_8=ObjectCreate(0, local_text_5, (ENUM_OBJECT)16, selected_value_264, selected_value_263, selected_value_249, selected_value_251, selected_value_250);
               if((api_result_8==false))
               {
                  _LastError_value_3=_LastError;
                  ResetLastError();
                  Print("RectangleCreate", ": failed to create a rectangle! Error code = ", _LastError_value_3);
                  next_selected_value_265=selected_value_252;
                  next_selected_value_266=selected_value_253;
                  next_selected_value_267=selected_value_256;
                  next_selected_value_268=selected_value_257;
                  next_selected_value_269=selected_value_258;
                  selected_value_265=next_selected_value_265;
                  selected_value_266=next_selected_value_266;
                  selected_value_267=next_selected_value_267;
                  selected_value_268=next_selected_value_268;
                  selected_value_269=next_selected_value_269;
               }
               else
               {
                  ObjectSetInteger(0, local_text_5, 6, selected_value_254);
                  computed_value_22=(long)selected_value_262;
                  ObjectSetInteger(0, local_text_5, 7, computed_value_22);
                  ObjectSetInteger(0, local_text_5, 8, 2);
                  computed_value_23=(int)(uint)selected_value_261;
                  computed_value_24=(long)computed_value_23;
                  ObjectSetInteger(0, local_text_5, 1031, computed_value_24);
                  computed_value_25=(int)(uint)selected_value_260;
                  computed_value_26=(long)computed_value_25;
                  ObjectSetInteger(0, local_text_5, 9, computed_value_26);
                  computed_value_27=(int)(uint)selected_value_259;
                  computed_value_28=(long)computed_value_27;
                  ObjectSetInteger(0, local_text_5, 1000, computed_value_28);
                  computed_value_29=(int)(uint)selected_value_259;
                  computed_value_30=(long)computed_value_29;
                  ObjectSetInteger(0, local_text_5, 17, computed_value_30);
                  ObjectSetInteger(0, local_text_5, 208, 0);
                  ObjectSetInteger(0, local_text_5, 207, selected_value_255);
                  api_result_9=ChartID();
                  ChartRedraw(api_result_9);
                  next_selected_value_265=selected_value_252;
                  next_selected_value_266=selected_value_253;
                  next_selected_value_267=selected_value_256;
                  next_selected_value_268=selected_value_257;
                  next_selected_value_269=selected_value_258;
                  selected_value_265=next_selected_value_265;
                  selected_value_266=next_selected_value_266;
                  selected_value_267=next_selected_value_267;
                  selected_value_268=next_selected_value_268;
                  selected_value_269=next_selected_value_269;
               }
               global_state_33_value=global_state_33;
               if((global_state_33_value==false))
               {
                  computed_value_31=(double)selected_value_267;
                  indicator_buffer_6[(uint)0x1]=computed_value_31;
                  computed_value_32=(double)selected_value_268;
                  indicator_buffer_7[(uint)0x1]=computed_value_32;
                  indicator_buffer_8[(uint)0x1]=selected_value_265;
                  indicator_buffer_9[(uint)0x1]=selected_value_266;
                  global_state_33=true;
                  next_selected_value_417=selected_value_269;
                  selected_value_417=next_selected_value_417;
               }
               else
               {
                  next_selected_value_417=selected_value_269;
                  selected_value_417=next_selected_value_417;
               }
            }
         }
         else
         {
            next_selected_value_417=bar_index;
            selected_value_417=next_selected_value_417;
         }
         computed_value_47=(int)((uint)selected_value_417+(uint)0x1);
         api_result_14=ArraySize(global_array_1);
         if((computed_value_47<api_result_14))
         {
            next_bar_index=computed_value_47;
            bar_index=next_bar_index;
            continue;
         }
         else
         {
            break;
         }
      }
   }
   local_text_6=NULL;
   local_text_5=NULL;
   local_text_4=NULL;
   local_text_3=NULL;
   local_text_2=NULL;
   local_text_1=NULL;
   return;
}

void UpdateText12()
{
   string local_text_1;
   string local_text_2;
   string local_text_3;
   string local_text_4;
   string local_text_5;
   string local_text_6;
   double received_value;
   double received_value_2;
   double received_value_3;
   int api_result=0;
   int bar_index=0;
   int global_array_2_value=0;
   int computed_value=0;
   int api_result_2=0;
   int selected_value=0;
   int selected_value_2=0;
   int selected_value_3=0;
   int selected_value_4=0;
   double property_value=0.0;
   double property_value_2=0.0;
   bool selected_value_5=false;
   int computed_value_2=0;
   int api_result_3=0;
   int selected_value_6=0;
   int selected_value_7=0;
   int selected_value_8=0;
   double property_value_3=0.0;
   bool wicksOfCandles_value=false;
   int computed_value_3=0;
   int computed_value_4=0;
   long computed_value_5=0;
   int computed_value_6=0;
   int computed_value_7=0;
   int api_result_4=0;
   int _LastError_value=0;
   double Low_value=0.0;
   double selected_value_9=0.0;
   double selected_value_10=0.0;
   double selected_value_11=0.0;
   double selected_value_12=0.0;
   double selected_value_13=0.0;
   int selected_value_14=0;
   int selected_value_15=0;
   int selected_value_16=0;
   int computed_value_8=0;
   int computed_value_9=0;
   long computed_value_10=0;
   int computed_value_11=0;
   int computed_value_12=0;
   int api_result_5=0;
   int _LastError_value_2=0;
   double Low_value_2=0.0;
   double selected_value_17=0.0;
   double selected_value_18=0.0;
   double selected_value_19=0.0;
   double selected_value_20=0.0;
   double selected_value_21=0.0;
   int selected_value_22=0;
   int selected_value_23=0;
   int selected_value_24=0;
   double selected_value_25=0.0;
   double selected_value_26=0.0;
   double selected_value_27=0.0;
   double selected_value_28=0.0;
   double selected_value_29=0.0;
   int selected_value_30=0;
   int selected_value_31=0;
   int selected_value_32=0;
   int computed_value_13=0;
   datetime api_result_6=0;
   uint computed_value_14=0;
   uint computed_value_15=0;
   int _Period_value=0;
   int _Period_value_2=0;
   double selected_value_33=0.0;
   double selected_value_34=0.0;
   double selected_value_35=0.0;
   double selected_value_36=0.0;
   int selected_value_37=0;
   datetime selected_value_38=0;
   int selected_value_39=0;
   int selected_value_40=0;
   int selected_value_41=0;
   double selected_value_42=0.0;
   double selected_value_43=0.0;
   double selected_value_44=0.0;
   double selected_value_45=0.0;
   int selected_value_46=0;
   datetime selected_value_47=0;
   int selected_value_48=0;
   int selected_value_49=0;
   int selected_value_50=0;
   double selected_value_51=0.0;
   double selected_value_52=0.0;
   double selected_value_53=0.0;
   double selected_value_54=0.0;
   int selected_value_55=0;
   datetime selected_value_56=0;
   int selected_value_57=0;
   int selected_value_58=0;
   int selected_value_59=0;
   double selected_value_60=0.0;
   double selected_value_61=0.0;
   double selected_value_62=0.0;
   double selected_value_63=0.0;
   int selected_value_64=0;
   datetime selected_value_65=0;
   int selected_value_66=0;
   int selected_value_67=0;
   int selected_value_68=0;
   double selected_value_69=0.0;
   double selected_value_70=0.0;
   double selected_value_71=0.0;
   double selected_value_72=0.0;
   int selected_value_73=0;
   datetime selected_value_74=0;
   int selected_value_75=0;
   int selected_value_76=0;
   int selected_value_77=0;
   double selected_value_78=0.0;
   double selected_value_79=0.0;
   double selected_value_80=0.0;
   double selected_value_81=0.0;
   int selected_value_82=0;
   datetime selected_value_83=0;
   int selected_value_84=0;
   int selected_value_85=0;
   int selected_value_86=0;
   double selected_value_87=0.0;
   double selected_value_88=0.0;
   double selected_value_89=0.0;
   double selected_value_90=0.0;
   int selected_value_91=0;
   datetime selected_value_92=0;
   int selected_value_93=0;
   int selected_value_94=0;
   int selected_value_95=0;
   double selected_value_96=0.0;
   double selected_value_97=0.0;
   double selected_value_98=0.0;
   double selected_value_99=0.0;
   int selected_value_100=0;
   datetime selected_value_101=0;
   int selected_value_102=0;
   int selected_value_103=0;
   int selected_value_104=0;
   uint computed_value_16=0;
   double selected_value_105=0.0;
   double selected_value_106=0.0;
   double selected_value_107=0.0;
   double selected_value_108=0.0;
   int selected_value_109=0;
   datetime selected_value_110=0;
   int selected_value_111=0;
   int selected_value_112=0;
   long computed_value_17=0;
   int global_state_19_value=0;
   color rectangleTop_value=0;
   datetime api_result_7=0;
   int _Period_value_3=0;
   int _Period_value_4=0;
   long computed_value_18=0;
   long computed_value_19=0;
   double selected_value_113=0.0;
   double selected_value_114=0.0;
   datetime selected_value_115=0;
   double selected_value_116=0.0;
   double selected_value_117=0.0;
   long selected_value_118=0;
   long selected_value_119=0;
   int selected_value_120=0;
   int selected_value_121=0;
   int selected_value_122=0;
   bool selected_value_123=false;
   bool selected_value_124=false;
   bool selected_value_125=false;
   int selected_value_126=0;
   datetime selected_value_127=0;
   int selected_value_128=0;
   int selected_value_129=0;
   double selected_value_130=0.0;
   double selected_value_131=0.0;
   datetime selected_value_132=0;
   double selected_value_133=0.0;
   double selected_value_134=0.0;
   long selected_value_135=0;
   long selected_value_136=0;
   int selected_value_137=0;
   int selected_value_138=0;
   int selected_value_139=0;
   bool selected_value_140=false;
   bool selected_value_141=false;
   bool selected_value_142=false;
   int selected_value_143=0;
   datetime selected_value_144=0;
   int selected_value_145=0;
   int selected_value_146=0;
   double selected_value_147=0.0;
   double selected_value_148=0.0;
   datetime selected_value_149=0;
   double selected_value_150=0.0;
   double selected_value_151=0.0;
   long selected_value_152=0;
   long selected_value_153=0;
   int selected_value_154=0;
   int selected_value_155=0;
   int selected_value_156=0;
   bool selected_value_157=false;
   bool selected_value_158=false;
   bool selected_value_159=false;
   int selected_value_160=0;
   datetime selected_value_161=0;
   int selected_value_162=0;
   int selected_value_163=0;
   double selected_value_164=0.0;
   double selected_value_165=0.0;
   datetime selected_value_166=0;
   double selected_value_167=0.0;
   double selected_value_168=0.0;
   long selected_value_169=0;
   long selected_value_170=0;
   int selected_value_171=0;
   int selected_value_172=0;
   int selected_value_173=0;
   bool selected_value_174=false;
   bool selected_value_175=false;
   bool selected_value_176=false;
   int selected_value_177=0;
   datetime selected_value_178=0;
   int selected_value_179=0;
   int selected_value_180=0;
   double selected_value_181=0.0;
   double selected_value_182=0.0;
   datetime selected_value_183=0;
   double selected_value_184=0.0;
   double selected_value_185=0.0;
   long selected_value_186=0;
   long selected_value_187=0;
   int selected_value_188=0;
   int selected_value_189=0;
   int selected_value_190=0;
   bool selected_value_191=false;
   bool selected_value_192=false;
   bool selected_value_193=false;
   int selected_value_194=0;
   datetime selected_value_195=0;
   int selected_value_196=0;
   int selected_value_197=0;
   double selected_value_198=0.0;
   double selected_value_199=0.0;
   datetime selected_value_200=0;
   double selected_value_201=0.0;
   double selected_value_202=0.0;
   long selected_value_203=0;
   long selected_value_204=0;
   int selected_value_205=0;
   int selected_value_206=0;
   int selected_value_207=0;
   bool selected_value_208=false;
   bool selected_value_209=false;
   bool selected_value_210=false;
   int selected_value_211=0;
   datetime selected_value_212=0;
   int selected_value_213=0;
   int selected_value_214=0;
   double selected_value_215=0.0;
   double selected_value_216=0.0;
   datetime selected_value_217=0;
   double selected_value_218=0.0;
   double selected_value_219=0.0;
   long selected_value_220=0;
   long selected_value_221=0;
   int selected_value_222=0;
   int selected_value_223=0;
   int selected_value_224=0;
   bool selected_value_225=false;
   bool selected_value_226=false;
   bool selected_value_227=false;
   int selected_value_228=0;
   datetime selected_value_229=0;
   int selected_value_230=0;
   int selected_value_231=0;
   double selected_value_232=0.0;
   double selected_value_233=0.0;
   datetime selected_value_234=0;
   double selected_value_235=0.0;
   double selected_value_236=0.0;
   long selected_value_237=0;
   long selected_value_238=0;
   int selected_value_239=0;
   int selected_value_240=0;
   int selected_value_241=0;
   bool selected_value_242=false;
   bool selected_value_243=false;
   bool selected_value_244=false;
   int selected_value_245=0;
   datetime selected_value_246=0;
   int selected_value_247=0;
   int selected_value_248=0;
   uint computed_value_20=0;
   double selected_value_249=0.0;
   double selected_value_250=0.0;
   datetime selected_value_251=0;
   double selected_value_252=0.0;
   double selected_value_253=0.0;
   long selected_value_254=0;
   long selected_value_255=0;
   int selected_value_256=0;
   int selected_value_257=0;
   int selected_value_258=0;
   bool selected_value_259=false;
   bool selected_value_260=false;
   bool selected_value_261=false;
   int selected_value_262=0;
   datetime selected_value_263=0;
   int selected_value_264=0;
   long computed_value_21=0;
   bool api_result_8=false;
   long computed_value_22=0;
   int computed_value_23=0;
   long computed_value_24=0;
   int computed_value_25=0;
   long computed_value_26=0;
   int computed_value_27=0;
   long computed_value_28=0;
   int computed_value_29=0;
   long computed_value_30=0;
   long api_result_9=0;
   int _LastError_value_3=0;
   double selected_value_265=0.0;
   double selected_value_266=0.0;
   int selected_value_267=0;
   int selected_value_268=0;
   int selected_value_269=0;
   bool global_state_34_value=false;
   double computed_value_31=0.0;
   double computed_value_32=0.0;
   datetime api_result_10=0;
   int global_state_19_value_2=0;
   color rectangleTop_value_2=0;
   datetime api_result_11=0;
   int _Period_value_5=0;
   int _Period_value_6=0;
   long computed_value_33=0;
   long computed_value_34=0;
   double selected_value_270=0.0;
   double selected_value_271=0.0;
   datetime selected_value_272=0;
   double selected_value_273=0.0;
   double selected_value_274=0.0;
   long selected_value_275=0;
   long selected_value_276=0;
   int selected_value_277=0;
   int selected_value_278=0;
   bool selected_value_279=false;
   bool selected_value_280=false;
   bool selected_value_281=false;
   int selected_value_282=0;
   datetime selected_value_283=0;
   int selected_value_284=0;
   int selected_value_285=0;
   double selected_value_286=0.0;
   double selected_value_287=0.0;
   datetime selected_value_288=0;
   double selected_value_289=0.0;
   double selected_value_290=0.0;
   long selected_value_291=0;
   long selected_value_292=0;
   int selected_value_293=0;
   int selected_value_294=0;
   bool selected_value_295=false;
   bool selected_value_296=false;
   bool selected_value_297=false;
   int selected_value_298=0;
   datetime selected_value_299=0;
   int selected_value_300=0;
   int selected_value_301=0;
   double selected_value_302=0.0;
   double selected_value_303=0.0;
   datetime selected_value_304=0;
   double selected_value_305=0.0;
   double selected_value_306=0.0;
   long selected_value_307=0;
   long selected_value_308=0;
   int selected_value_309=0;
   int selected_value_310=0;
   bool selected_value_311=false;
   bool selected_value_312=false;
   bool selected_value_313=false;
   int selected_value_314=0;
   datetime selected_value_315=0;
   int selected_value_316=0;
   int selected_value_317=0;
   double selected_value_318=0.0;
   double selected_value_319=0.0;
   datetime selected_value_320=0;
   double selected_value_321=0.0;
   double selected_value_322=0.0;
   long selected_value_323=0;
   long selected_value_324=0;
   int selected_value_325=0;
   int selected_value_326=0;
   bool selected_value_327=false;
   bool selected_value_328=false;
   bool selected_value_329=false;
   int selected_value_330=0;
   datetime selected_value_331=0;
   int selected_value_332=0;
   int selected_value_333=0;
   double selected_value_334=0.0;
   double selected_value_335=0.0;
   datetime selected_value_336=0;
   double selected_value_337=0.0;
   double selected_value_338=0.0;
   long selected_value_339=0;
   long selected_value_340=0;
   int selected_value_341=0;
   int selected_value_342=0;
   bool selected_value_343=false;
   bool selected_value_344=false;
   bool selected_value_345=false;
   int selected_value_346=0;
   datetime selected_value_347=0;
   int selected_value_348=0;
   int selected_value_349=0;
   double selected_value_350=0.0;
   double selected_value_351=0.0;
   datetime selected_value_352=0;
   double selected_value_353=0.0;
   double selected_value_354=0.0;
   long selected_value_355=0;
   long selected_value_356=0;
   int selected_value_357=0;
   int selected_value_358=0;
   bool selected_value_359=false;
   bool selected_value_360=false;
   bool selected_value_361=false;
   int selected_value_362=0;
   datetime selected_value_363=0;
   int selected_value_364=0;
   int selected_value_365=0;
   double selected_value_366=0.0;
   double selected_value_367=0.0;
   datetime selected_value_368=0;
   double selected_value_369=0.0;
   double selected_value_370=0.0;
   long selected_value_371=0;
   long selected_value_372=0;
   int selected_value_373=0;
   int selected_value_374=0;
   bool selected_value_375=false;
   bool selected_value_376=false;
   bool selected_value_377=false;
   int selected_value_378=0;
   datetime selected_value_379=0;
   int selected_value_380=0;
   int selected_value_381=0;
   double selected_value_382=0.0;
   double selected_value_383=0.0;
   datetime selected_value_384=0;
   double selected_value_385=0.0;
   double selected_value_386=0.0;
   long selected_value_387=0;
   long selected_value_388=0;
   int selected_value_389=0;
   int selected_value_390=0;
   bool selected_value_391=false;
   bool selected_value_392=false;
   bool selected_value_393=false;
   int selected_value_394=0;
   datetime selected_value_395=0;
   int selected_value_396=0;
   int selected_value_397=0;
   uint computed_value_35=0;
   double selected_value_398=0.0;
   double selected_value_399=0.0;
   datetime selected_value_400=0;
   double selected_value_401=0.0;
   double selected_value_402=0.0;
   long selected_value_403=0;
   long selected_value_404=0;
   int selected_value_405=0;
   int selected_value_406=0;
   bool selected_value_407=false;
   bool selected_value_408=false;
   bool selected_value_409=false;
   int selected_value_410=0;
   datetime selected_value_411=0;
   int selected_value_412=0;
   long computed_value_36=0;
   bool api_result_12=false;
   long computed_value_37=0;
   int computed_value_38=0;
   long computed_value_39=0;
   int computed_value_40=0;
   long computed_value_41=0;
   int computed_value_42=0;
   long computed_value_43=0;
   int computed_value_44=0;
   long computed_value_45=0;
   long api_result_13=0;
   int _LastError_value_4=0;
   double selected_value_413=0.0;
   double selected_value_414=0.0;
   int selected_value_415=0;
   int selected_value_416=0;
   bool global_state_36_value=false;
   double computed_value_46=0.0;
   int selected_value_417=0;
   int computed_value_47=0;
   int api_result_14=0;
   int next_bar_index=0;
   int next_selected_value=0;
   int next_selected_value_2=0;
   int next_selected_value_3=0;
   int next_selected_value_4=0;
   bool next_selected_value_5=false;
   int next_selected_value_6=0;
   int next_selected_value_7=0;
   int next_selected_value_8=0;
   double next_selected_value_9=0.0;
   double next_selected_value_10=0.0;
   double next_selected_value_11=0.0;
   double next_selected_value_12=0.0;
   double next_selected_value_13=0.0;
   int next_selected_value_14=0;
   int next_selected_value_15=0;
   int next_selected_value_16=0;
   double next_selected_value_17=0.0;
   double next_selected_value_18=0.0;
   double next_selected_value_19=0.0;
   double next_selected_value_20=0.0;
   double next_selected_value_21=0.0;
   int next_selected_value_22=0;
   int next_selected_value_23=0;
   int next_selected_value_24=0;
   double next_selected_value_25=0.0;
   double next_selected_value_26=0.0;
   double next_selected_value_27=0.0;
   double next_selected_value_28=0.0;
   double next_selected_value_29=0.0;
   int next_selected_value_30=0;
   int next_selected_value_31=0;
   int next_selected_value_32=0;
   double next_selected_value_33=0.0;
   double next_selected_value_34=0.0;
   double next_selected_value_35=0.0;
   double next_selected_value_36=0.0;
   int next_selected_value_37=0;
   datetime next_selected_value_38=0;
   int next_selected_value_39=0;
   int next_selected_value_40=0;
   int next_selected_value_41=0;
   double next_selected_value_42=0.0;
   double next_selected_value_43=0.0;
   double next_selected_value_44=0.0;
   double next_selected_value_45=0.0;
   int next_selected_value_46=0;
   datetime next_selected_value_47=0;
   int next_selected_value_48=0;
   int next_selected_value_49=0;
   int next_selected_value_50=0;
   double next_selected_value_51=0.0;
   double next_selected_value_52=0.0;
   double next_selected_value_53=0.0;
   double next_selected_value_54=0.0;
   int next_selected_value_55=0;
   datetime next_selected_value_56=0;
   int next_selected_value_57=0;
   int next_selected_value_58=0;
   int next_selected_value_59=0;
   double next_selected_value_60=0.0;
   double next_selected_value_61=0.0;
   double next_selected_value_62=0.0;
   double next_selected_value_63=0.0;
   int next_selected_value_64=0;
   datetime next_selected_value_65=0;
   int next_selected_value_66=0;
   int next_selected_value_67=0;
   int next_selected_value_68=0;
   double next_selected_value_69=0.0;
   double next_selected_value_70=0.0;
   double next_selected_value_71=0.0;
   double next_selected_value_72=0.0;
   int next_selected_value_73=0;
   datetime next_selected_value_74=0;
   int next_selected_value_75=0;
   int next_selected_value_76=0;
   int next_selected_value_77=0;
   double next_selected_value_78=0.0;
   double next_selected_value_79=0.0;
   double next_selected_value_80=0.0;
   double next_selected_value_81=0.0;
   int next_selected_value_82=0;
   datetime next_selected_value_83=0;
   int next_selected_value_84=0;
   int next_selected_value_85=0;
   int next_selected_value_86=0;
   double next_selected_value_87=0.0;
   double next_selected_value_88=0.0;
   double next_selected_value_89=0.0;
   double next_selected_value_90=0.0;
   int next_selected_value_91=0;
   datetime next_selected_value_92=0;
   int next_selected_value_93=0;
   int next_selected_value_94=0;
   int next_selected_value_95=0;
   double next_selected_value_96=0.0;
   double next_selected_value_97=0.0;
   double next_selected_value_98=0.0;
   double next_selected_value_99=0.0;
   int next_selected_value_100=0;
   datetime next_selected_value_101=0;
   int next_selected_value_102=0;
   int next_selected_value_103=0;
   int next_selected_value_104=0;
   double next_selected_value_105=0.0;
   double next_selected_value_106=0.0;
   double next_selected_value_107=0.0;
   double next_selected_value_108=0.0;
   int next_selected_value_109=0;
   datetime next_selected_value_110=0;
   int next_selected_value_111=0;
   int next_selected_value_112=0;
   double next_selected_value_113=0.0;
   double next_selected_value_114=0.0;
   datetime next_selected_value_115=0;
   double next_selected_value_116=0.0;
   double next_selected_value_117=0.0;
   long next_selected_value_118=0;
   long next_selected_value_119=0;
   int next_selected_value_120=0;
   int next_selected_value_121=0;
   int next_selected_value_122=0;
   bool next_selected_value_123=false;
   bool next_selected_value_124=false;
   bool next_selected_value_125=false;
   int next_selected_value_126=0;
   datetime next_selected_value_127=0;
   int next_selected_value_128=0;
   int next_selected_value_129=0;
   double next_selected_value_130=0.0;
   double next_selected_value_131=0.0;
   datetime next_selected_value_132=0;
   double next_selected_value_133=0.0;
   double next_selected_value_134=0.0;
   long next_selected_value_135=0;
   long next_selected_value_136=0;
   int next_selected_value_137=0;
   int next_selected_value_138=0;
   int next_selected_value_139=0;
   bool next_selected_value_140=false;
   bool next_selected_value_141=false;
   bool next_selected_value_142=false;
   int next_selected_value_143=0;
   datetime next_selected_value_144=0;
   int next_selected_value_145=0;
   int next_selected_value_146=0;
   double next_selected_value_147=0.0;
   double next_selected_value_148=0.0;
   datetime next_selected_value_149=0;
   double next_selected_value_150=0.0;
   double next_selected_value_151=0.0;
   long next_selected_value_152=0;
   long next_selected_value_153=0;
   int next_selected_value_154=0;
   int next_selected_value_155=0;
   int next_selected_value_156=0;
   bool next_selected_value_157=false;
   bool next_selected_value_158=false;
   bool next_selected_value_159=false;
   int next_selected_value_160=0;
   datetime next_selected_value_161=0;
   int next_selected_value_162=0;
   int next_selected_value_163=0;
   double next_selected_value_164=0.0;
   double next_selected_value_165=0.0;
   datetime next_selected_value_166=0;
   double next_selected_value_167=0.0;
   double next_selected_value_168=0.0;
   long next_selected_value_169=0;
   long next_selected_value_170=0;
   int next_selected_value_171=0;
   int next_selected_value_172=0;
   int next_selected_value_173=0;
   bool next_selected_value_174=false;
   bool next_selected_value_175=false;
   bool next_selected_value_176=false;
   int next_selected_value_177=0;
   datetime next_selected_value_178=0;
   int next_selected_value_179=0;
   int next_selected_value_180=0;
   double next_selected_value_181=0.0;
   double next_selected_value_182=0.0;
   datetime next_selected_value_183=0;
   double next_selected_value_184=0.0;
   double next_selected_value_185=0.0;
   long next_selected_value_186=0;
   long next_selected_value_187=0;
   int next_selected_value_188=0;
   int next_selected_value_189=0;
   int next_selected_value_190=0;
   bool next_selected_value_191=false;
   bool next_selected_value_192=false;
   bool next_selected_value_193=false;
   int next_selected_value_194=0;
   datetime next_selected_value_195=0;
   int next_selected_value_196=0;
   int next_selected_value_197=0;
   double next_selected_value_198=0.0;
   double next_selected_value_199=0.0;
   datetime next_selected_value_200=0;
   double next_selected_value_201=0.0;
   double next_selected_value_202=0.0;
   long next_selected_value_203=0;
   long next_selected_value_204=0;
   int next_selected_value_205=0;
   int next_selected_value_206=0;
   int next_selected_value_207=0;
   bool next_selected_value_208=false;
   bool next_selected_value_209=false;
   bool next_selected_value_210=false;
   int next_selected_value_211=0;
   datetime next_selected_value_212=0;
   int next_selected_value_213=0;
   int next_selected_value_214=0;
   double next_selected_value_215=0.0;
   double next_selected_value_216=0.0;
   datetime next_selected_value_217=0;
   double next_selected_value_218=0.0;
   double next_selected_value_219=0.0;
   long next_selected_value_220=0;
   long next_selected_value_221=0;
   int next_selected_value_222=0;
   int next_selected_value_223=0;
   int next_selected_value_224=0;
   bool next_selected_value_225=false;
   bool next_selected_value_226=false;
   bool next_selected_value_227=false;
   int next_selected_value_228=0;
   datetime next_selected_value_229=0;
   int next_selected_value_230=0;
   int next_selected_value_231=0;
   double next_selected_value_232=0.0;
   double next_selected_value_233=0.0;
   datetime next_selected_value_234=0;
   double next_selected_value_235=0.0;
   double next_selected_value_236=0.0;
   long next_selected_value_237=0;
   long next_selected_value_238=0;
   int next_selected_value_239=0;
   int next_selected_value_240=0;
   int next_selected_value_241=0;
   bool next_selected_value_242=false;
   bool next_selected_value_243=false;
   bool next_selected_value_244=false;
   int next_selected_value_245=0;
   datetime next_selected_value_246=0;
   int next_selected_value_247=0;
   int next_selected_value_248=0;
   double next_selected_value_249=0.0;
   double next_selected_value_250=0.0;
   datetime next_selected_value_251=0;
   double next_selected_value_252=0.0;
   double next_selected_value_253=0.0;
   long next_selected_value_254=0;
   long next_selected_value_255=0;
   int next_selected_value_256=0;
   int next_selected_value_257=0;
   int next_selected_value_258=0;
   bool next_selected_value_259=false;
   bool next_selected_value_260=false;
   bool next_selected_value_261=false;
   int next_selected_value_262=0;
   datetime next_selected_value_263=0;
   int next_selected_value_264=0;
   double next_selected_value_265=0.0;
   double next_selected_value_266=0.0;
   int next_selected_value_267=0;
   int next_selected_value_268=0;
   int next_selected_value_269=0;
   double next_selected_value_270=0.0;
   double next_selected_value_271=0.0;
   datetime next_selected_value_272=0;
   double next_selected_value_273=0.0;
   double next_selected_value_274=0.0;
   long next_selected_value_275=0;
   long next_selected_value_276=0;
   int next_selected_value_277=0;
   int next_selected_value_278=0;
   bool next_selected_value_279=false;
   bool next_selected_value_280=false;
   bool next_selected_value_281=false;
   int next_selected_value_282=0;
   datetime next_selected_value_283=0;
   int next_selected_value_284=0;
   int next_selected_value_285=0;
   double next_selected_value_286=0.0;
   double next_selected_value_287=0.0;
   datetime next_selected_value_288=0;
   double next_selected_value_289=0.0;
   double next_selected_value_290=0.0;
   long next_selected_value_291=0;
   long next_selected_value_292=0;
   int next_selected_value_293=0;
   int next_selected_value_294=0;
   bool next_selected_value_295=false;
   bool next_selected_value_296=false;
   bool next_selected_value_297=false;
   int next_selected_value_298=0;
   datetime next_selected_value_299=0;
   int next_selected_value_300=0;
   int next_selected_value_301=0;
   double next_selected_value_302=0.0;
   double next_selected_value_303=0.0;
   datetime next_selected_value_304=0;
   double next_selected_value_305=0.0;
   double next_selected_value_306=0.0;
   long next_selected_value_307=0;
   long next_selected_value_308=0;
   int next_selected_value_309=0;
   int next_selected_value_310=0;
   bool next_selected_value_311=false;
   bool next_selected_value_312=false;
   bool next_selected_value_313=false;
   int next_selected_value_314=0;
   datetime next_selected_value_315=0;
   int next_selected_value_316=0;
   int next_selected_value_317=0;
   double next_selected_value_318=0.0;
   double next_selected_value_319=0.0;
   datetime next_selected_value_320=0;
   double next_selected_value_321=0.0;
   double next_selected_value_322=0.0;
   long next_selected_value_323=0;
   long next_selected_value_324=0;
   int next_selected_value_325=0;
   int next_selected_value_326=0;
   bool next_selected_value_327=false;
   bool next_selected_value_328=false;
   bool next_selected_value_329=false;
   int next_selected_value_330=0;
   datetime next_selected_value_331=0;
   int next_selected_value_332=0;
   int next_selected_value_333=0;
   double next_selected_value_334=0.0;
   double next_selected_value_335=0.0;
   datetime next_selected_value_336=0;
   double next_selected_value_337=0.0;
   double next_selected_value_338=0.0;
   long next_selected_value_339=0;
   long next_selected_value_340=0;
   int next_selected_value_341=0;
   int next_selected_value_342=0;
   bool next_selected_value_343=false;
   bool next_selected_value_344=false;
   bool next_selected_value_345=false;
   int next_selected_value_346=0;
   datetime next_selected_value_347=0;
   int next_selected_value_348=0;
   int next_selected_value_349=0;
   double next_selected_value_350=0.0;
   double next_selected_value_351=0.0;
   datetime next_selected_value_352=0;
   double next_selected_value_353=0.0;
   double next_selected_value_354=0.0;
   long next_selected_value_355=0;
   long next_selected_value_356=0;
   int next_selected_value_357=0;
   int next_selected_value_358=0;
   bool next_selected_value_359=false;
   bool next_selected_value_360=false;
   bool next_selected_value_361=false;
   int next_selected_value_362=0;
   datetime next_selected_value_363=0;
   int next_selected_value_364=0;
   int next_selected_value_365=0;
   double next_selected_value_366=0.0;
   double next_selected_value_367=0.0;
   datetime next_selected_value_368=0;
   double next_selected_value_369=0.0;
   double next_selected_value_370=0.0;
   long next_selected_value_371=0;
   long next_selected_value_372=0;
   int next_selected_value_373=0;
   int next_selected_value_374=0;
   bool next_selected_value_375=false;
   bool next_selected_value_376=false;
   bool next_selected_value_377=false;
   int next_selected_value_378=0;
   datetime next_selected_value_379=0;
   int next_selected_value_380=0;
   int next_selected_value_381=0;
   double next_selected_value_382=0.0;
   double next_selected_value_383=0.0;
   datetime next_selected_value_384=0;
   double next_selected_value_385=0.0;
   double next_selected_value_386=0.0;
   long next_selected_value_387=0;
   long next_selected_value_388=0;
   int next_selected_value_389=0;
   int next_selected_value_390=0;
   bool next_selected_value_391=false;
   bool next_selected_value_392=false;
   bool next_selected_value_393=false;
   int next_selected_value_394=0;
   datetime next_selected_value_395=0;
   int next_selected_value_396=0;
   int next_selected_value_397=0;
   double next_selected_value_398=0.0;
   double next_selected_value_399=0.0;
   datetime next_selected_value_400=0;
   double next_selected_value_401=0.0;
   double next_selected_value_402=0.0;
   long next_selected_value_403=0;
   long next_selected_value_404=0;
   int next_selected_value_405=0;
   int next_selected_value_406=0;
   bool next_selected_value_407=false;
   bool next_selected_value_408=false;
   bool next_selected_value_409=false;
   int next_selected_value_410=0;
   datetime next_selected_value_411=0;
   int next_selected_value_412=0;
   double next_selected_value_413=0.0;
   double next_selected_value_414=0.0;
   int next_selected_value_415=0;
   int next_selected_value_416=0;
   int next_selected_value_417=0;
   local_text_1=NULL;
   local_text_2=NULL;
   local_text_3=NULL;
   local_text_4=NULL;
   local_text_5=NULL;
   local_text_6=NULL;
   api_result=ArraySize(global_array_2);
   if((0<api_result))
   {
      next_bar_index=0;
      bar_index=next_bar_index;
      while(true)
      {
         global_array_2_value=global_array_2[(uint)bar_index];
         if((global_array_2_value!=-1))
         {
            computed_value=(int)((uint)global_array_2_value+(uint)0x1);
            api_result_2=iBars(_Symbol, 0);
            if((computed_value<api_result_2))
            {
               next_selected_value=global_array_2_value;
               next_selected_value_2=bar_index;
               next_selected_value_3=0;
               next_selected_value_4=computed_value;
               selected_value=next_selected_value;
               selected_value_2=next_selected_value_2;
               selected_value_3=next_selected_value_3;
               selected_value_4=next_selected_value_4;
               while(true)
               {
                  received_value=iClose(_Symbol, 0, selected_value_4);
                  property_value=received_value;
                  received_value_2=iOpen(_Symbol, 0, selected_value_4);
                  property_value_2=received_value_2;
                  if((property_value<property_value_2))
                  {
                     next_selected_value_5=true;
                     selected_value_5=next_selected_value_5;
                  }
                  else
                  {
                     next_selected_value_5=false;
                     selected_value_5=next_selected_value_5;
                  }
                  if((selected_value_5==true))
                  {
                     next_selected_value_6=selected_value;
                     next_selected_value_7=selected_value_2;
                     next_selected_value_8=selected_value_4;
                     selected_value_6=next_selected_value_6;
                     selected_value_7=next_selected_value_7;
                     selected_value_8=next_selected_value_8;
                     break;
                  }
                  else
                  {
                     computed_value_2=(int)((uint)selected_value_4+(uint)0x1);
                     api_result_3=iBars(_Symbol, 0);
                     if((computed_value_2<api_result_3))
                     {
                        next_selected_value=selected_value;
                        next_selected_value_2=selected_value_2;
                        next_selected_value_3=selected_value_3;
                        next_selected_value_4=computed_value_2;
                        selected_value=next_selected_value;
                        selected_value_2=next_selected_value_2;
                        selected_value_3=next_selected_value_3;
                        selected_value_4=next_selected_value_4;
                        continue;
                     }
                     else
                     {
                        next_selected_value_6=selected_value;
                        next_selected_value_7=selected_value_2;
                        next_selected_value_8=selected_value_3;
                        selected_value_6=next_selected_value_6;
                        selected_value_7=next_selected_value_7;
                        selected_value_8=next_selected_value_8;
                        break;
                     }
                  }
               }
            }
            else
            {
               next_selected_value_6=global_array_2_value;
               next_selected_value_7=bar_index;
               next_selected_value_8=0;
               selected_value_6=next_selected_value_6;
               selected_value_7=next_selected_value_7;
               selected_value_8=next_selected_value_8;
            }
            received_value_3=iOpen(_Symbol, 0, selected_value_8);
            property_value_3=received_value_3;
            wicksOfCandles_value=wicksOfCandles;
            if((wicksOfCandles_value==false))
            {
               computed_value_9=(int)((uint)selected_value_8-(uint)selected_value_6);
               computed_value_10=((long)computed_value_9<0 ? -((long)computed_value_9) : (long)computed_value_9);
               computed_value_11=(int)((uint)((ulong)computed_value_10>>0));
               computed_value_12=(int)((uint)computed_value_11+(uint)0x1);
               api_result_5=iLowest(NULL, 0, 1, computed_value_12, selected_value_6);
               if((api_result_5==-1))
               {
                  _LastError_value_2=_LastError;
                  ResetLastError();
                  PrintFormat("Error in iLowest. Error code=%d", _LastError_value_2);
                  next_selected_value_17=property_value_3;
                  next_selected_value_18=0.0;
                  next_selected_value_19=property_value_3;
                  next_selected_value_20=0.0;
                  next_selected_value_21=0.0;
                  next_selected_value_22=selected_value_8;
                  next_selected_value_23=selected_value_6;
                  next_selected_value_24=selected_value_7;
                  selected_value_17=next_selected_value_17;
                  selected_value_18=next_selected_value_18;
                  selected_value_19=next_selected_value_19;
                  selected_value_20=next_selected_value_20;
                  selected_value_21=next_selected_value_21;
                  selected_value_22=next_selected_value_22;
                  selected_value_23=next_selected_value_23;
                  selected_value_24=next_selected_value_24;
               }
               else
               {
                  Low_value_2=Low[(uint)api_result_5];
                  next_selected_value_17=property_value_3;
                  next_selected_value_18=Low_value_2;
                  next_selected_value_19=property_value_3;
                  next_selected_value_20=Low_value_2;
                  next_selected_value_21=Low_value_2;
                  next_selected_value_22=selected_value_8;
                  next_selected_value_23=selected_value_6;
                  next_selected_value_24=selected_value_7;
                  selected_value_17=next_selected_value_17;
                  selected_value_18=next_selected_value_18;
                  selected_value_19=next_selected_value_19;
                  selected_value_20=next_selected_value_20;
                  selected_value_21=next_selected_value_21;
                  selected_value_22=next_selected_value_22;
                  selected_value_23=next_selected_value_23;
                  selected_value_24=next_selected_value_24;
               }
               next_selected_value_25=selected_value_17;
               next_selected_value_26=selected_value_18;
               next_selected_value_27=selected_value_19;
               next_selected_value_28=selected_value_20;
               next_selected_value_29=selected_value_21;
               next_selected_value_30=selected_value_22;
               next_selected_value_31=selected_value_23;
               next_selected_value_32=selected_value_24;
               selected_value_25=next_selected_value_25;
               selected_value_26=next_selected_value_26;
               selected_value_27=next_selected_value_27;
               selected_value_28=next_selected_value_28;
               selected_value_29=next_selected_value_29;
               selected_value_30=next_selected_value_30;
               selected_value_31=next_selected_value_31;
               selected_value_32=next_selected_value_32;
            }
            else
            {
               computed_value_3=(int)((uint)selected_value_8+(uint)0x1);
               computed_value_4=(int)((uint)computed_value_3-(uint)selected_value_6);
               computed_value_5=((long)computed_value_4<0 ? -((long)computed_value_4) : (long)computed_value_4);
               computed_value_6=(int)((uint)((ulong)computed_value_5>>0));
               computed_value_7=(int)((uint)computed_value_6+(uint)0x1);
               api_result_4=iLowest(NULL, 0, 1, computed_value_7, selected_value_6);
               if((api_result_4==-1))
               {
                  _LastError_value=_LastError;
                  ResetLastError();
                  PrintFormat("Error in iLowest. Error code=%d", _LastError_value);
                  next_selected_value_9=property_value_3;
                  next_selected_value_10=0.0;
                  next_selected_value_11=property_value_3;
                  next_selected_value_12=0.0;
                  next_selected_value_13=0.0;
                  next_selected_value_14=selected_value_8;
                  next_selected_value_15=selected_value_6;
                  next_selected_value_16=selected_value_7;
                  selected_value_9=next_selected_value_9;
                  selected_value_10=next_selected_value_10;
                  selected_value_11=next_selected_value_11;
                  selected_value_12=next_selected_value_12;
                  selected_value_13=next_selected_value_13;
                  selected_value_14=next_selected_value_14;
                  selected_value_15=next_selected_value_15;
                  selected_value_16=next_selected_value_16;
               }
               else
               {
                  Low_value=Low[(uint)api_result_4];
                  next_selected_value_9=property_value_3;
                  next_selected_value_10=Low_value;
                  next_selected_value_11=property_value_3;
                  next_selected_value_12=Low_value;
                  next_selected_value_13=Low_value;
                  next_selected_value_14=selected_value_8;
                  next_selected_value_15=selected_value_6;
                  next_selected_value_16=selected_value_7;
                  selected_value_9=next_selected_value_9;
                  selected_value_10=next_selected_value_10;
                  selected_value_11=next_selected_value_11;
                  selected_value_12=next_selected_value_12;
                  selected_value_13=next_selected_value_13;
                  selected_value_14=next_selected_value_14;
                  selected_value_15=next_selected_value_15;
                  selected_value_16=next_selected_value_16;
               }
               computed_value_8=(int)((uint)selected_value_14+(uint)0x1);
               next_selected_value_25=selected_value_9;
               next_selected_value_26=selected_value_10;
               next_selected_value_27=selected_value_11;
               next_selected_value_28=selected_value_12;
               next_selected_value_29=selected_value_13;
               next_selected_value_30=computed_value_8;
               next_selected_value_31=selected_value_15;
               next_selected_value_32=selected_value_16;
               selected_value_25=next_selected_value_25;
               selected_value_26=next_selected_value_26;
               selected_value_27=next_selected_value_27;
               selected_value_28=next_selected_value_28;
               selected_value_29=next_selected_value_29;
               selected_value_30=next_selected_value_30;
               selected_value_31=next_selected_value_31;
               selected_value_32=next_selected_value_32;
            }
            computed_value_13=ReadSharedValue(selected_value_31, selected_value_29);
            if((computed_value_13<0))
            {
               api_result_10=iTime(_Symbol, 0, 0);
               global_state_19_value_2=global_state_19;
               rectangleTop_value_2=rectangleTop;
               api_result_11=iTime(_Symbol, 0, selected_value_30);
               local_text_1=global_text_8;
               local_text_1+="RectTop";
               local_text_1+=" ";
               local_text_1+="Block ";
               _Period_value_5=_Period;
               local_text_2=NULL;
               local_text_2="NONE";
               _Period_value_6=_Period;
               computed_value_33=(long)((((ulong)(uint)0x0<<32)|(ulong)(uint)rectangleTop_value_2));
               if((_Period_value_6==1))
               {
                  computed_value_34=(long)((((ulong)(uint)0x0<<32)|(ulong)(uint)rectangleTop_value_2));
                  local_text_2="M1";
                  next_selected_value_270=selected_value_27;
                  next_selected_value_271=selected_value_28;
                  next_selected_value_272=api_result_10;
                  next_selected_value_273=selected_value_25;
                  next_selected_value_274=selected_value_26;
                  next_selected_value_275=computed_value_34;
                  next_selected_value_276=0;
                  next_selected_value_277=selected_value_30;
                  next_selected_value_278=selected_value_32;
                  next_selected_value_279=false;
                  next_selected_value_280=false;
                  next_selected_value_281=false;
                  next_selected_value_282=global_state_19_value_2;
                  next_selected_value_283=api_result_11;
                  next_selected_value_284=0;
                  next_selected_value_285=_Period_value_5;
                  selected_value_270=next_selected_value_270;
                  selected_value_271=next_selected_value_271;
                  selected_value_272=next_selected_value_272;
                  selected_value_273=next_selected_value_273;
                  selected_value_274=next_selected_value_274;
                  selected_value_275=next_selected_value_275;
                  selected_value_276=next_selected_value_276;
                  selected_value_277=next_selected_value_277;
                  selected_value_278=next_selected_value_278;
                  selected_value_279=next_selected_value_279;
                  selected_value_280=next_selected_value_280;
                  selected_value_281=next_selected_value_281;
                  selected_value_282=next_selected_value_282;
                  selected_value_283=next_selected_value_283;
                  selected_value_284=next_selected_value_284;
                  selected_value_285=next_selected_value_285;
               }
               else
               {
                  next_selected_value_270=selected_value_27;
                  next_selected_value_271=selected_value_28;
                  next_selected_value_272=api_result_10;
                  next_selected_value_273=selected_value_25;
                  next_selected_value_274=selected_value_26;
                  next_selected_value_275=computed_value_33;
                  next_selected_value_276=0;
                  next_selected_value_277=selected_value_30;
                  next_selected_value_278=selected_value_32;
                  next_selected_value_279=false;
                  next_selected_value_280=false;
                  next_selected_value_281=false;
                  next_selected_value_282=global_state_19_value_2;
                  next_selected_value_283=api_result_11;
                  next_selected_value_284=0;
                  next_selected_value_285=_Period_value_5;
                  selected_value_270=next_selected_value_270;
                  selected_value_271=next_selected_value_271;
                  selected_value_272=next_selected_value_272;
                  selected_value_273=next_selected_value_273;
                  selected_value_274=next_selected_value_274;
                  selected_value_275=next_selected_value_275;
                  selected_value_276=next_selected_value_276;
                  selected_value_277=next_selected_value_277;
                  selected_value_278=next_selected_value_278;
                  selected_value_279=next_selected_value_279;
                  selected_value_280=next_selected_value_280;
                  selected_value_281=next_selected_value_281;
                  selected_value_282=next_selected_value_282;
                  selected_value_283=next_selected_value_283;
                  selected_value_284=next_selected_value_284;
                  selected_value_285=next_selected_value_285;
               }
               if((selected_value_285==5))
               {
                  local_text_2="M5";
                  next_selected_value_286=selected_value_270;
                  next_selected_value_287=selected_value_271;
                  next_selected_value_288=selected_value_272;
                  next_selected_value_289=selected_value_273;
                  next_selected_value_290=selected_value_274;
                  next_selected_value_291=selected_value_275;
                  next_selected_value_292=selected_value_276;
                  next_selected_value_293=selected_value_277;
                  next_selected_value_294=selected_value_278;
                  next_selected_value_295=selected_value_279;
                  next_selected_value_296=selected_value_280;
                  next_selected_value_297=selected_value_281;
                  next_selected_value_298=selected_value_282;
                  next_selected_value_299=selected_value_283;
                  next_selected_value_300=selected_value_284;
                  next_selected_value_301=selected_value_285;
                  selected_value_286=next_selected_value_286;
                  selected_value_287=next_selected_value_287;
                  selected_value_288=next_selected_value_288;
                  selected_value_289=next_selected_value_289;
                  selected_value_290=next_selected_value_290;
                  selected_value_291=next_selected_value_291;
                  selected_value_292=next_selected_value_292;
                  selected_value_293=next_selected_value_293;
                  selected_value_294=next_selected_value_294;
                  selected_value_295=next_selected_value_295;
                  selected_value_296=next_selected_value_296;
                  selected_value_297=next_selected_value_297;
                  selected_value_298=next_selected_value_298;
                  selected_value_299=next_selected_value_299;
                  selected_value_300=next_selected_value_300;
                  selected_value_301=next_selected_value_301;
               }
               else
               {
                  next_selected_value_286=selected_value_270;
                  next_selected_value_287=selected_value_271;
                  next_selected_value_288=selected_value_272;
                  next_selected_value_289=selected_value_273;
                  next_selected_value_290=selected_value_274;
                  next_selected_value_291=selected_value_275;
                  next_selected_value_292=selected_value_276;
                  next_selected_value_293=selected_value_277;
                  next_selected_value_294=selected_value_278;
                  next_selected_value_295=selected_value_279;
                  next_selected_value_296=selected_value_280;
                  next_selected_value_297=selected_value_281;
                  next_selected_value_298=selected_value_282;
                  next_selected_value_299=selected_value_283;
                  next_selected_value_300=selected_value_284;
                  next_selected_value_301=selected_value_285;
                  selected_value_286=next_selected_value_286;
                  selected_value_287=next_selected_value_287;
                  selected_value_288=next_selected_value_288;
                  selected_value_289=next_selected_value_289;
                  selected_value_290=next_selected_value_290;
                  selected_value_291=next_selected_value_291;
                  selected_value_292=next_selected_value_292;
                  selected_value_293=next_selected_value_293;
                  selected_value_294=next_selected_value_294;
                  selected_value_295=next_selected_value_295;
                  selected_value_296=next_selected_value_296;
                  selected_value_297=next_selected_value_297;
                  selected_value_298=next_selected_value_298;
                  selected_value_299=next_selected_value_299;
                  selected_value_300=next_selected_value_300;
                  selected_value_301=next_selected_value_301;
               }
               if((selected_value_301==15))
               {
                  local_text_2="M15";
                  next_selected_value_302=selected_value_286;
                  next_selected_value_303=selected_value_287;
                  next_selected_value_304=selected_value_288;
                  next_selected_value_305=selected_value_289;
                  next_selected_value_306=selected_value_290;
                  next_selected_value_307=selected_value_291;
                  next_selected_value_308=selected_value_292;
                  next_selected_value_309=selected_value_293;
                  next_selected_value_310=selected_value_294;
                  next_selected_value_311=selected_value_295;
                  next_selected_value_312=selected_value_296;
                  next_selected_value_313=selected_value_297;
                  next_selected_value_314=selected_value_298;
                  next_selected_value_315=selected_value_299;
                  next_selected_value_316=selected_value_300;
                  next_selected_value_317=selected_value_301;
                  selected_value_302=next_selected_value_302;
                  selected_value_303=next_selected_value_303;
                  selected_value_304=next_selected_value_304;
                  selected_value_305=next_selected_value_305;
                  selected_value_306=next_selected_value_306;
                  selected_value_307=next_selected_value_307;
                  selected_value_308=next_selected_value_308;
                  selected_value_309=next_selected_value_309;
                  selected_value_310=next_selected_value_310;
                  selected_value_311=next_selected_value_311;
                  selected_value_312=next_selected_value_312;
                  selected_value_313=next_selected_value_313;
                  selected_value_314=next_selected_value_314;
                  selected_value_315=next_selected_value_315;
                  selected_value_316=next_selected_value_316;
                  selected_value_317=next_selected_value_317;
               }
               else
               {
                  next_selected_value_302=selected_value_286;
                  next_selected_value_303=selected_value_287;
                  next_selected_value_304=selected_value_288;
                  next_selected_value_305=selected_value_289;
                  next_selected_value_306=selected_value_290;
                  next_selected_value_307=selected_value_291;
                  next_selected_value_308=selected_value_292;
                  next_selected_value_309=selected_value_293;
                  next_selected_value_310=selected_value_294;
                  next_selected_value_311=selected_value_295;
                  next_selected_value_312=selected_value_296;
                  next_selected_value_313=selected_value_297;
                  next_selected_value_314=selected_value_298;
                  next_selected_value_315=selected_value_299;
                  next_selected_value_316=selected_value_300;
                  next_selected_value_317=selected_value_301;
                  selected_value_302=next_selected_value_302;
                  selected_value_303=next_selected_value_303;
                  selected_value_304=next_selected_value_304;
                  selected_value_305=next_selected_value_305;
                  selected_value_306=next_selected_value_306;
                  selected_value_307=next_selected_value_307;
                  selected_value_308=next_selected_value_308;
                  selected_value_309=next_selected_value_309;
                  selected_value_310=next_selected_value_310;
                  selected_value_311=next_selected_value_311;
                  selected_value_312=next_selected_value_312;
                  selected_value_313=next_selected_value_313;
                  selected_value_314=next_selected_value_314;
                  selected_value_315=next_selected_value_315;
                  selected_value_316=next_selected_value_316;
                  selected_value_317=next_selected_value_317;
               }
               if((selected_value_317==30))
               {
                  local_text_2="M30";
                  next_selected_value_318=selected_value_302;
                  next_selected_value_319=selected_value_303;
                  next_selected_value_320=selected_value_304;
                  next_selected_value_321=selected_value_305;
                  next_selected_value_322=selected_value_306;
                  next_selected_value_323=selected_value_307;
                  next_selected_value_324=selected_value_308;
                  next_selected_value_325=selected_value_309;
                  next_selected_value_326=selected_value_310;
                  next_selected_value_327=selected_value_311;
                  next_selected_value_328=selected_value_312;
                  next_selected_value_329=selected_value_313;
                  next_selected_value_330=selected_value_314;
                  next_selected_value_331=selected_value_315;
                  next_selected_value_332=selected_value_316;
                  next_selected_value_333=selected_value_317;
                  selected_value_318=next_selected_value_318;
                  selected_value_319=next_selected_value_319;
                  selected_value_320=next_selected_value_320;
                  selected_value_321=next_selected_value_321;
                  selected_value_322=next_selected_value_322;
                  selected_value_323=next_selected_value_323;
                  selected_value_324=next_selected_value_324;
                  selected_value_325=next_selected_value_325;
                  selected_value_326=next_selected_value_326;
                  selected_value_327=next_selected_value_327;
                  selected_value_328=next_selected_value_328;
                  selected_value_329=next_selected_value_329;
                  selected_value_330=next_selected_value_330;
                  selected_value_331=next_selected_value_331;
                  selected_value_332=next_selected_value_332;
                  selected_value_333=next_selected_value_333;
               }
               else
               {
                  next_selected_value_318=selected_value_302;
                  next_selected_value_319=selected_value_303;
                  next_selected_value_320=selected_value_304;
                  next_selected_value_321=selected_value_305;
                  next_selected_value_322=selected_value_306;
                  next_selected_value_323=selected_value_307;
                  next_selected_value_324=selected_value_308;
                  next_selected_value_325=selected_value_309;
                  next_selected_value_326=selected_value_310;
                  next_selected_value_327=selected_value_311;
                  next_selected_value_328=selected_value_312;
                  next_selected_value_329=selected_value_313;
                  next_selected_value_330=selected_value_314;
                  next_selected_value_331=selected_value_315;
                  next_selected_value_332=selected_value_316;
                  next_selected_value_333=selected_value_317;
                  selected_value_318=next_selected_value_318;
                  selected_value_319=next_selected_value_319;
                  selected_value_320=next_selected_value_320;
                  selected_value_321=next_selected_value_321;
                  selected_value_322=next_selected_value_322;
                  selected_value_323=next_selected_value_323;
                  selected_value_324=next_selected_value_324;
                  selected_value_325=next_selected_value_325;
                  selected_value_326=next_selected_value_326;
                  selected_value_327=next_selected_value_327;
                  selected_value_328=next_selected_value_328;
                  selected_value_329=next_selected_value_329;
                  selected_value_330=next_selected_value_330;
                  selected_value_331=next_selected_value_331;
                  selected_value_332=next_selected_value_332;
                  selected_value_333=next_selected_value_333;
               }
               if((selected_value_333==60))
               {
                  local_text_2="H1";
                  next_selected_value_334=selected_value_318;
                  next_selected_value_335=selected_value_319;
                  next_selected_value_336=selected_value_320;
                  next_selected_value_337=selected_value_321;
                  next_selected_value_338=selected_value_322;
                  next_selected_value_339=selected_value_323;
                  next_selected_value_340=selected_value_324;
                  next_selected_value_341=selected_value_325;
                  next_selected_value_342=selected_value_326;
                  next_selected_value_343=selected_value_327;
                  next_selected_value_344=selected_value_328;
                  next_selected_value_345=selected_value_329;
                  next_selected_value_346=selected_value_330;
                  next_selected_value_347=selected_value_331;
                  next_selected_value_348=selected_value_332;
                  next_selected_value_349=selected_value_333;
                  selected_value_334=next_selected_value_334;
                  selected_value_335=next_selected_value_335;
                  selected_value_336=next_selected_value_336;
                  selected_value_337=next_selected_value_337;
                  selected_value_338=next_selected_value_338;
                  selected_value_339=next_selected_value_339;
                  selected_value_340=next_selected_value_340;
                  selected_value_341=next_selected_value_341;
                  selected_value_342=next_selected_value_342;
                  selected_value_343=next_selected_value_343;
                  selected_value_344=next_selected_value_344;
                  selected_value_345=next_selected_value_345;
                  selected_value_346=next_selected_value_346;
                  selected_value_347=next_selected_value_347;
                  selected_value_348=next_selected_value_348;
                  selected_value_349=next_selected_value_349;
               }
               else
               {
                  next_selected_value_334=selected_value_318;
                  next_selected_value_335=selected_value_319;
                  next_selected_value_336=selected_value_320;
                  next_selected_value_337=selected_value_321;
                  next_selected_value_338=selected_value_322;
                  next_selected_value_339=selected_value_323;
                  next_selected_value_340=selected_value_324;
                  next_selected_value_341=selected_value_325;
                  next_selected_value_342=selected_value_326;
                  next_selected_value_343=selected_value_327;
                  next_selected_value_344=selected_value_328;
                  next_selected_value_345=selected_value_329;
                  next_selected_value_346=selected_value_330;
                  next_selected_value_347=selected_value_331;
                  next_selected_value_348=selected_value_332;
                  next_selected_value_349=selected_value_333;
                  selected_value_334=next_selected_value_334;
                  selected_value_335=next_selected_value_335;
                  selected_value_336=next_selected_value_336;
                  selected_value_337=next_selected_value_337;
                  selected_value_338=next_selected_value_338;
                  selected_value_339=next_selected_value_339;
                  selected_value_340=next_selected_value_340;
                  selected_value_341=next_selected_value_341;
                  selected_value_342=next_selected_value_342;
                  selected_value_343=next_selected_value_343;
                  selected_value_344=next_selected_value_344;
                  selected_value_345=next_selected_value_345;
                  selected_value_346=next_selected_value_346;
                  selected_value_347=next_selected_value_347;
                  selected_value_348=next_selected_value_348;
                  selected_value_349=next_selected_value_349;
               }
               if((selected_value_349==240))
               {
                  local_text_2="H4";
                  next_selected_value_350=selected_value_334;
                  next_selected_value_351=selected_value_335;
                  next_selected_value_352=selected_value_336;
                  next_selected_value_353=selected_value_337;
                  next_selected_value_354=selected_value_338;
                  next_selected_value_355=selected_value_339;
                  next_selected_value_356=selected_value_340;
                  next_selected_value_357=selected_value_341;
                  next_selected_value_358=selected_value_342;
                  next_selected_value_359=selected_value_343;
                  next_selected_value_360=selected_value_344;
                  next_selected_value_361=selected_value_345;
                  next_selected_value_362=selected_value_346;
                  next_selected_value_363=selected_value_347;
                  next_selected_value_364=selected_value_348;
                  next_selected_value_365=selected_value_349;
                  selected_value_350=next_selected_value_350;
                  selected_value_351=next_selected_value_351;
                  selected_value_352=next_selected_value_352;
                  selected_value_353=next_selected_value_353;
                  selected_value_354=next_selected_value_354;
                  selected_value_355=next_selected_value_355;
                  selected_value_356=next_selected_value_356;
                  selected_value_357=next_selected_value_357;
                  selected_value_358=next_selected_value_358;
                  selected_value_359=next_selected_value_359;
                  selected_value_360=next_selected_value_360;
                  selected_value_361=next_selected_value_361;
                  selected_value_362=next_selected_value_362;
                  selected_value_363=next_selected_value_363;
                  selected_value_364=next_selected_value_364;
                  selected_value_365=next_selected_value_365;
               }
               else
               {
                  next_selected_value_350=selected_value_334;
                  next_selected_value_351=selected_value_335;
                  next_selected_value_352=selected_value_336;
                  next_selected_value_353=selected_value_337;
                  next_selected_value_354=selected_value_338;
                  next_selected_value_355=selected_value_339;
                  next_selected_value_356=selected_value_340;
                  next_selected_value_357=selected_value_341;
                  next_selected_value_358=selected_value_342;
                  next_selected_value_359=selected_value_343;
                  next_selected_value_360=selected_value_344;
                  next_selected_value_361=selected_value_345;
                  next_selected_value_362=selected_value_346;
                  next_selected_value_363=selected_value_347;
                  next_selected_value_364=selected_value_348;
                  next_selected_value_365=selected_value_349;
                  selected_value_350=next_selected_value_350;
                  selected_value_351=next_selected_value_351;
                  selected_value_352=next_selected_value_352;
                  selected_value_353=next_selected_value_353;
                  selected_value_354=next_selected_value_354;
                  selected_value_355=next_selected_value_355;
                  selected_value_356=next_selected_value_356;
                  selected_value_357=next_selected_value_357;
                  selected_value_358=next_selected_value_358;
                  selected_value_359=next_selected_value_359;
                  selected_value_360=next_selected_value_360;
                  selected_value_361=next_selected_value_361;
                  selected_value_362=next_selected_value_362;
                  selected_value_363=next_selected_value_363;
                  selected_value_364=next_selected_value_364;
                  selected_value_365=next_selected_value_365;
               }
               if((selected_value_365==1440))
               {
                  local_text_2="D1";
                  next_selected_value_366=selected_value_350;
                  next_selected_value_367=selected_value_351;
                  next_selected_value_368=selected_value_352;
                  next_selected_value_369=selected_value_353;
                  next_selected_value_370=selected_value_354;
                  next_selected_value_371=selected_value_355;
                  next_selected_value_372=selected_value_356;
                  next_selected_value_373=selected_value_357;
                  next_selected_value_374=selected_value_358;
                  next_selected_value_375=selected_value_359;
                  next_selected_value_376=selected_value_360;
                  next_selected_value_377=selected_value_361;
                  next_selected_value_378=selected_value_362;
                  next_selected_value_379=selected_value_363;
                  next_selected_value_380=selected_value_364;
                  next_selected_value_381=selected_value_365;
                  selected_value_366=next_selected_value_366;
                  selected_value_367=next_selected_value_367;
                  selected_value_368=next_selected_value_368;
                  selected_value_369=next_selected_value_369;
                  selected_value_370=next_selected_value_370;
                  selected_value_371=next_selected_value_371;
                  selected_value_372=next_selected_value_372;
                  selected_value_373=next_selected_value_373;
                  selected_value_374=next_selected_value_374;
                  selected_value_375=next_selected_value_375;
                  selected_value_376=next_selected_value_376;
                  selected_value_377=next_selected_value_377;
                  selected_value_378=next_selected_value_378;
                  selected_value_379=next_selected_value_379;
                  selected_value_380=next_selected_value_380;
                  selected_value_381=next_selected_value_381;
               }
               else
               {
                  next_selected_value_366=selected_value_350;
                  next_selected_value_367=selected_value_351;
                  next_selected_value_368=selected_value_352;
                  next_selected_value_369=selected_value_353;
                  next_selected_value_370=selected_value_354;
                  next_selected_value_371=selected_value_355;
                  next_selected_value_372=selected_value_356;
                  next_selected_value_373=selected_value_357;
                  next_selected_value_374=selected_value_358;
                  next_selected_value_375=selected_value_359;
                  next_selected_value_376=selected_value_360;
                  next_selected_value_377=selected_value_361;
                  next_selected_value_378=selected_value_362;
                  next_selected_value_379=selected_value_363;
                  next_selected_value_380=selected_value_364;
                  next_selected_value_381=selected_value_365;
                  selected_value_366=next_selected_value_366;
                  selected_value_367=next_selected_value_367;
                  selected_value_368=next_selected_value_368;
                  selected_value_369=next_selected_value_369;
                  selected_value_370=next_selected_value_370;
                  selected_value_371=next_selected_value_371;
                  selected_value_372=next_selected_value_372;
                  selected_value_373=next_selected_value_373;
                  selected_value_374=next_selected_value_374;
                  selected_value_375=next_selected_value_375;
                  selected_value_376=next_selected_value_376;
                  selected_value_377=next_selected_value_377;
                  selected_value_378=next_selected_value_378;
                  selected_value_379=next_selected_value_379;
                  selected_value_380=next_selected_value_380;
                  selected_value_381=next_selected_value_381;
               }
               if((selected_value_381==10080))
               {
                  local_text_2="W1";
                  next_selected_value_382=selected_value_366;
                  next_selected_value_383=selected_value_367;
                  next_selected_value_384=selected_value_368;
                  next_selected_value_385=selected_value_369;
                  next_selected_value_386=selected_value_370;
                  next_selected_value_387=selected_value_371;
                  next_selected_value_388=selected_value_372;
                  next_selected_value_389=selected_value_373;
                  next_selected_value_390=selected_value_374;
                  next_selected_value_391=selected_value_375;
                  next_selected_value_392=selected_value_376;
                  next_selected_value_393=selected_value_377;
                  next_selected_value_394=selected_value_378;
                  next_selected_value_395=selected_value_379;
                  next_selected_value_396=selected_value_380;
                  next_selected_value_397=selected_value_381;
                  selected_value_382=next_selected_value_382;
                  selected_value_383=next_selected_value_383;
                  selected_value_384=next_selected_value_384;
                  selected_value_385=next_selected_value_385;
                  selected_value_386=next_selected_value_386;
                  selected_value_387=next_selected_value_387;
                  selected_value_388=next_selected_value_388;
                  selected_value_389=next_selected_value_389;
                  selected_value_390=next_selected_value_390;
                  selected_value_391=next_selected_value_391;
                  selected_value_392=next_selected_value_392;
                  selected_value_393=next_selected_value_393;
                  selected_value_394=next_selected_value_394;
                  selected_value_395=next_selected_value_395;
                  selected_value_396=next_selected_value_396;
                  selected_value_397=next_selected_value_397;
               }
               else
               {
                  next_selected_value_382=selected_value_366;
                  next_selected_value_383=selected_value_367;
                  next_selected_value_384=selected_value_368;
                  next_selected_value_385=selected_value_369;
                  next_selected_value_386=selected_value_370;
                  next_selected_value_387=selected_value_371;
                  next_selected_value_388=selected_value_372;
                  next_selected_value_389=selected_value_373;
                  next_selected_value_390=selected_value_374;
                  next_selected_value_391=selected_value_375;
                  next_selected_value_392=selected_value_376;
                  next_selected_value_393=selected_value_377;
                  next_selected_value_394=selected_value_378;
                  next_selected_value_395=selected_value_379;
                  next_selected_value_396=selected_value_380;
                  next_selected_value_397=selected_value_381;
                  selected_value_382=next_selected_value_382;
                  selected_value_383=next_selected_value_383;
                  selected_value_384=next_selected_value_384;
                  selected_value_385=next_selected_value_385;
                  selected_value_386=next_selected_value_386;
                  selected_value_387=next_selected_value_387;
                  selected_value_388=next_selected_value_388;
                  selected_value_389=next_selected_value_389;
                  selected_value_390=next_selected_value_390;
                  selected_value_391=next_selected_value_391;
                  selected_value_392=next_selected_value_392;
                  selected_value_393=next_selected_value_393;
                  selected_value_394=next_selected_value_394;
                  selected_value_395=next_selected_value_395;
                  selected_value_396=next_selected_value_396;
                  selected_value_397=next_selected_value_397;
               }
               computed_value_35=(uint)0xa8c0;
               if((selected_value_397==(int)computed_value_35))
               {
                  local_text_2="MN1";
                  next_selected_value_398=selected_value_382;
                  next_selected_value_399=selected_value_383;
                  next_selected_value_400=selected_value_384;
                  next_selected_value_401=selected_value_385;
                  next_selected_value_402=selected_value_386;
                  next_selected_value_403=selected_value_387;
                  next_selected_value_404=selected_value_388;
                  next_selected_value_405=selected_value_389;
                  next_selected_value_406=selected_value_390;
                  next_selected_value_407=selected_value_391;
                  next_selected_value_408=selected_value_392;
                  next_selected_value_409=selected_value_393;
                  next_selected_value_410=selected_value_394;
                  next_selected_value_411=selected_value_395;
                  next_selected_value_412=selected_value_396;
                  selected_value_398=next_selected_value_398;
                  selected_value_399=next_selected_value_399;
                  selected_value_400=next_selected_value_400;
                  selected_value_401=next_selected_value_401;
                  selected_value_402=next_selected_value_402;
                  selected_value_403=next_selected_value_403;
                  selected_value_404=next_selected_value_404;
                  selected_value_405=next_selected_value_405;
                  selected_value_406=next_selected_value_406;
                  selected_value_407=next_selected_value_407;
                  selected_value_408=next_selected_value_408;
                  selected_value_409=next_selected_value_409;
                  selected_value_410=next_selected_value_410;
                  selected_value_411=next_selected_value_411;
                  selected_value_412=next_selected_value_412;
               }
               else
               {
                  next_selected_value_398=selected_value_382;
                  next_selected_value_399=selected_value_383;
                  next_selected_value_400=selected_value_384;
                  next_selected_value_401=selected_value_385;
                  next_selected_value_402=selected_value_386;
                  next_selected_value_403=selected_value_387;
                  next_selected_value_404=selected_value_388;
                  next_selected_value_405=selected_value_389;
                  next_selected_value_406=selected_value_390;
                  next_selected_value_407=selected_value_391;
                  next_selected_value_408=selected_value_392;
                  next_selected_value_409=selected_value_393;
                  next_selected_value_410=selected_value_394;
                  next_selected_value_411=selected_value_395;
                  next_selected_value_412=selected_value_396;
                  selected_value_398=next_selected_value_398;
                  selected_value_399=next_selected_value_399;
                  selected_value_400=next_selected_value_400;
                  selected_value_401=next_selected_value_401;
                  selected_value_402=next_selected_value_402;
                  selected_value_403=next_selected_value_403;
                  selected_value_404=next_selected_value_404;
                  selected_value_405=next_selected_value_405;
                  selected_value_406=next_selected_value_406;
                  selected_value_407=next_selected_value_407;
                  selected_value_408=next_selected_value_408;
                  selected_value_409=next_selected_value_409;
                  selected_value_410=next_selected_value_410;
                  selected_value_411=next_selected_value_411;
                  selected_value_412=next_selected_value_412;
               }
               local_text_1+=local_text_2;
               local_text_1+=" ";
               computed_value_36=(long)selected_value_406;
               local_text_1+=IntegerToString(computed_value_36, 0, (ushort)(uint)0x20);
               local_text_1=local_text_1;
               ObjectDelete(local_text_1);
               ResetLastError();
               api_result_12=ObjectCreate(0, local_text_1, (ENUM_OBJECT)16, selected_value_412, selected_value_411, selected_value_398, selected_value_400, selected_value_399);
               if((api_result_12==false))
               {
                  _LastError_value_4=_LastError;
                  ResetLastError();
                  Print("RectangleCreate", ": failed to create a rectangle! Error code = ", _LastError_value_4);
                  next_selected_value_413=selected_value_401;
                  next_selected_value_414=selected_value_402;
                  next_selected_value_415=selected_value_405;
                  next_selected_value_416=selected_value_406;
                  selected_value_413=next_selected_value_413;
                  selected_value_414=next_selected_value_414;
                  selected_value_415=next_selected_value_415;
                  selected_value_416=next_selected_value_416;
               }
               else
               {
                  ObjectSetInteger(0, local_text_1, 6, selected_value_403);
                  computed_value_37=(long)selected_value_410;
                  ObjectSetInteger(0, local_text_1, 7, computed_value_37);
                  ObjectSetInteger(0, local_text_1, 8, 2);
                  computed_value_38=(int)(uint)selected_value_409;
                  computed_value_39=(long)computed_value_38;
                  ObjectSetInteger(0, local_text_1, 1031, computed_value_39);
                  computed_value_40=(int)(uint)selected_value_408;
                  computed_value_41=(long)computed_value_40;
                  ObjectSetInteger(0, local_text_1, 9, computed_value_41);
                  computed_value_42=(int)(uint)selected_value_407;
                  computed_value_43=(long)computed_value_42;
                  ObjectSetInteger(0, local_text_1, 1000, computed_value_43);
                  computed_value_44=(int)(uint)selected_value_407;
                  computed_value_45=(long)computed_value_44;
                  ObjectSetInteger(0, local_text_1, 17, computed_value_45);
                  ObjectSetInteger(0, local_text_1, 208, 0);
                  ObjectSetInteger(0, local_text_1, 207, selected_value_404);
                  api_result_13=ChartID();
                  ChartRedraw(api_result_13);
                  next_selected_value_413=selected_value_401;
                  next_selected_value_414=selected_value_402;
                  next_selected_value_415=selected_value_405;
                  next_selected_value_416=selected_value_406;
                  selected_value_413=next_selected_value_413;
                  selected_value_414=next_selected_value_414;
                  selected_value_415=next_selected_value_415;
                  selected_value_416=next_selected_value_416;
               }
               global_state_36_value=global_state_36;
               if((global_state_36_value==false))
               {
                  computed_value_46=(double)selected_value_415;
                  indicator_buffer_12[(uint)0x1]=computed_value_46;
                  indicator_buffer_13[(uint)0x1]=0.0;
                  indicator_buffer_18[(uint)0x1]=selected_value_413;
                  indicator_buffer_19[(uint)0x1]=selected_value_414;
                  global_state_36=true;
                  next_selected_value_417=selected_value_416;
                  selected_value_417=next_selected_value_417;
               }
               else
               {
                  next_selected_value_417=selected_value_416;
                  selected_value_417=next_selected_value_417;
               }
            }
            else
            {
               global_state_17=computed_value_13;
               api_result_6=iTime(_Symbol, 0, computed_value_13);
               computed_value_14=(uint)((uint)((ulong)api_result_6>>32));
               computed_value_15=(uint)((uint)((ulong)api_result_6>>0));
               UpdateText9(computed_value_15, computed_value_14, (uint)0x1);
               local_text_3=global_text_8;
               local_text_3+="RectTop";
               local_text_3+=" ";
               local_text_3+="Block ";
               _Period_value=_Period;
               local_text_4=NULL;
               local_text_4="NONE";
               _Period_value_2=_Period;
               if((_Period_value_2==1))
               {
                  local_text_4="M1";
                  next_selected_value_33=selected_value_27;
                  next_selected_value_34=selected_value_28;
                  next_selected_value_35=selected_value_25;
                  next_selected_value_36=selected_value_26;
                  next_selected_value_37=selected_value_30;
                  next_selected_value_38=api_result_6;
                  next_selected_value_39=computed_value_13;
                  next_selected_value_40=selected_value_32;
                  next_selected_value_41=_Period_value;
                  selected_value_33=next_selected_value_33;
                  selected_value_34=next_selected_value_34;
                  selected_value_35=next_selected_value_35;
                  selected_value_36=next_selected_value_36;
                  selected_value_37=next_selected_value_37;
                  selected_value_38=next_selected_value_38;
                  selected_value_39=next_selected_value_39;
                  selected_value_40=next_selected_value_40;
                  selected_value_41=next_selected_value_41;
               }
               else
               {
                  next_selected_value_33=selected_value_27;
                  next_selected_value_34=selected_value_28;
                  next_selected_value_35=selected_value_25;
                  next_selected_value_36=selected_value_26;
                  next_selected_value_37=selected_value_30;
                  next_selected_value_38=api_result_6;
                  next_selected_value_39=computed_value_13;
                  next_selected_value_40=selected_value_32;
                  next_selected_value_41=_Period_value;
                  selected_value_33=next_selected_value_33;
                  selected_value_34=next_selected_value_34;
                  selected_value_35=next_selected_value_35;
                  selected_value_36=next_selected_value_36;
                  selected_value_37=next_selected_value_37;
                  selected_value_38=next_selected_value_38;
                  selected_value_39=next_selected_value_39;
                  selected_value_40=next_selected_value_40;
                  selected_value_41=next_selected_value_41;
               }
               if((selected_value_41==5))
               {
                  local_text_4="M5";
                  next_selected_value_42=selected_value_33;
                  next_selected_value_43=selected_value_34;
                  next_selected_value_44=selected_value_35;
                  next_selected_value_45=selected_value_36;
                  next_selected_value_46=selected_value_37;
                  next_selected_value_47=selected_value_38;
                  next_selected_value_48=selected_value_39;
                  next_selected_value_49=selected_value_40;
                  next_selected_value_50=selected_value_41;
                  selected_value_42=next_selected_value_42;
                  selected_value_43=next_selected_value_43;
                  selected_value_44=next_selected_value_44;
                  selected_value_45=next_selected_value_45;
                  selected_value_46=next_selected_value_46;
                  selected_value_47=next_selected_value_47;
                  selected_value_48=next_selected_value_48;
                  selected_value_49=next_selected_value_49;
                  selected_value_50=next_selected_value_50;
               }
               else
               {
                  next_selected_value_42=selected_value_33;
                  next_selected_value_43=selected_value_34;
                  next_selected_value_44=selected_value_35;
                  next_selected_value_45=selected_value_36;
                  next_selected_value_46=selected_value_37;
                  next_selected_value_47=selected_value_38;
                  next_selected_value_48=selected_value_39;
                  next_selected_value_49=selected_value_40;
                  next_selected_value_50=selected_value_41;
                  selected_value_42=next_selected_value_42;
                  selected_value_43=next_selected_value_43;
                  selected_value_44=next_selected_value_44;
                  selected_value_45=next_selected_value_45;
                  selected_value_46=next_selected_value_46;
                  selected_value_47=next_selected_value_47;
                  selected_value_48=next_selected_value_48;
                  selected_value_49=next_selected_value_49;
                  selected_value_50=next_selected_value_50;
               }
               if((selected_value_50==15))
               {
                  local_text_4="M15";
                  next_selected_value_51=selected_value_42;
                  next_selected_value_52=selected_value_43;
                  next_selected_value_53=selected_value_44;
                  next_selected_value_54=selected_value_45;
                  next_selected_value_55=selected_value_46;
                  next_selected_value_56=selected_value_47;
                  next_selected_value_57=selected_value_48;
                  next_selected_value_58=selected_value_49;
                  next_selected_value_59=selected_value_50;
                  selected_value_51=next_selected_value_51;
                  selected_value_52=next_selected_value_52;
                  selected_value_53=next_selected_value_53;
                  selected_value_54=next_selected_value_54;
                  selected_value_55=next_selected_value_55;
                  selected_value_56=next_selected_value_56;
                  selected_value_57=next_selected_value_57;
                  selected_value_58=next_selected_value_58;
                  selected_value_59=next_selected_value_59;
               }
               else
               {
                  next_selected_value_51=selected_value_42;
                  next_selected_value_52=selected_value_43;
                  next_selected_value_53=selected_value_44;
                  next_selected_value_54=selected_value_45;
                  next_selected_value_55=selected_value_46;
                  next_selected_value_56=selected_value_47;
                  next_selected_value_57=selected_value_48;
                  next_selected_value_58=selected_value_49;
                  next_selected_value_59=selected_value_50;
                  selected_value_51=next_selected_value_51;
                  selected_value_52=next_selected_value_52;
                  selected_value_53=next_selected_value_53;
                  selected_value_54=next_selected_value_54;
                  selected_value_55=next_selected_value_55;
                  selected_value_56=next_selected_value_56;
                  selected_value_57=next_selected_value_57;
                  selected_value_58=next_selected_value_58;
                  selected_value_59=next_selected_value_59;
               }
               if((selected_value_59==30))
               {
                  local_text_4="M30";
                  next_selected_value_60=selected_value_51;
                  next_selected_value_61=selected_value_52;
                  next_selected_value_62=selected_value_53;
                  next_selected_value_63=selected_value_54;
                  next_selected_value_64=selected_value_55;
                  next_selected_value_65=selected_value_56;
                  next_selected_value_66=selected_value_57;
                  next_selected_value_67=selected_value_58;
                  next_selected_value_68=selected_value_59;
                  selected_value_60=next_selected_value_60;
                  selected_value_61=next_selected_value_61;
                  selected_value_62=next_selected_value_62;
                  selected_value_63=next_selected_value_63;
                  selected_value_64=next_selected_value_64;
                  selected_value_65=next_selected_value_65;
                  selected_value_66=next_selected_value_66;
                  selected_value_67=next_selected_value_67;
                  selected_value_68=next_selected_value_68;
               }
               else
               {
                  next_selected_value_60=selected_value_51;
                  next_selected_value_61=selected_value_52;
                  next_selected_value_62=selected_value_53;
                  next_selected_value_63=selected_value_54;
                  next_selected_value_64=selected_value_55;
                  next_selected_value_65=selected_value_56;
                  next_selected_value_66=selected_value_57;
                  next_selected_value_67=selected_value_58;
                  next_selected_value_68=selected_value_59;
                  selected_value_60=next_selected_value_60;
                  selected_value_61=next_selected_value_61;
                  selected_value_62=next_selected_value_62;
                  selected_value_63=next_selected_value_63;
                  selected_value_64=next_selected_value_64;
                  selected_value_65=next_selected_value_65;
                  selected_value_66=next_selected_value_66;
                  selected_value_67=next_selected_value_67;
                  selected_value_68=next_selected_value_68;
               }
               if((selected_value_68==60))
               {
                  local_text_4="H1";
                  next_selected_value_69=selected_value_60;
                  next_selected_value_70=selected_value_61;
                  next_selected_value_71=selected_value_62;
                  next_selected_value_72=selected_value_63;
                  next_selected_value_73=selected_value_64;
                  next_selected_value_74=selected_value_65;
                  next_selected_value_75=selected_value_66;
                  next_selected_value_76=selected_value_67;
                  next_selected_value_77=selected_value_68;
                  selected_value_69=next_selected_value_69;
                  selected_value_70=next_selected_value_70;
                  selected_value_71=next_selected_value_71;
                  selected_value_72=next_selected_value_72;
                  selected_value_73=next_selected_value_73;
                  selected_value_74=next_selected_value_74;
                  selected_value_75=next_selected_value_75;
                  selected_value_76=next_selected_value_76;
                  selected_value_77=next_selected_value_77;
               }
               else
               {
                  next_selected_value_69=selected_value_60;
                  next_selected_value_70=selected_value_61;
                  next_selected_value_71=selected_value_62;
                  next_selected_value_72=selected_value_63;
                  next_selected_value_73=selected_value_64;
                  next_selected_value_74=selected_value_65;
                  next_selected_value_75=selected_value_66;
                  next_selected_value_76=selected_value_67;
                  next_selected_value_77=selected_value_68;
                  selected_value_69=next_selected_value_69;
                  selected_value_70=next_selected_value_70;
                  selected_value_71=next_selected_value_71;
                  selected_value_72=next_selected_value_72;
                  selected_value_73=next_selected_value_73;
                  selected_value_74=next_selected_value_74;
                  selected_value_75=next_selected_value_75;
                  selected_value_76=next_selected_value_76;
                  selected_value_77=next_selected_value_77;
               }
               if((selected_value_77==240))
               {
                  local_text_4="H4";
                  next_selected_value_78=selected_value_69;
                  next_selected_value_79=selected_value_70;
                  next_selected_value_80=selected_value_71;
                  next_selected_value_81=selected_value_72;
                  next_selected_value_82=selected_value_73;
                  next_selected_value_83=selected_value_74;
                  next_selected_value_84=selected_value_75;
                  next_selected_value_85=selected_value_76;
                  next_selected_value_86=selected_value_77;
                  selected_value_78=next_selected_value_78;
                  selected_value_79=next_selected_value_79;
                  selected_value_80=next_selected_value_80;
                  selected_value_81=next_selected_value_81;
                  selected_value_82=next_selected_value_82;
                  selected_value_83=next_selected_value_83;
                  selected_value_84=next_selected_value_84;
                  selected_value_85=next_selected_value_85;
                  selected_value_86=next_selected_value_86;
               }
               else
               {
                  next_selected_value_78=selected_value_69;
                  next_selected_value_79=selected_value_70;
                  next_selected_value_80=selected_value_71;
                  next_selected_value_81=selected_value_72;
                  next_selected_value_82=selected_value_73;
                  next_selected_value_83=selected_value_74;
                  next_selected_value_84=selected_value_75;
                  next_selected_value_85=selected_value_76;
                  next_selected_value_86=selected_value_77;
                  selected_value_78=next_selected_value_78;
                  selected_value_79=next_selected_value_79;
                  selected_value_80=next_selected_value_80;
                  selected_value_81=next_selected_value_81;
                  selected_value_82=next_selected_value_82;
                  selected_value_83=next_selected_value_83;
                  selected_value_84=next_selected_value_84;
                  selected_value_85=next_selected_value_85;
                  selected_value_86=next_selected_value_86;
               }
               if((selected_value_86==1440))
               {
                  local_text_4="D1";
                  next_selected_value_87=selected_value_78;
                  next_selected_value_88=selected_value_79;
                  next_selected_value_89=selected_value_80;
                  next_selected_value_90=selected_value_81;
                  next_selected_value_91=selected_value_82;
                  next_selected_value_92=selected_value_83;
                  next_selected_value_93=selected_value_84;
                  next_selected_value_94=selected_value_85;
                  next_selected_value_95=selected_value_86;
                  selected_value_87=next_selected_value_87;
                  selected_value_88=next_selected_value_88;
                  selected_value_89=next_selected_value_89;
                  selected_value_90=next_selected_value_90;
                  selected_value_91=next_selected_value_91;
                  selected_value_92=next_selected_value_92;
                  selected_value_93=next_selected_value_93;
                  selected_value_94=next_selected_value_94;
                  selected_value_95=next_selected_value_95;
               }
               else
               {
                  next_selected_value_87=selected_value_78;
                  next_selected_value_88=selected_value_79;
                  next_selected_value_89=selected_value_80;
                  next_selected_value_90=selected_value_81;
                  next_selected_value_91=selected_value_82;
                  next_selected_value_92=selected_value_83;
                  next_selected_value_93=selected_value_84;
                  next_selected_value_94=selected_value_85;
                  next_selected_value_95=selected_value_86;
                  selected_value_87=next_selected_value_87;
                  selected_value_88=next_selected_value_88;
                  selected_value_89=next_selected_value_89;
                  selected_value_90=next_selected_value_90;
                  selected_value_91=next_selected_value_91;
                  selected_value_92=next_selected_value_92;
                  selected_value_93=next_selected_value_93;
                  selected_value_94=next_selected_value_94;
                  selected_value_95=next_selected_value_95;
               }
               if((selected_value_95==10080))
               {
                  local_text_4="W1";
                  next_selected_value_96=selected_value_87;
                  next_selected_value_97=selected_value_88;
                  next_selected_value_98=selected_value_89;
                  next_selected_value_99=selected_value_90;
                  next_selected_value_100=selected_value_91;
                  next_selected_value_101=selected_value_92;
                  next_selected_value_102=selected_value_93;
                  next_selected_value_103=selected_value_94;
                  next_selected_value_104=selected_value_95;
                  selected_value_96=next_selected_value_96;
                  selected_value_97=next_selected_value_97;
                  selected_value_98=next_selected_value_98;
                  selected_value_99=next_selected_value_99;
                  selected_value_100=next_selected_value_100;
                  selected_value_101=next_selected_value_101;
                  selected_value_102=next_selected_value_102;
                  selected_value_103=next_selected_value_103;
                  selected_value_104=next_selected_value_104;
               }
               else
               {
                  next_selected_value_96=selected_value_87;
                  next_selected_value_97=selected_value_88;
                  next_selected_value_98=selected_value_89;
                  next_selected_value_99=selected_value_90;
                  next_selected_value_100=selected_value_91;
                  next_selected_value_101=selected_value_92;
                  next_selected_value_102=selected_value_93;
                  next_selected_value_103=selected_value_94;
                  next_selected_value_104=selected_value_95;
                  selected_value_96=next_selected_value_96;
                  selected_value_97=next_selected_value_97;
                  selected_value_98=next_selected_value_98;
                  selected_value_99=next_selected_value_99;
                  selected_value_100=next_selected_value_100;
                  selected_value_101=next_selected_value_101;
                  selected_value_102=next_selected_value_102;
                  selected_value_103=next_selected_value_103;
                  selected_value_104=next_selected_value_104;
               }
               computed_value_16=(uint)0xa8c0;
               if((selected_value_104==(int)computed_value_16))
               {
                  local_text_4="MN1";
                  next_selected_value_105=selected_value_96;
                  next_selected_value_106=selected_value_97;
                  next_selected_value_107=selected_value_98;
                  next_selected_value_108=selected_value_99;
                  next_selected_value_109=selected_value_100;
                  next_selected_value_110=selected_value_101;
                  next_selected_value_111=selected_value_102;
                  next_selected_value_112=selected_value_103;
                  selected_value_105=next_selected_value_105;
                  selected_value_106=next_selected_value_106;
                  selected_value_107=next_selected_value_107;
                  selected_value_108=next_selected_value_108;
                  selected_value_109=next_selected_value_109;
                  selected_value_110=next_selected_value_110;
                  selected_value_111=next_selected_value_111;
                  selected_value_112=next_selected_value_112;
               }
               else
               {
                  next_selected_value_105=selected_value_96;
                  next_selected_value_106=selected_value_97;
                  next_selected_value_107=selected_value_98;
                  next_selected_value_108=selected_value_99;
                  next_selected_value_109=selected_value_100;
                  next_selected_value_110=selected_value_101;
                  next_selected_value_111=selected_value_102;
                  next_selected_value_112=selected_value_103;
                  selected_value_105=next_selected_value_105;
                  selected_value_106=next_selected_value_106;
                  selected_value_107=next_selected_value_107;
                  selected_value_108=next_selected_value_108;
                  selected_value_109=next_selected_value_109;
                  selected_value_110=next_selected_value_110;
                  selected_value_111=next_selected_value_111;
                  selected_value_112=next_selected_value_112;
               }
               local_text_3+=local_text_4;
               local_text_3+=" ";
               computed_value_17=(long)selected_value_112;
               local_text_3+=IntegerToString(computed_value_17, 0, (ushort)(uint)0x20);
               ObjectDelete(local_text_3);
               global_state_19_value=global_state_19;
               rectangleTop_value=rectangleTop;
               api_result_7=iTime(_Symbol, 0, selected_value_109);
               local_text_5=global_text_8;
               local_text_5+="RectTop";
               local_text_5+=" ";
               local_text_5+=" ReversalComplete ";
               _Period_value_3=_Period;
               local_text_6=NULL;
               local_text_6="NONE";
               _Period_value_4=_Period;
               computed_value_18=(long)((((ulong)(uint)0x0<<32)|(ulong)(uint)rectangleTop_value));
               if((_Period_value_4==1))
               {
                  computed_value_19=(long)((((ulong)(uint)0x0<<32)|(ulong)(uint)rectangleTop_value));
                  local_text_6="M1";
                  next_selected_value_113=selected_value_105;
                  next_selected_value_114=selected_value_106;
                  next_selected_value_115=selected_value_110;
                  next_selected_value_116=selected_value_107;
                  next_selected_value_117=selected_value_108;
                  next_selected_value_118=computed_value_19;
                  next_selected_value_119=0;
                  next_selected_value_120=selected_value_109;
                  next_selected_value_121=selected_value_111;
                  next_selected_value_122=selected_value_112;
                  next_selected_value_123=false;
                  next_selected_value_124=false;
                  next_selected_value_125=true;
                  next_selected_value_126=global_state_19_value;
                  next_selected_value_127=api_result_7;
                  next_selected_value_128=0;
                  next_selected_value_129=_Period_value_3;
                  selected_value_113=next_selected_value_113;
                  selected_value_114=next_selected_value_114;
                  selected_value_115=next_selected_value_115;
                  selected_value_116=next_selected_value_116;
                  selected_value_117=next_selected_value_117;
                  selected_value_118=next_selected_value_118;
                  selected_value_119=next_selected_value_119;
                  selected_value_120=next_selected_value_120;
                  selected_value_121=next_selected_value_121;
                  selected_value_122=next_selected_value_122;
                  selected_value_123=next_selected_value_123;
                  selected_value_124=next_selected_value_124;
                  selected_value_125=next_selected_value_125;
                  selected_value_126=next_selected_value_126;
                  selected_value_127=next_selected_value_127;
                  selected_value_128=next_selected_value_128;
                  selected_value_129=next_selected_value_129;
               }
               else
               {
                  next_selected_value_113=selected_value_105;
                  next_selected_value_114=selected_value_106;
                  next_selected_value_115=selected_value_110;
                  next_selected_value_116=selected_value_107;
                  next_selected_value_117=selected_value_108;
                  next_selected_value_118=computed_value_18;
                  next_selected_value_119=0;
                  next_selected_value_120=selected_value_109;
                  next_selected_value_121=selected_value_111;
                  next_selected_value_122=selected_value_112;
                  next_selected_value_123=false;
                  next_selected_value_124=false;
                  next_selected_value_125=true;
                  next_selected_value_126=global_state_19_value;
                  next_selected_value_127=api_result_7;
                  next_selected_value_128=0;
                  next_selected_value_129=_Period_value_3;
                  selected_value_113=next_selected_value_113;
                  selected_value_114=next_selected_value_114;
                  selected_value_115=next_selected_value_115;
                  selected_value_116=next_selected_value_116;
                  selected_value_117=next_selected_value_117;
                  selected_value_118=next_selected_value_118;
                  selected_value_119=next_selected_value_119;
                  selected_value_120=next_selected_value_120;
                  selected_value_121=next_selected_value_121;
                  selected_value_122=next_selected_value_122;
                  selected_value_123=next_selected_value_123;
                  selected_value_124=next_selected_value_124;
                  selected_value_125=next_selected_value_125;
                  selected_value_126=next_selected_value_126;
                  selected_value_127=next_selected_value_127;
                  selected_value_128=next_selected_value_128;
                  selected_value_129=next_selected_value_129;
               }
               if((selected_value_129==5))
               {
                  local_text_6="M5";
                  next_selected_value_130=selected_value_113;
                  next_selected_value_131=selected_value_114;
                  next_selected_value_132=selected_value_115;
                  next_selected_value_133=selected_value_116;
                  next_selected_value_134=selected_value_117;
                  next_selected_value_135=selected_value_118;
                  next_selected_value_136=selected_value_119;
                  next_selected_value_137=selected_value_120;
                  next_selected_value_138=selected_value_121;
                  next_selected_value_139=selected_value_122;
                  next_selected_value_140=selected_value_123;
                  next_selected_value_141=selected_value_124;
                  next_selected_value_142=selected_value_125;
                  next_selected_value_143=selected_value_126;
                  next_selected_value_144=selected_value_127;
                  next_selected_value_145=selected_value_128;
                  next_selected_value_146=selected_value_129;
                  selected_value_130=next_selected_value_130;
                  selected_value_131=next_selected_value_131;
                  selected_value_132=next_selected_value_132;
                  selected_value_133=next_selected_value_133;
                  selected_value_134=next_selected_value_134;
                  selected_value_135=next_selected_value_135;
                  selected_value_136=next_selected_value_136;
                  selected_value_137=next_selected_value_137;
                  selected_value_138=next_selected_value_138;
                  selected_value_139=next_selected_value_139;
                  selected_value_140=next_selected_value_140;
                  selected_value_141=next_selected_value_141;
                  selected_value_142=next_selected_value_142;
                  selected_value_143=next_selected_value_143;
                  selected_value_144=next_selected_value_144;
                  selected_value_145=next_selected_value_145;
                  selected_value_146=next_selected_value_146;
               }
               else
               {
                  next_selected_value_130=selected_value_113;
                  next_selected_value_131=selected_value_114;
                  next_selected_value_132=selected_value_115;
                  next_selected_value_133=selected_value_116;
                  next_selected_value_134=selected_value_117;
                  next_selected_value_135=selected_value_118;
                  next_selected_value_136=selected_value_119;
                  next_selected_value_137=selected_value_120;
                  next_selected_value_138=selected_value_121;
                  next_selected_value_139=selected_value_122;
                  next_selected_value_140=selected_value_123;
                  next_selected_value_141=selected_value_124;
                  next_selected_value_142=selected_value_125;
                  next_selected_value_143=selected_value_126;
                  next_selected_value_144=selected_value_127;
                  next_selected_value_145=selected_value_128;
                  next_selected_value_146=selected_value_129;
                  selected_value_130=next_selected_value_130;
                  selected_value_131=next_selected_value_131;
                  selected_value_132=next_selected_value_132;
                  selected_value_133=next_selected_value_133;
                  selected_value_134=next_selected_value_134;
                  selected_value_135=next_selected_value_135;
                  selected_value_136=next_selected_value_136;
                  selected_value_137=next_selected_value_137;
                  selected_value_138=next_selected_value_138;
                  selected_value_139=next_selected_value_139;
                  selected_value_140=next_selected_value_140;
                  selected_value_141=next_selected_value_141;
                  selected_value_142=next_selected_value_142;
                  selected_value_143=next_selected_value_143;
                  selected_value_144=next_selected_value_144;
                  selected_value_145=next_selected_value_145;
                  selected_value_146=next_selected_value_146;
               }
               if((selected_value_146==15))
               {
                  local_text_6="M15";
                  next_selected_value_147=selected_value_130;
                  next_selected_value_148=selected_value_131;
                  next_selected_value_149=selected_value_132;
                  next_selected_value_150=selected_value_133;
                  next_selected_value_151=selected_value_134;
                  next_selected_value_152=selected_value_135;
                  next_selected_value_153=selected_value_136;
                  next_selected_value_154=selected_value_137;
                  next_selected_value_155=selected_value_138;
                  next_selected_value_156=selected_value_139;
                  next_selected_value_157=selected_value_140;
                  next_selected_value_158=selected_value_141;
                  next_selected_value_159=selected_value_142;
                  next_selected_value_160=selected_value_143;
                  next_selected_value_161=selected_value_144;
                  next_selected_value_162=selected_value_145;
                  next_selected_value_163=selected_value_146;
                  selected_value_147=next_selected_value_147;
                  selected_value_148=next_selected_value_148;
                  selected_value_149=next_selected_value_149;
                  selected_value_150=next_selected_value_150;
                  selected_value_151=next_selected_value_151;
                  selected_value_152=next_selected_value_152;
                  selected_value_153=next_selected_value_153;
                  selected_value_154=next_selected_value_154;
                  selected_value_155=next_selected_value_155;
                  selected_value_156=next_selected_value_156;
                  selected_value_157=next_selected_value_157;
                  selected_value_158=next_selected_value_158;
                  selected_value_159=next_selected_value_159;
                  selected_value_160=next_selected_value_160;
                  selected_value_161=next_selected_value_161;
                  selected_value_162=next_selected_value_162;
                  selected_value_163=next_selected_value_163;
               }
               else
               {
                  next_selected_value_147=selected_value_130;
                  next_selected_value_148=selected_value_131;
                  next_selected_value_149=selected_value_132;
                  next_selected_value_150=selected_value_133;
                  next_selected_value_151=selected_value_134;
                  next_selected_value_152=selected_value_135;
                  next_selected_value_153=selected_value_136;
                  next_selected_value_154=selected_value_137;
                  next_selected_value_155=selected_value_138;
                  next_selected_value_156=selected_value_139;
                  next_selected_value_157=selected_value_140;
                  next_selected_value_158=selected_value_141;
                  next_selected_value_159=selected_value_142;
                  next_selected_value_160=selected_value_143;
                  next_selected_value_161=selected_value_144;
                  next_selected_value_162=selected_value_145;
                  next_selected_value_163=selected_value_146;
                  selected_value_147=next_selected_value_147;
                  selected_value_148=next_selected_value_148;
                  selected_value_149=next_selected_value_149;
                  selected_value_150=next_selected_value_150;
                  selected_value_151=next_selected_value_151;
                  selected_value_152=next_selected_value_152;
                  selected_value_153=next_selected_value_153;
                  selected_value_154=next_selected_value_154;
                  selected_value_155=next_selected_value_155;
                  selected_value_156=next_selected_value_156;
                  selected_value_157=next_selected_value_157;
                  selected_value_158=next_selected_value_158;
                  selected_value_159=next_selected_value_159;
                  selected_value_160=next_selected_value_160;
                  selected_value_161=next_selected_value_161;
                  selected_value_162=next_selected_value_162;
                  selected_value_163=next_selected_value_163;
               }
               if((selected_value_163==30))
               {
                  local_text_6="M30";
                  next_selected_value_164=selected_value_147;
                  next_selected_value_165=selected_value_148;
                  next_selected_value_166=selected_value_149;
                  next_selected_value_167=selected_value_150;
                  next_selected_value_168=selected_value_151;
                  next_selected_value_169=selected_value_152;
                  next_selected_value_170=selected_value_153;
                  next_selected_value_171=selected_value_154;
                  next_selected_value_172=selected_value_155;
                  next_selected_value_173=selected_value_156;
                  next_selected_value_174=selected_value_157;
                  next_selected_value_175=selected_value_158;
                  next_selected_value_176=selected_value_159;
                  next_selected_value_177=selected_value_160;
                  next_selected_value_178=selected_value_161;
                  next_selected_value_179=selected_value_162;
                  next_selected_value_180=selected_value_163;
                  selected_value_164=next_selected_value_164;
                  selected_value_165=next_selected_value_165;
                  selected_value_166=next_selected_value_166;
                  selected_value_167=next_selected_value_167;
                  selected_value_168=next_selected_value_168;
                  selected_value_169=next_selected_value_169;
                  selected_value_170=next_selected_value_170;
                  selected_value_171=next_selected_value_171;
                  selected_value_172=next_selected_value_172;
                  selected_value_173=next_selected_value_173;
                  selected_value_174=next_selected_value_174;
                  selected_value_175=next_selected_value_175;
                  selected_value_176=next_selected_value_176;
                  selected_value_177=next_selected_value_177;
                  selected_value_178=next_selected_value_178;
                  selected_value_179=next_selected_value_179;
                  selected_value_180=next_selected_value_180;
               }
               else
               {
                  next_selected_value_164=selected_value_147;
                  next_selected_value_165=selected_value_148;
                  next_selected_value_166=selected_value_149;
                  next_selected_value_167=selected_value_150;
                  next_selected_value_168=selected_value_151;
                  next_selected_value_169=selected_value_152;
                  next_selected_value_170=selected_value_153;
                  next_selected_value_171=selected_value_154;
                  next_selected_value_172=selected_value_155;
                  next_selected_value_173=selected_value_156;
                  next_selected_value_174=selected_value_157;
                  next_selected_value_175=selected_value_158;
                  next_selected_value_176=selected_value_159;
                  next_selected_value_177=selected_value_160;
                  next_selected_value_178=selected_value_161;
                  next_selected_value_179=selected_value_162;
                  next_selected_value_180=selected_value_163;
                  selected_value_164=next_selected_value_164;
                  selected_value_165=next_selected_value_165;
                  selected_value_166=next_selected_value_166;
                  selected_value_167=next_selected_value_167;
                  selected_value_168=next_selected_value_168;
                  selected_value_169=next_selected_value_169;
                  selected_value_170=next_selected_value_170;
                  selected_value_171=next_selected_value_171;
                  selected_value_172=next_selected_value_172;
                  selected_value_173=next_selected_value_173;
                  selected_value_174=next_selected_value_174;
                  selected_value_175=next_selected_value_175;
                  selected_value_176=next_selected_value_176;
                  selected_value_177=next_selected_value_177;
                  selected_value_178=next_selected_value_178;
                  selected_value_179=next_selected_value_179;
                  selected_value_180=next_selected_value_180;
               }
               if((selected_value_180==60))
               {
                  local_text_6="H1";
                  next_selected_value_181=selected_value_164;
                  next_selected_value_182=selected_value_165;
                  next_selected_value_183=selected_value_166;
                  next_selected_value_184=selected_value_167;
                  next_selected_value_185=selected_value_168;
                  next_selected_value_186=selected_value_169;
                  next_selected_value_187=selected_value_170;
                  next_selected_value_188=selected_value_171;
                  next_selected_value_189=selected_value_172;
                  next_selected_value_190=selected_value_173;
                  next_selected_value_191=selected_value_174;
                  next_selected_value_192=selected_value_175;
                  next_selected_value_193=selected_value_176;
                  next_selected_value_194=selected_value_177;
                  next_selected_value_195=selected_value_178;
                  next_selected_value_196=selected_value_179;
                  next_selected_value_197=selected_value_180;
                  selected_value_181=next_selected_value_181;
                  selected_value_182=next_selected_value_182;
                  selected_value_183=next_selected_value_183;
                  selected_value_184=next_selected_value_184;
                  selected_value_185=next_selected_value_185;
                  selected_value_186=next_selected_value_186;
                  selected_value_187=next_selected_value_187;
                  selected_value_188=next_selected_value_188;
                  selected_value_189=next_selected_value_189;
                  selected_value_190=next_selected_value_190;
                  selected_value_191=next_selected_value_191;
                  selected_value_192=next_selected_value_192;
                  selected_value_193=next_selected_value_193;
                  selected_value_194=next_selected_value_194;
                  selected_value_195=next_selected_value_195;
                  selected_value_196=next_selected_value_196;
                  selected_value_197=next_selected_value_197;
               }
               else
               {
                  next_selected_value_181=selected_value_164;
                  next_selected_value_182=selected_value_165;
                  next_selected_value_183=selected_value_166;
                  next_selected_value_184=selected_value_167;
                  next_selected_value_185=selected_value_168;
                  next_selected_value_186=selected_value_169;
                  next_selected_value_187=selected_value_170;
                  next_selected_value_188=selected_value_171;
                  next_selected_value_189=selected_value_172;
                  next_selected_value_190=selected_value_173;
                  next_selected_value_191=selected_value_174;
                  next_selected_value_192=selected_value_175;
                  next_selected_value_193=selected_value_176;
                  next_selected_value_194=selected_value_177;
                  next_selected_value_195=selected_value_178;
                  next_selected_value_196=selected_value_179;
                  next_selected_value_197=selected_value_180;
                  selected_value_181=next_selected_value_181;
                  selected_value_182=next_selected_value_182;
                  selected_value_183=next_selected_value_183;
                  selected_value_184=next_selected_value_184;
                  selected_value_185=next_selected_value_185;
                  selected_value_186=next_selected_value_186;
                  selected_value_187=next_selected_value_187;
                  selected_value_188=next_selected_value_188;
                  selected_value_189=next_selected_value_189;
                  selected_value_190=next_selected_value_190;
                  selected_value_191=next_selected_value_191;
                  selected_value_192=next_selected_value_192;
                  selected_value_193=next_selected_value_193;
                  selected_value_194=next_selected_value_194;
                  selected_value_195=next_selected_value_195;
                  selected_value_196=next_selected_value_196;
                  selected_value_197=next_selected_value_197;
               }
               if((selected_value_197==240))
               {
                  local_text_6="H4";
                  next_selected_value_198=selected_value_181;
                  next_selected_value_199=selected_value_182;
                  next_selected_value_200=selected_value_183;
                  next_selected_value_201=selected_value_184;
                  next_selected_value_202=selected_value_185;
                  next_selected_value_203=selected_value_186;
                  next_selected_value_204=selected_value_187;
                  next_selected_value_205=selected_value_188;
                  next_selected_value_206=selected_value_189;
                  next_selected_value_207=selected_value_190;
                  next_selected_value_208=selected_value_191;
                  next_selected_value_209=selected_value_192;
                  next_selected_value_210=selected_value_193;
                  next_selected_value_211=selected_value_194;
                  next_selected_value_212=selected_value_195;
                  next_selected_value_213=selected_value_196;
                  next_selected_value_214=selected_value_197;
                  selected_value_198=next_selected_value_198;
                  selected_value_199=next_selected_value_199;
                  selected_value_200=next_selected_value_200;
                  selected_value_201=next_selected_value_201;
                  selected_value_202=next_selected_value_202;
                  selected_value_203=next_selected_value_203;
                  selected_value_204=next_selected_value_204;
                  selected_value_205=next_selected_value_205;
                  selected_value_206=next_selected_value_206;
                  selected_value_207=next_selected_value_207;
                  selected_value_208=next_selected_value_208;
                  selected_value_209=next_selected_value_209;
                  selected_value_210=next_selected_value_210;
                  selected_value_211=next_selected_value_211;
                  selected_value_212=next_selected_value_212;
                  selected_value_213=next_selected_value_213;
                  selected_value_214=next_selected_value_214;
               }
               else
               {
                  next_selected_value_198=selected_value_181;
                  next_selected_value_199=selected_value_182;
                  next_selected_value_200=selected_value_183;
                  next_selected_value_201=selected_value_184;
                  next_selected_value_202=selected_value_185;
                  next_selected_value_203=selected_value_186;
                  next_selected_value_204=selected_value_187;
                  next_selected_value_205=selected_value_188;
                  next_selected_value_206=selected_value_189;
                  next_selected_value_207=selected_value_190;
                  next_selected_value_208=selected_value_191;
                  next_selected_value_209=selected_value_192;
                  next_selected_value_210=selected_value_193;
                  next_selected_value_211=selected_value_194;
                  next_selected_value_212=selected_value_195;
                  next_selected_value_213=selected_value_196;
                  next_selected_value_214=selected_value_197;
                  selected_value_198=next_selected_value_198;
                  selected_value_199=next_selected_value_199;
                  selected_value_200=next_selected_value_200;
                  selected_value_201=next_selected_value_201;
                  selected_value_202=next_selected_value_202;
                  selected_value_203=next_selected_value_203;
                  selected_value_204=next_selected_value_204;
                  selected_value_205=next_selected_value_205;
                  selected_value_206=next_selected_value_206;
                  selected_value_207=next_selected_value_207;
                  selected_value_208=next_selected_value_208;
                  selected_value_209=next_selected_value_209;
                  selected_value_210=next_selected_value_210;
                  selected_value_211=next_selected_value_211;
                  selected_value_212=next_selected_value_212;
                  selected_value_213=next_selected_value_213;
                  selected_value_214=next_selected_value_214;
               }
               if((selected_value_214==1440))
               {
                  local_text_6="D1";
                  next_selected_value_215=selected_value_198;
                  next_selected_value_216=selected_value_199;
                  next_selected_value_217=selected_value_200;
                  next_selected_value_218=selected_value_201;
                  next_selected_value_219=selected_value_202;
                  next_selected_value_220=selected_value_203;
                  next_selected_value_221=selected_value_204;
                  next_selected_value_222=selected_value_205;
                  next_selected_value_223=selected_value_206;
                  next_selected_value_224=selected_value_207;
                  next_selected_value_225=selected_value_208;
                  next_selected_value_226=selected_value_209;
                  next_selected_value_227=selected_value_210;
                  next_selected_value_228=selected_value_211;
                  next_selected_value_229=selected_value_212;
                  next_selected_value_230=selected_value_213;
                  next_selected_value_231=selected_value_214;
                  selected_value_215=next_selected_value_215;
                  selected_value_216=next_selected_value_216;
                  selected_value_217=next_selected_value_217;
                  selected_value_218=next_selected_value_218;
                  selected_value_219=next_selected_value_219;
                  selected_value_220=next_selected_value_220;
                  selected_value_221=next_selected_value_221;
                  selected_value_222=next_selected_value_222;
                  selected_value_223=next_selected_value_223;
                  selected_value_224=next_selected_value_224;
                  selected_value_225=next_selected_value_225;
                  selected_value_226=next_selected_value_226;
                  selected_value_227=next_selected_value_227;
                  selected_value_228=next_selected_value_228;
                  selected_value_229=next_selected_value_229;
                  selected_value_230=next_selected_value_230;
                  selected_value_231=next_selected_value_231;
               }
               else
               {
                  next_selected_value_215=selected_value_198;
                  next_selected_value_216=selected_value_199;
                  next_selected_value_217=selected_value_200;
                  next_selected_value_218=selected_value_201;
                  next_selected_value_219=selected_value_202;
                  next_selected_value_220=selected_value_203;
                  next_selected_value_221=selected_value_204;
                  next_selected_value_222=selected_value_205;
                  next_selected_value_223=selected_value_206;
                  next_selected_value_224=selected_value_207;
                  next_selected_value_225=selected_value_208;
                  next_selected_value_226=selected_value_209;
                  next_selected_value_227=selected_value_210;
                  next_selected_value_228=selected_value_211;
                  next_selected_value_229=selected_value_212;
                  next_selected_value_230=selected_value_213;
                  next_selected_value_231=selected_value_214;
                  selected_value_215=next_selected_value_215;
                  selected_value_216=next_selected_value_216;
                  selected_value_217=next_selected_value_217;
                  selected_value_218=next_selected_value_218;
                  selected_value_219=next_selected_value_219;
                  selected_value_220=next_selected_value_220;
                  selected_value_221=next_selected_value_221;
                  selected_value_222=next_selected_value_222;
                  selected_value_223=next_selected_value_223;
                  selected_value_224=next_selected_value_224;
                  selected_value_225=next_selected_value_225;
                  selected_value_226=next_selected_value_226;
                  selected_value_227=next_selected_value_227;
                  selected_value_228=next_selected_value_228;
                  selected_value_229=next_selected_value_229;
                  selected_value_230=next_selected_value_230;
                  selected_value_231=next_selected_value_231;
               }
               if((selected_value_231==10080))
               {
                  local_text_6="W1";
                  next_selected_value_232=selected_value_215;
                  next_selected_value_233=selected_value_216;
                  next_selected_value_234=selected_value_217;
                  next_selected_value_235=selected_value_218;
                  next_selected_value_236=selected_value_219;
                  next_selected_value_237=selected_value_220;
                  next_selected_value_238=selected_value_221;
                  next_selected_value_239=selected_value_222;
                  next_selected_value_240=selected_value_223;
                  next_selected_value_241=selected_value_224;
                  next_selected_value_242=selected_value_225;
                  next_selected_value_243=selected_value_226;
                  next_selected_value_244=selected_value_227;
                  next_selected_value_245=selected_value_228;
                  next_selected_value_246=selected_value_229;
                  next_selected_value_247=selected_value_230;
                  next_selected_value_248=selected_value_231;
                  selected_value_232=next_selected_value_232;
                  selected_value_233=next_selected_value_233;
                  selected_value_234=next_selected_value_234;
                  selected_value_235=next_selected_value_235;
                  selected_value_236=next_selected_value_236;
                  selected_value_237=next_selected_value_237;
                  selected_value_238=next_selected_value_238;
                  selected_value_239=next_selected_value_239;
                  selected_value_240=next_selected_value_240;
                  selected_value_241=next_selected_value_241;
                  selected_value_242=next_selected_value_242;
                  selected_value_243=next_selected_value_243;
                  selected_value_244=next_selected_value_244;
                  selected_value_245=next_selected_value_245;
                  selected_value_246=next_selected_value_246;
                  selected_value_247=next_selected_value_247;
                  selected_value_248=next_selected_value_248;
               }
               else
               {
                  next_selected_value_232=selected_value_215;
                  next_selected_value_233=selected_value_216;
                  next_selected_value_234=selected_value_217;
                  next_selected_value_235=selected_value_218;
                  next_selected_value_236=selected_value_219;
                  next_selected_value_237=selected_value_220;
                  next_selected_value_238=selected_value_221;
                  next_selected_value_239=selected_value_222;
                  next_selected_value_240=selected_value_223;
                  next_selected_value_241=selected_value_224;
                  next_selected_value_242=selected_value_225;
                  next_selected_value_243=selected_value_226;
                  next_selected_value_244=selected_value_227;
                  next_selected_value_245=selected_value_228;
                  next_selected_value_246=selected_value_229;
                  next_selected_value_247=selected_value_230;
                  next_selected_value_248=selected_value_231;
                  selected_value_232=next_selected_value_232;
                  selected_value_233=next_selected_value_233;
                  selected_value_234=next_selected_value_234;
                  selected_value_235=next_selected_value_235;
                  selected_value_236=next_selected_value_236;
                  selected_value_237=next_selected_value_237;
                  selected_value_238=next_selected_value_238;
                  selected_value_239=next_selected_value_239;
                  selected_value_240=next_selected_value_240;
                  selected_value_241=next_selected_value_241;
                  selected_value_242=next_selected_value_242;
                  selected_value_243=next_selected_value_243;
                  selected_value_244=next_selected_value_244;
                  selected_value_245=next_selected_value_245;
                  selected_value_246=next_selected_value_246;
                  selected_value_247=next_selected_value_247;
                  selected_value_248=next_selected_value_248;
               }
               computed_value_20=(uint)0xa8c0;
               if((selected_value_248==(int)computed_value_20))
               {
                  local_text_6="MN1";
                  next_selected_value_249=selected_value_232;
                  next_selected_value_250=selected_value_233;
                  next_selected_value_251=selected_value_234;
                  next_selected_value_252=selected_value_235;
                  next_selected_value_253=selected_value_236;
                  next_selected_value_254=selected_value_237;
                  next_selected_value_255=selected_value_238;
                  next_selected_value_256=selected_value_239;
                  next_selected_value_257=selected_value_240;
                  next_selected_value_258=selected_value_241;
                  next_selected_value_259=selected_value_242;
                  next_selected_value_260=selected_value_243;
                  next_selected_value_261=selected_value_244;
                  next_selected_value_262=selected_value_245;
                  next_selected_value_263=selected_value_246;
                  next_selected_value_264=selected_value_247;
                  selected_value_249=next_selected_value_249;
                  selected_value_250=next_selected_value_250;
                  selected_value_251=next_selected_value_251;
                  selected_value_252=next_selected_value_252;
                  selected_value_253=next_selected_value_253;
                  selected_value_254=next_selected_value_254;
                  selected_value_255=next_selected_value_255;
                  selected_value_256=next_selected_value_256;
                  selected_value_257=next_selected_value_257;
                  selected_value_258=next_selected_value_258;
                  selected_value_259=next_selected_value_259;
                  selected_value_260=next_selected_value_260;
                  selected_value_261=next_selected_value_261;
                  selected_value_262=next_selected_value_262;
                  selected_value_263=next_selected_value_263;
                  selected_value_264=next_selected_value_264;
               }
               else
               {
                  next_selected_value_249=selected_value_232;
                  next_selected_value_250=selected_value_233;
                  next_selected_value_251=selected_value_234;
                  next_selected_value_252=selected_value_235;
                  next_selected_value_253=selected_value_236;
                  next_selected_value_254=selected_value_237;
                  next_selected_value_255=selected_value_238;
                  next_selected_value_256=selected_value_239;
                  next_selected_value_257=selected_value_240;
                  next_selected_value_258=selected_value_241;
                  next_selected_value_259=selected_value_242;
                  next_selected_value_260=selected_value_243;
                  next_selected_value_261=selected_value_244;
                  next_selected_value_262=selected_value_245;
                  next_selected_value_263=selected_value_246;
                  next_selected_value_264=selected_value_247;
                  selected_value_249=next_selected_value_249;
                  selected_value_250=next_selected_value_250;
                  selected_value_251=next_selected_value_251;
                  selected_value_252=next_selected_value_252;
                  selected_value_253=next_selected_value_253;
                  selected_value_254=next_selected_value_254;
                  selected_value_255=next_selected_value_255;
                  selected_value_256=next_selected_value_256;
                  selected_value_257=next_selected_value_257;
                  selected_value_258=next_selected_value_258;
                  selected_value_259=next_selected_value_259;
                  selected_value_260=next_selected_value_260;
                  selected_value_261=next_selected_value_261;
                  selected_value_262=next_selected_value_262;
                  selected_value_263=next_selected_value_263;
                  selected_value_264=next_selected_value_264;
               }
               local_text_5+=local_text_6;
               local_text_5+=" ";
               computed_value_21=(long)selected_value_258;
               local_text_5+=IntegerToString(computed_value_21, 0, (ushort)(uint)0x20);
               local_text_5=local_text_5;
               ObjectDelete(local_text_5);
               ResetLastError();
               api_result_8=ObjectCreate(0, local_text_5, (ENUM_OBJECT)16, selected_value_264, selected_value_263, selected_value_249, selected_value_251, selected_value_250);
               if((api_result_8==false))
               {
                  _LastError_value_3=_LastError;
                  ResetLastError();
                  Print("RectangleCreate", ": failed to create a rectangle! Error code = ", _LastError_value_3);
                  next_selected_value_265=selected_value_252;
                  next_selected_value_266=selected_value_253;
                  next_selected_value_267=selected_value_256;
                  next_selected_value_268=selected_value_257;
                  next_selected_value_269=selected_value_258;
                  selected_value_265=next_selected_value_265;
                  selected_value_266=next_selected_value_266;
                  selected_value_267=next_selected_value_267;
                  selected_value_268=next_selected_value_268;
                  selected_value_269=next_selected_value_269;
               }
               else
               {
                  ObjectSetInteger(0, local_text_5, 6, selected_value_254);
                  computed_value_22=(long)selected_value_262;
                  ObjectSetInteger(0, local_text_5, 7, computed_value_22);
                  ObjectSetInteger(0, local_text_5, 8, 2);
                  computed_value_23=(int)(uint)selected_value_261;
                  computed_value_24=(long)computed_value_23;
                  ObjectSetInteger(0, local_text_5, 1031, computed_value_24);
                  computed_value_25=(int)(uint)selected_value_260;
                  computed_value_26=(long)computed_value_25;
                  ObjectSetInteger(0, local_text_5, 9, computed_value_26);
                  computed_value_27=(int)(uint)selected_value_259;
                  computed_value_28=(long)computed_value_27;
                  ObjectSetInteger(0, local_text_5, 1000, computed_value_28);
                  computed_value_29=(int)(uint)selected_value_259;
                  computed_value_30=(long)computed_value_29;
                  ObjectSetInteger(0, local_text_5, 17, computed_value_30);
                  ObjectSetInteger(0, local_text_5, 208, 0);
                  ObjectSetInteger(0, local_text_5, 207, selected_value_255);
                  api_result_9=ChartID();
                  ChartRedraw(api_result_9);
                  next_selected_value_265=selected_value_252;
                  next_selected_value_266=selected_value_253;
                  next_selected_value_267=selected_value_256;
                  next_selected_value_268=selected_value_257;
                  next_selected_value_269=selected_value_258;
                  selected_value_265=next_selected_value_265;
                  selected_value_266=next_selected_value_266;
                  selected_value_267=next_selected_value_267;
                  selected_value_268=next_selected_value_268;
                  selected_value_269=next_selected_value_269;
               }
               global_state_34_value=global_state_34;
               if((global_state_34_value==false))
               {
                  computed_value_31=(double)selected_value_267;
                  indicator_buffer_4[(uint)0x1]=computed_value_31;
                  computed_value_32=(double)selected_value_268;
                  indicator_buffer_5[(uint)0x1]=computed_value_32;
                  indicator_buffer_10[(uint)0x1]=selected_value_265;
                  indicator_buffer_11[(uint)0x1]=selected_value_266;
                  global_state_34=true;
                  next_selected_value_417=selected_value_269;
                  selected_value_417=next_selected_value_417;
               }
               else
               {
                  next_selected_value_417=selected_value_269;
                  selected_value_417=next_selected_value_417;
               }
            }
         }
         else
         {
            next_selected_value_417=bar_index;
            selected_value_417=next_selected_value_417;
         }
         computed_value_47=(int)((uint)selected_value_417+(uint)0x1);
         api_result_14=ArraySize(global_array_2);
         if((computed_value_47<api_result_14))
         {
            next_bar_index=computed_value_47;
            bar_index=next_bar_index;
            continue;
         }
         else
         {
            break;
         }
      }
   }
   local_text_6=NULL;
   local_text_5=NULL;
   local_text_4=NULL;
   local_text_3=NULL;
   local_text_2=NULL;
   local_text_1=NULL;
   return;
}

void UpdateText9(const uint value_1, const uint value_2, const uint value_3)
{
   string local_text_1;
   string local_text_2;
   string local_text_3;
   string local_text_4;
   string local_text_5;
   string local_text_6;
   string local_text_7;
   string local_text_8;
   string local_text_9;
   string local_text_10;
   string local_text_11;
   string local_text_12;
   string local_text_13;
   string local_text_14;
   double received_value;
   double received_value_2;
   double received_value_3;
   double received_value_4;
   double received_value_5;
   double received_value_6;
   double received_value_7;
   double received_value_8;
   double received_value_9;
   double received_value_10;
   double received_value_11;
   double received_value_12;
   ulong computed_value=0;
   int global_state_18_value=0;
   int global_state_18_value_2=0;
   long api_result=0;
   bool filterByDailyHighsLows_value=false;
   double property_value=0.0;
   double property_value_2=0.0;
   bool filterByDailyHighsLows_value_2=false;
   bool filterByWeekHighsLows_value=false;
   int computed_value_2=0;
   double property_value_3=0.0;
   double property_value_4=0.0;
   bool computed_value_3=false;
   bool computed_value_4=false;
   bool selected_value=false;
   bool filterByWeekHighsLows_value_2=false;
   datetime global_state_41_value=0;
   uint computed_value_5=0;
   uint computed_value_6=0;
   datetime Time_value=0;
   uint computed_value_7=0;
   uint computed_value_8=0;
   datetime Time_value_2=0;
   bool selected_value_2=false;
   int computed_value_9=0;
   int _Period_value=0;
   int _Period_value_2=0;
   int selected_value_3=0;
   int selected_value_4=0;
   int selected_value_5=0;
   int selected_value_6=0;
   int selected_value_7=0;
   int selected_value_8=0;
   int selected_value_9=0;
   int selected_value_10=0;
   uint computed_value_10=0;
   bool AlertsPopup_value=false;
   bool AlertsEmail_value=false;
   bool AlertsPush_value=false;
   int global_state_17_value=0;
   int global_state_17_value_2=0;
   long api_result_2=0;
   bool filterByDailyHighsLows_value_3=false;
   double property_value_5=0.0;
   double property_value_6=0.0;
   bool filterByDailyHighsLows_value_4=false;
   bool filterByWeekHighsLows_value_3=false;
   int computed_value_11=0;
   double property_value_7=0.0;
   double property_value_8=0.0;
   bool computed_value_12=false;
   bool computed_value_13=false;
   bool selected_value_11=false;
   bool filterByWeekHighsLows_value_4=false;
   datetime global_state_42_value=0;
   uint computed_value_14=0;
   uint computed_value_15=0;
   datetime Time_value_3=0;
   uint computed_value_16=0;
   uint computed_value_17=0;
   datetime Time_value_4=0;
   bool selected_value_12=false;
   int computed_value_18=0;
   int _Period_value_3=0;
   int _Period_value_4=0;
   int selected_value_13=0;
   int selected_value_14=0;
   int selected_value_15=0;
   int selected_value_16=0;
   int selected_value_17=0;
   int selected_value_18=0;
   int selected_value_19=0;
   int selected_value_20=0;
   uint computed_value_19=0;
   bool AlertsPopup_value_2=false;
   bool AlertsEmail_value_2=false;
   bool AlertsPush_value_2=false;
   bool filterByDailyHighsLows_value_5=false;
   bool drawLines_value=false;
   double property_value_9=0.0;
   bool api_result_3=false;
   long computed_value_20=0;
   long computed_value_21=0;
   int computed_value_22=0;
   long computed_value_23=0;
   int computed_value_24=0;
   long computed_value_25=0;
   int computed_value_26=0;
   long computed_value_27=0;
   int computed_value_28=0;
   long computed_value_29=0;
   long api_result_4=0;
   int _LastError_value=0;
   double property_value_10=0.0;
   bool api_result_5=false;
   long computed_value_30=0;
   long computed_value_31=0;
   int computed_value_32=0;
   long computed_value_33=0;
   int computed_value_34=0;
   long computed_value_35=0;
   int computed_value_36=0;
   long computed_value_37=0;
   int computed_value_38=0;
   long computed_value_39=0;
   long api_result_6=0;
   int _LastError_value_2=0;
   bool filterByWeekHighsLows_value_5=false;
   bool drawLines_value_2=false;
   double property_value_11=0.0;
   bool api_result_7=false;
   long computed_value_40=0;
   long computed_value_41=0;
   int computed_value_42=0;
   long computed_value_43=0;
   int computed_value_44=0;
   long computed_value_45=0;
   int computed_value_46=0;
   long computed_value_47=0;
   int computed_value_48=0;
   long computed_value_49=0;
   long api_result_8=0;
   int _LastError_value_3=0;
   double property_value_12=0.0;
   bool api_result_9=false;
   long computed_value_50=0;
   long computed_value_51=0;
   int computed_value_52=0;
   long computed_value_53=0;
   int computed_value_54=0;
   long computed_value_55=0;
   int computed_value_56=0;
   long computed_value_57=0;
   int computed_value_58=0;
   long computed_value_59=0;
   long api_result_10=0;
   int _LastError_value_4=0;
   bool next_selected_value=false;
   bool next_selected_value_2=false;
   int next_selected_value_3=0;
   int next_selected_value_4=0;
   int next_selected_value_5=0;
   int next_selected_value_6=0;
   int next_selected_value_7=0;
   int next_selected_value_8=0;
   int next_selected_value_9=0;
   int next_selected_value_10=0;
   bool next_selected_value_11=false;
   bool next_selected_value_12=false;
   int next_selected_value_13=0;
   int next_selected_value_14=0;
   int next_selected_value_15=0;
   int next_selected_value_16=0;
   int next_selected_value_17=0;
   int next_selected_value_18=0;
   int next_selected_value_19=0;
   int next_selected_value_20=0;
   computed_value=(ulong)((((ulong)value_2<<32)|(ulong)value_1));
   local_text_1=NULL;
   local_text_2=NULL;
   local_text_3=NULL;
   local_text_4=NULL;
   local_text_5=NULL;
   local_text_6=NULL;
   local_text_7=NULL;
   local_text_8=NULL;
   local_text_9=NULL;
   local_text_10=NULL;
   local_text_11=NULL;
   local_text_12=NULL;
   local_text_13=NULL;
   local_text_14=NULL;
   global_state_18_value=global_state_18;
   if((0<global_state_18_value))
   {
      global_state_18_value_2=global_state_18;
      if((global_state_18_value_2==1))
      {
         if((value_3==(uint)0x0))
         {
            api_result=iTime(_Symbol, 0, 1);
            if((api_result==(long)computed_value))
            {
               filterByDailyHighsLows_value=filterByDailyHighsLows;
               if((filterByDailyHighsLows_value==true))
               {
                  received_value=iClose(_Symbol, 0, 1);
                  property_value=received_value;
                  received_value_2=iLow(_Symbol, 1440, 1);
                  property_value_2=received_value_2;
                  if(!(property_value<property_value_2))
                  {
                     filterByDailyHighsLows_value_2=filterByDailyHighsLows;
                     if((filterByDailyHighsLows_value_2!=false))
                     {
                     }
                     else
                     {
                        filterByWeekHighsLows_value=filterByWeekHighsLows;
                        computed_value_2=(int)(uint)filterByWeekHighsLows_value;
                        if((computed_value_2==1))
                        {
                           received_value_3=iClose(_Symbol, 0, 1);
                           property_value_3=received_value_3;
                           received_value_4=iLow(_Symbol, 10080, 1);
                           property_value_4=received_value_4;
                           computed_value_3=(property_value_3!=property_value_3);
                           computed_value_4=(property_value_4!=property_value_4);
                           if((!computed_value_3&&!computed_value_4))
                           {
                              next_selected_value=(property_value_3<property_value_4);
                              selected_value=next_selected_value;
                           }
                           else
                           {
                              next_selected_value=false;
                              selected_value=next_selected_value;
                           }
                           if((selected_value==false))
                           {
                              filterByWeekHighsLows_value_2=filterByWeekHighsLows;
                              if((filterByWeekHighsLows_value_2!=false))
                              {
                              }
                              else
                              {
                                 global_state_41_value=global_state_41;
                                 computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                                 computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                                 Time_value=Time[(uint)0x0];
                                 computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                                 computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                                 if((computed_value_6==computed_value_8))
                                 {
                                    if((computed_value_5==computed_value_7))
                                    {
                                       next_selected_value_2=false;
                                       selected_value_2=next_selected_value_2;
                                    }
                                    else
                                    {
                                       Time_value_2=Time[(uint)0x0];
                                       global_state_41=Time_value_2;
                                       next_selected_value_2=true;
                                       selected_value_2=next_selected_value_2;
                                    }
                                 }
                                 else
                                 {
                                    Time_value_2=Time[(uint)0x0];
                                    global_state_41=Time_value_2;
                                    next_selected_value_2=true;
                                    selected_value_2=next_selected_value_2;
                                 }
                                 computed_value_9=(int)(uint)selected_value_2;
                                 if((computed_value_9==1))
                                 {
                                    local_text_1=buyAlertText;
                                    local_text_2=NULL;
                                    _Period_value=_Period;
                                    local_text_3=NULL;
                                    local_text_3="NONE";
                                    _Period_value_2=_Period;
                                    if((_Period_value_2==1))
                                    {
                                       local_text_3="M1";
                                       next_selected_value_3=_Period_value;
                                       selected_value_3=next_selected_value_3;
                                    }
                                    else
                                    {
                                       next_selected_value_3=_Period_value;
                                       selected_value_3=next_selected_value_3;
                                    }
                                    if((selected_value_3==5))
                                    {
                                       local_text_3="M5";
                                       next_selected_value_4=selected_value_3;
                                       selected_value_4=next_selected_value_4;
                                    }
                                    else
                                    {
                                       next_selected_value_4=selected_value_3;
                                       selected_value_4=next_selected_value_4;
                                    }
                                    if((selected_value_4==15))
                                    {
                                       local_text_3="M15";
                                       next_selected_value_5=selected_value_4;
                                       selected_value_5=next_selected_value_5;
                                    }
                                    else
                                    {
                                       next_selected_value_5=selected_value_4;
                                       selected_value_5=next_selected_value_5;
                                    }
                                    if((selected_value_5==30))
                                    {
                                       local_text_3="M30";
                                       next_selected_value_6=selected_value_5;
                                       selected_value_6=next_selected_value_6;
                                    }
                                    else
                                    {
                                       next_selected_value_6=selected_value_5;
                                       selected_value_6=next_selected_value_6;
                                    }
                                    if((selected_value_6==60))
                                    {
                                       local_text_3="H1";
                                       next_selected_value_7=selected_value_6;
                                       selected_value_7=next_selected_value_7;
                                    }
                                    else
                                    {
                                       next_selected_value_7=selected_value_6;
                                       selected_value_7=next_selected_value_7;
                                    }
                                    if((selected_value_7==240))
                                    {
                                       local_text_3="H4";
                                       next_selected_value_8=selected_value_7;
                                       selected_value_8=next_selected_value_8;
                                    }
                                    else
                                    {
                                       next_selected_value_8=selected_value_7;
                                       selected_value_8=next_selected_value_8;
                                    }
                                    if((selected_value_8==1440))
                                    {
                                       local_text_3="D1";
                                       next_selected_value_9=selected_value_8;
                                       selected_value_9=next_selected_value_9;
                                    }
                                    else
                                    {
                                       next_selected_value_9=selected_value_8;
                                       selected_value_9=next_selected_value_9;
                                    }
                                    if((selected_value_9==10080))
                                    {
                                       local_text_3="W1";
                                       next_selected_value_10=selected_value_9;
                                       selected_value_10=next_selected_value_10;
                                    }
                                    else
                                    {
                                       next_selected_value_10=selected_value_9;
                                       selected_value_10=next_selected_value_10;
                                    }
                                    computed_value_10=(uint)0xa8c0;
                                    if((selected_value_10==(int)computed_value_10))
                                    {
                                       local_text_3="MN1";
                                    }
                                    local_text_4=local_text_3;
                                    local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                                    AlertsPopup_value=AlertsPopup;
                                    if((AlertsPopup_value!=false))
                                    {
                                       Alert(local_text_2);
                                    }
                                    AlertsEmail_value=AlertsEmail;
                                    if((AlertsEmail_value!=false))
                                    {
                                       local_text_5=StringConcatenate(_Symbol, " : ");
                                       SendMail(local_text_5, local_text_2);
                                    }
                                    AlertsPush_value=AlertsPush;
                                    if((AlertsPush_value!=false))
                                    {
                                       SendNotification(local_text_2);
                                    }
                                    indicator_buffer_2[(uint)0x1]=1.0;
                                 }
                                 else
                                 {
                                    indicator_buffer_2[(uint)0x1]=0.0;
                                 }
                              }
                           }
                           else
                           {
                              global_state_41_value=global_state_41;
                              computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                              computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                              Time_value=Time[(uint)0x0];
                              computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                              computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                              if((computed_value_6==computed_value_8))
                              {
                                 if((computed_value_5==computed_value_7))
                                 {
                                    next_selected_value_2=false;
                                    selected_value_2=next_selected_value_2;
                                 }
                                 else
                                 {
                                    Time_value_2=Time[(uint)0x0];
                                    global_state_41=Time_value_2;
                                    next_selected_value_2=true;
                                    selected_value_2=next_selected_value_2;
                                 }
                              }
                              else
                              {
                                 Time_value_2=Time[(uint)0x0];
                                 global_state_41=Time_value_2;
                                 next_selected_value_2=true;
                                 selected_value_2=next_selected_value_2;
                              }
                              computed_value_9=(int)(uint)selected_value_2;
                              if((computed_value_9==1))
                              {
                                 local_text_1=buyAlertText;
                                 local_text_2=NULL;
                                 _Period_value=_Period;
                                 local_text_3=NULL;
                                 local_text_3="NONE";
                                 _Period_value_2=_Period;
                                 if((_Period_value_2==1))
                                 {
                                    local_text_3="M1";
                                    next_selected_value_3=_Period_value;
                                    selected_value_3=next_selected_value_3;
                                 }
                                 else
                                 {
                                    next_selected_value_3=_Period_value;
                                    selected_value_3=next_selected_value_3;
                                 }
                                 if((selected_value_3==5))
                                 {
                                    local_text_3="M5";
                                    next_selected_value_4=selected_value_3;
                                    selected_value_4=next_selected_value_4;
                                 }
                                 else
                                 {
                                    next_selected_value_4=selected_value_3;
                                    selected_value_4=next_selected_value_4;
                                 }
                                 if((selected_value_4==15))
                                 {
                                    local_text_3="M15";
                                    next_selected_value_5=selected_value_4;
                                    selected_value_5=next_selected_value_5;
                                 }
                                 else
                                 {
                                    next_selected_value_5=selected_value_4;
                                    selected_value_5=next_selected_value_5;
                                 }
                                 if((selected_value_5==30))
                                 {
                                    local_text_3="M30";
                                    next_selected_value_6=selected_value_5;
                                    selected_value_6=next_selected_value_6;
                                 }
                                 else
                                 {
                                    next_selected_value_6=selected_value_5;
                                    selected_value_6=next_selected_value_6;
                                 }
                                 if((selected_value_6==60))
                                 {
                                    local_text_3="H1";
                                    next_selected_value_7=selected_value_6;
                                    selected_value_7=next_selected_value_7;
                                 }
                                 else
                                 {
                                    next_selected_value_7=selected_value_6;
                                    selected_value_7=next_selected_value_7;
                                 }
                                 if((selected_value_7==240))
                                 {
                                    local_text_3="H4";
                                    next_selected_value_8=selected_value_7;
                                    selected_value_8=next_selected_value_8;
                                 }
                                 else
                                 {
                                    next_selected_value_8=selected_value_7;
                                    selected_value_8=next_selected_value_8;
                                 }
                                 if((selected_value_8==1440))
                                 {
                                    local_text_3="D1";
                                    next_selected_value_9=selected_value_8;
                                    selected_value_9=next_selected_value_9;
                                 }
                                 else
                                 {
                                    next_selected_value_9=selected_value_8;
                                    selected_value_9=next_selected_value_9;
                                 }
                                 if((selected_value_9==10080))
                                 {
                                    local_text_3="W1";
                                    next_selected_value_10=selected_value_9;
                                    selected_value_10=next_selected_value_10;
                                 }
                                 else
                                 {
                                    next_selected_value_10=selected_value_9;
                                    selected_value_10=next_selected_value_10;
                                 }
                                 computed_value_10=(uint)0xa8c0;
                                 if((selected_value_10==(int)computed_value_10))
                                 {
                                    local_text_3="MN1";
                                 }
                                 local_text_4=local_text_3;
                                 local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                                 AlertsPopup_value=AlertsPopup;
                                 if((AlertsPopup_value!=false))
                                 {
                                    Alert(local_text_2);
                                 }
                                 AlertsEmail_value=AlertsEmail;
                                 if((AlertsEmail_value!=false))
                                 {
                                    local_text_5=StringConcatenate(_Symbol, " : ");
                                    SendMail(local_text_5, local_text_2);
                                 }
                                 AlertsPush_value=AlertsPush;
                                 if((AlertsPush_value!=false))
                                 {
                                    SendNotification(local_text_2);
                                 }
                                 indicator_buffer_2[(uint)0x1]=1.0;
                              }
                              else
                              {
                                 indicator_buffer_2[(uint)0x1]=0.0;
                              }
                           }
                        }
                        else
                        {
                           filterByWeekHighsLows_value_2=filterByWeekHighsLows;
                           if((filterByWeekHighsLows_value_2!=false))
                           {
                           }
                           else
                           {
                              global_state_41_value=global_state_41;
                              computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                              computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                              Time_value=Time[(uint)0x0];
                              computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                              computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                              if((computed_value_6==computed_value_8))
                              {
                                 if((computed_value_5==computed_value_7))
                                 {
                                    next_selected_value_2=false;
                                    selected_value_2=next_selected_value_2;
                                 }
                                 else
                                 {
                                    Time_value_2=Time[(uint)0x0];
                                    global_state_41=Time_value_2;
                                    next_selected_value_2=true;
                                    selected_value_2=next_selected_value_2;
                                 }
                              }
                              else
                              {
                                 Time_value_2=Time[(uint)0x0];
                                 global_state_41=Time_value_2;
                                 next_selected_value_2=true;
                                 selected_value_2=next_selected_value_2;
                              }
                              computed_value_9=(int)(uint)selected_value_2;
                              if((computed_value_9==1))
                              {
                                 local_text_1=buyAlertText;
                                 local_text_2=NULL;
                                 _Period_value=_Period;
                                 local_text_3=NULL;
                                 local_text_3="NONE";
                                 _Period_value_2=_Period;
                                 if((_Period_value_2==1))
                                 {
                                    local_text_3="M1";
                                    next_selected_value_3=_Period_value;
                                    selected_value_3=next_selected_value_3;
                                 }
                                 else
                                 {
                                    next_selected_value_3=_Period_value;
                                    selected_value_3=next_selected_value_3;
                                 }
                                 if((selected_value_3==5))
                                 {
                                    local_text_3="M5";
                                    next_selected_value_4=selected_value_3;
                                    selected_value_4=next_selected_value_4;
                                 }
                                 else
                                 {
                                    next_selected_value_4=selected_value_3;
                                    selected_value_4=next_selected_value_4;
                                 }
                                 if((selected_value_4==15))
                                 {
                                    local_text_3="M15";
                                    next_selected_value_5=selected_value_4;
                                    selected_value_5=next_selected_value_5;
                                 }
                                 else
                                 {
                                    next_selected_value_5=selected_value_4;
                                    selected_value_5=next_selected_value_5;
                                 }
                                 if((selected_value_5==30))
                                 {
                                    local_text_3="M30";
                                    next_selected_value_6=selected_value_5;
                                    selected_value_6=next_selected_value_6;
                                 }
                                 else
                                 {
                                    next_selected_value_6=selected_value_5;
                                    selected_value_6=next_selected_value_6;
                                 }
                                 if((selected_value_6==60))
                                 {
                                    local_text_3="H1";
                                    next_selected_value_7=selected_value_6;
                                    selected_value_7=next_selected_value_7;
                                 }
                                 else
                                 {
                                    next_selected_value_7=selected_value_6;
                                    selected_value_7=next_selected_value_7;
                                 }
                                 if((selected_value_7==240))
                                 {
                                    local_text_3="H4";
                                    next_selected_value_8=selected_value_7;
                                    selected_value_8=next_selected_value_8;
                                 }
                                 else
                                 {
                                    next_selected_value_8=selected_value_7;
                                    selected_value_8=next_selected_value_8;
                                 }
                                 if((selected_value_8==1440))
                                 {
                                    local_text_3="D1";
                                    next_selected_value_9=selected_value_8;
                                    selected_value_9=next_selected_value_9;
                                 }
                                 else
                                 {
                                    next_selected_value_9=selected_value_8;
                                    selected_value_9=next_selected_value_9;
                                 }
                                 if((selected_value_9==10080))
                                 {
                                    local_text_3="W1";
                                    next_selected_value_10=selected_value_9;
                                    selected_value_10=next_selected_value_10;
                                 }
                                 else
                                 {
                                    next_selected_value_10=selected_value_9;
                                    selected_value_10=next_selected_value_10;
                                 }
                                 computed_value_10=(uint)0xa8c0;
                                 if((selected_value_10==(int)computed_value_10))
                                 {
                                    local_text_3="MN1";
                                 }
                                 local_text_4=local_text_3;
                                 local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                                 AlertsPopup_value=AlertsPopup;
                                 if((AlertsPopup_value!=false))
                                 {
                                    Alert(local_text_2);
                                 }
                                 AlertsEmail_value=AlertsEmail;
                                 if((AlertsEmail_value!=false))
                                 {
                                    local_text_5=StringConcatenate(_Symbol, " : ");
                                    SendMail(local_text_5, local_text_2);
                                 }
                                 AlertsPush_value=AlertsPush;
                                 if((AlertsPush_value!=false))
                                 {
                                    SendNotification(local_text_2);
                                 }
                                 indicator_buffer_2[(uint)0x1]=1.0;
                              }
                              else
                              {
                                 indicator_buffer_2[(uint)0x1]=0.0;
                              }
                           }
                        }
                     }
                  }
                  else
                  {
                     filterByWeekHighsLows_value=filterByWeekHighsLows;
                     computed_value_2=(int)(uint)filterByWeekHighsLows_value;
                     if((computed_value_2==1))
                     {
                        received_value_3=iClose(_Symbol, 0, 1);
                        property_value_3=received_value_3;
                        received_value_4=iLow(_Symbol, 10080, 1);
                        property_value_4=received_value_4;
                        computed_value_3=(property_value_3!=property_value_3);
                        computed_value_4=(property_value_4!=property_value_4);
                        if((!computed_value_3&&!computed_value_4))
                        {
                           next_selected_value=(property_value_3<property_value_4);
                           selected_value=next_selected_value;
                        }
                        else
                        {
                           next_selected_value=false;
                           selected_value=next_selected_value;
                        }
                        if((selected_value==false))
                        {
                           filterByWeekHighsLows_value_2=filterByWeekHighsLows;
                           if((filterByWeekHighsLows_value_2!=false))
                           {
                           }
                           else
                           {
                              global_state_41_value=global_state_41;
                              computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                              computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                              Time_value=Time[(uint)0x0];
                              computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                              computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                              if((computed_value_6==computed_value_8))
                              {
                                 if((computed_value_5==computed_value_7))
                                 {
                                    next_selected_value_2=false;
                                    selected_value_2=next_selected_value_2;
                                 }
                                 else
                                 {
                                    Time_value_2=Time[(uint)0x0];
                                    global_state_41=Time_value_2;
                                    next_selected_value_2=true;
                                    selected_value_2=next_selected_value_2;
                                 }
                              }
                              else
                              {
                                 Time_value_2=Time[(uint)0x0];
                                 global_state_41=Time_value_2;
                                 next_selected_value_2=true;
                                 selected_value_2=next_selected_value_2;
                              }
                              computed_value_9=(int)(uint)selected_value_2;
                              if((computed_value_9==1))
                              {
                                 local_text_1=buyAlertText;
                                 local_text_2=NULL;
                                 _Period_value=_Period;
                                 local_text_3=NULL;
                                 local_text_3="NONE";
                                 _Period_value_2=_Period;
                                 if((_Period_value_2==1))
                                 {
                                    local_text_3="M1";
                                    next_selected_value_3=_Period_value;
                                    selected_value_3=next_selected_value_3;
                                 }
                                 else
                                 {
                                    next_selected_value_3=_Period_value;
                                    selected_value_3=next_selected_value_3;
                                 }
                                 if((selected_value_3==5))
                                 {
                                    local_text_3="M5";
                                    next_selected_value_4=selected_value_3;
                                    selected_value_4=next_selected_value_4;
                                 }
                                 else
                                 {
                                    next_selected_value_4=selected_value_3;
                                    selected_value_4=next_selected_value_4;
                                 }
                                 if((selected_value_4==15))
                                 {
                                    local_text_3="M15";
                                    next_selected_value_5=selected_value_4;
                                    selected_value_5=next_selected_value_5;
                                 }
                                 else
                                 {
                                    next_selected_value_5=selected_value_4;
                                    selected_value_5=next_selected_value_5;
                                 }
                                 if((selected_value_5==30))
                                 {
                                    local_text_3="M30";
                                    next_selected_value_6=selected_value_5;
                                    selected_value_6=next_selected_value_6;
                                 }
                                 else
                                 {
                                    next_selected_value_6=selected_value_5;
                                    selected_value_6=next_selected_value_6;
                                 }
                                 if((selected_value_6==60))
                                 {
                                    local_text_3="H1";
                                    next_selected_value_7=selected_value_6;
                                    selected_value_7=next_selected_value_7;
                                 }
                                 else
                                 {
                                    next_selected_value_7=selected_value_6;
                                    selected_value_7=next_selected_value_7;
                                 }
                                 if((selected_value_7==240))
                                 {
                                    local_text_3="H4";
                                    next_selected_value_8=selected_value_7;
                                    selected_value_8=next_selected_value_8;
                                 }
                                 else
                                 {
                                    next_selected_value_8=selected_value_7;
                                    selected_value_8=next_selected_value_8;
                                 }
                                 if((selected_value_8==1440))
                                 {
                                    local_text_3="D1";
                                    next_selected_value_9=selected_value_8;
                                    selected_value_9=next_selected_value_9;
                                 }
                                 else
                                 {
                                    next_selected_value_9=selected_value_8;
                                    selected_value_9=next_selected_value_9;
                                 }
                                 if((selected_value_9==10080))
                                 {
                                    local_text_3="W1";
                                    next_selected_value_10=selected_value_9;
                                    selected_value_10=next_selected_value_10;
                                 }
                                 else
                                 {
                                    next_selected_value_10=selected_value_9;
                                    selected_value_10=next_selected_value_10;
                                 }
                                 computed_value_10=(uint)0xa8c0;
                                 if((selected_value_10==(int)computed_value_10))
                                 {
                                    local_text_3="MN1";
                                 }
                                 local_text_4=local_text_3;
                                 local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                                 AlertsPopup_value=AlertsPopup;
                                 if((AlertsPopup_value!=false))
                                 {
                                    Alert(local_text_2);
                                 }
                                 AlertsEmail_value=AlertsEmail;
                                 if((AlertsEmail_value!=false))
                                 {
                                    local_text_5=StringConcatenate(_Symbol, " : ");
                                    SendMail(local_text_5, local_text_2);
                                 }
                                 AlertsPush_value=AlertsPush;
                                 if((AlertsPush_value!=false))
                                 {
                                    SendNotification(local_text_2);
                                 }
                                 indicator_buffer_2[(uint)0x1]=1.0;
                              }
                              else
                              {
                                 indicator_buffer_2[(uint)0x1]=0.0;
                              }
                           }
                        }
                        else
                        {
                           global_state_41_value=global_state_41;
                           computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                           computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                           Time_value=Time[(uint)0x0];
                           computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                           computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                           if((computed_value_6==computed_value_8))
                           {
                              if((computed_value_5==computed_value_7))
                              {
                                 next_selected_value_2=false;
                                 selected_value_2=next_selected_value_2;
                              }
                              else
                              {
                                 Time_value_2=Time[(uint)0x0];
                                 global_state_41=Time_value_2;
                                 next_selected_value_2=true;
                                 selected_value_2=next_selected_value_2;
                              }
                           }
                           else
                           {
                              Time_value_2=Time[(uint)0x0];
                              global_state_41=Time_value_2;
                              next_selected_value_2=true;
                              selected_value_2=next_selected_value_2;
                           }
                           computed_value_9=(int)(uint)selected_value_2;
                           if((computed_value_9==1))
                           {
                              local_text_1=buyAlertText;
                              local_text_2=NULL;
                              _Period_value=_Period;
                              local_text_3=NULL;
                              local_text_3="NONE";
                              _Period_value_2=_Period;
                              if((_Period_value_2==1))
                              {
                                 local_text_3="M1";
                                 next_selected_value_3=_Period_value;
                                 selected_value_3=next_selected_value_3;
                              }
                              else
                              {
                                 next_selected_value_3=_Period_value;
                                 selected_value_3=next_selected_value_3;
                              }
                              if((selected_value_3==5))
                              {
                                 local_text_3="M5";
                                 next_selected_value_4=selected_value_3;
                                 selected_value_4=next_selected_value_4;
                              }
                              else
                              {
                                 next_selected_value_4=selected_value_3;
                                 selected_value_4=next_selected_value_4;
                              }
                              if((selected_value_4==15))
                              {
                                 local_text_3="M15";
                                 next_selected_value_5=selected_value_4;
                                 selected_value_5=next_selected_value_5;
                              }
                              else
                              {
                                 next_selected_value_5=selected_value_4;
                                 selected_value_5=next_selected_value_5;
                              }
                              if((selected_value_5==30))
                              {
                                 local_text_3="M30";
                                 next_selected_value_6=selected_value_5;
                                 selected_value_6=next_selected_value_6;
                              }
                              else
                              {
                                 next_selected_value_6=selected_value_5;
                                 selected_value_6=next_selected_value_6;
                              }
                              if((selected_value_6==60))
                              {
                                 local_text_3="H1";
                                 next_selected_value_7=selected_value_6;
                                 selected_value_7=next_selected_value_7;
                              }
                              else
                              {
                                 next_selected_value_7=selected_value_6;
                                 selected_value_7=next_selected_value_7;
                              }
                              if((selected_value_7==240))
                              {
                                 local_text_3="H4";
                                 next_selected_value_8=selected_value_7;
                                 selected_value_8=next_selected_value_8;
                              }
                              else
                              {
                                 next_selected_value_8=selected_value_7;
                                 selected_value_8=next_selected_value_8;
                              }
                              if((selected_value_8==1440))
                              {
                                 local_text_3="D1";
                                 next_selected_value_9=selected_value_8;
                                 selected_value_9=next_selected_value_9;
                              }
                              else
                              {
                                 next_selected_value_9=selected_value_8;
                                 selected_value_9=next_selected_value_9;
                              }
                              if((selected_value_9==10080))
                              {
                                 local_text_3="W1";
                                 next_selected_value_10=selected_value_9;
                                 selected_value_10=next_selected_value_10;
                              }
                              else
                              {
                                 next_selected_value_10=selected_value_9;
                                 selected_value_10=next_selected_value_10;
                              }
                              computed_value_10=(uint)0xa8c0;
                              if((selected_value_10==(int)computed_value_10))
                              {
                                 local_text_3="MN1";
                              }
                              local_text_4=local_text_3;
                              local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                              AlertsPopup_value=AlertsPopup;
                              if((AlertsPopup_value!=false))
                              {
                                 Alert(local_text_2);
                              }
                              AlertsEmail_value=AlertsEmail;
                              if((AlertsEmail_value!=false))
                              {
                                 local_text_5=StringConcatenate(_Symbol, " : ");
                                 SendMail(local_text_5, local_text_2);
                              }
                              AlertsPush_value=AlertsPush;
                              if((AlertsPush_value!=false))
                              {
                                 SendNotification(local_text_2);
                              }
                              indicator_buffer_2[(uint)0x1]=1.0;
                           }
                           else
                           {
                              indicator_buffer_2[(uint)0x1]=0.0;
                           }
                        }
                     }
                     else
                     {
                        filterByWeekHighsLows_value_2=filterByWeekHighsLows;
                        if((filterByWeekHighsLows_value_2!=false))
                        {
                        }
                        else
                        {
                           global_state_41_value=global_state_41;
                           computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                           computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                           Time_value=Time[(uint)0x0];
                           computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                           computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                           if((computed_value_6==computed_value_8))
                           {
                              if((computed_value_5==computed_value_7))
                              {
                                 next_selected_value_2=false;
                                 selected_value_2=next_selected_value_2;
                              }
                              else
                              {
                                 Time_value_2=Time[(uint)0x0];
                                 global_state_41=Time_value_2;
                                 next_selected_value_2=true;
                                 selected_value_2=next_selected_value_2;
                              }
                           }
                           else
                           {
                              Time_value_2=Time[(uint)0x0];
                              global_state_41=Time_value_2;
                              next_selected_value_2=true;
                              selected_value_2=next_selected_value_2;
                           }
                           computed_value_9=(int)(uint)selected_value_2;
                           if((computed_value_9==1))
                           {
                              local_text_1=buyAlertText;
                              local_text_2=NULL;
                              _Period_value=_Period;
                              local_text_3=NULL;
                              local_text_3="NONE";
                              _Period_value_2=_Period;
                              if((_Period_value_2==1))
                              {
                                 local_text_3="M1";
                                 next_selected_value_3=_Period_value;
                                 selected_value_3=next_selected_value_3;
                              }
                              else
                              {
                                 next_selected_value_3=_Period_value;
                                 selected_value_3=next_selected_value_3;
                              }
                              if((selected_value_3==5))
                              {
                                 local_text_3="M5";
                                 next_selected_value_4=selected_value_3;
                                 selected_value_4=next_selected_value_4;
                              }
                              else
                              {
                                 next_selected_value_4=selected_value_3;
                                 selected_value_4=next_selected_value_4;
                              }
                              if((selected_value_4==15))
                              {
                                 local_text_3="M15";
                                 next_selected_value_5=selected_value_4;
                                 selected_value_5=next_selected_value_5;
                              }
                              else
                              {
                                 next_selected_value_5=selected_value_4;
                                 selected_value_5=next_selected_value_5;
                              }
                              if((selected_value_5==30))
                              {
                                 local_text_3="M30";
                                 next_selected_value_6=selected_value_5;
                                 selected_value_6=next_selected_value_6;
                              }
                              else
                              {
                                 next_selected_value_6=selected_value_5;
                                 selected_value_6=next_selected_value_6;
                              }
                              if((selected_value_6==60))
                              {
                                 local_text_3="H1";
                                 next_selected_value_7=selected_value_6;
                                 selected_value_7=next_selected_value_7;
                              }
                              else
                              {
                                 next_selected_value_7=selected_value_6;
                                 selected_value_7=next_selected_value_7;
                              }
                              if((selected_value_7==240))
                              {
                                 local_text_3="H4";
                                 next_selected_value_8=selected_value_7;
                                 selected_value_8=next_selected_value_8;
                              }
                              else
                              {
                                 next_selected_value_8=selected_value_7;
                                 selected_value_8=next_selected_value_8;
                              }
                              if((selected_value_8==1440))
                              {
                                 local_text_3="D1";
                                 next_selected_value_9=selected_value_8;
                                 selected_value_9=next_selected_value_9;
                              }
                              else
                              {
                                 next_selected_value_9=selected_value_8;
                                 selected_value_9=next_selected_value_9;
                              }
                              if((selected_value_9==10080))
                              {
                                 local_text_3="W1";
                                 next_selected_value_10=selected_value_9;
                                 selected_value_10=next_selected_value_10;
                              }
                              else
                              {
                                 next_selected_value_10=selected_value_9;
                                 selected_value_10=next_selected_value_10;
                              }
                              computed_value_10=(uint)0xa8c0;
                              if((selected_value_10==(int)computed_value_10))
                              {
                                 local_text_3="MN1";
                              }
                              local_text_4=local_text_3;
                              local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                              AlertsPopup_value=AlertsPopup;
                              if((AlertsPopup_value!=false))
                              {
                                 Alert(local_text_2);
                              }
                              AlertsEmail_value=AlertsEmail;
                              if((AlertsEmail_value!=false))
                              {
                                 local_text_5=StringConcatenate(_Symbol, " : ");
                                 SendMail(local_text_5, local_text_2);
                              }
                              AlertsPush_value=AlertsPush;
                              if((AlertsPush_value!=false))
                              {
                                 SendNotification(local_text_2);
                              }
                              indicator_buffer_2[(uint)0x1]=1.0;
                           }
                           else
                           {
                              indicator_buffer_2[(uint)0x1]=0.0;
                           }
                        }
                     }
                  }
               }
               else
               {
                  filterByDailyHighsLows_value_2=filterByDailyHighsLows;
                  if((filterByDailyHighsLows_value_2!=false))
                  {
                  }
                  else
                  {
                     filterByWeekHighsLows_value=filterByWeekHighsLows;
                     computed_value_2=(int)(uint)filterByWeekHighsLows_value;
                     if((computed_value_2==1))
                     {
                        received_value_3=iClose(_Symbol, 0, 1);
                        property_value_3=received_value_3;
                        received_value_4=iLow(_Symbol, 10080, 1);
                        property_value_4=received_value_4;
                        computed_value_3=(property_value_3!=property_value_3);
                        computed_value_4=(property_value_4!=property_value_4);
                        if((!computed_value_3&&!computed_value_4))
                        {
                           next_selected_value=(property_value_3<property_value_4);
                           selected_value=next_selected_value;
                        }
                        else
                        {
                           next_selected_value=false;
                           selected_value=next_selected_value;
                        }
                        if((selected_value==false))
                        {
                           filterByWeekHighsLows_value_2=filterByWeekHighsLows;
                           if((filterByWeekHighsLows_value_2!=false))
                           {
                           }
                           else
                           {
                              global_state_41_value=global_state_41;
                              computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                              computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                              Time_value=Time[(uint)0x0];
                              computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                              computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                              if((computed_value_6==computed_value_8))
                              {
                                 if((computed_value_5==computed_value_7))
                                 {
                                    next_selected_value_2=false;
                                    selected_value_2=next_selected_value_2;
                                 }
                                 else
                                 {
                                    Time_value_2=Time[(uint)0x0];
                                    global_state_41=Time_value_2;
                                    next_selected_value_2=true;
                                    selected_value_2=next_selected_value_2;
                                 }
                              }
                              else
                              {
                                 Time_value_2=Time[(uint)0x0];
                                 global_state_41=Time_value_2;
                                 next_selected_value_2=true;
                                 selected_value_2=next_selected_value_2;
                              }
                              computed_value_9=(int)(uint)selected_value_2;
                              if((computed_value_9==1))
                              {
                                 local_text_1=buyAlertText;
                                 local_text_2=NULL;
                                 _Period_value=_Period;
                                 local_text_3=NULL;
                                 local_text_3="NONE";
                                 _Period_value_2=_Period;
                                 if((_Period_value_2==1))
                                 {
                                    local_text_3="M1";
                                    next_selected_value_3=_Period_value;
                                    selected_value_3=next_selected_value_3;
                                 }
                                 else
                                 {
                                    next_selected_value_3=_Period_value;
                                    selected_value_3=next_selected_value_3;
                                 }
                                 if((selected_value_3==5))
                                 {
                                    local_text_3="M5";
                                    next_selected_value_4=selected_value_3;
                                    selected_value_4=next_selected_value_4;
                                 }
                                 else
                                 {
                                    next_selected_value_4=selected_value_3;
                                    selected_value_4=next_selected_value_4;
                                 }
                                 if((selected_value_4==15))
                                 {
                                    local_text_3="M15";
                                    next_selected_value_5=selected_value_4;
                                    selected_value_5=next_selected_value_5;
                                 }
                                 else
                                 {
                                    next_selected_value_5=selected_value_4;
                                    selected_value_5=next_selected_value_5;
                                 }
                                 if((selected_value_5==30))
                                 {
                                    local_text_3="M30";
                                    next_selected_value_6=selected_value_5;
                                    selected_value_6=next_selected_value_6;
                                 }
                                 else
                                 {
                                    next_selected_value_6=selected_value_5;
                                    selected_value_6=next_selected_value_6;
                                 }
                                 if((selected_value_6==60))
                                 {
                                    local_text_3="H1";
                                    next_selected_value_7=selected_value_6;
                                    selected_value_7=next_selected_value_7;
                                 }
                                 else
                                 {
                                    next_selected_value_7=selected_value_6;
                                    selected_value_7=next_selected_value_7;
                                 }
                                 if((selected_value_7==240))
                                 {
                                    local_text_3="H4";
                                    next_selected_value_8=selected_value_7;
                                    selected_value_8=next_selected_value_8;
                                 }
                                 else
                                 {
                                    next_selected_value_8=selected_value_7;
                                    selected_value_8=next_selected_value_8;
                                 }
                                 if((selected_value_8==1440))
                                 {
                                    local_text_3="D1";
                                    next_selected_value_9=selected_value_8;
                                    selected_value_9=next_selected_value_9;
                                 }
                                 else
                                 {
                                    next_selected_value_9=selected_value_8;
                                    selected_value_9=next_selected_value_9;
                                 }
                                 if((selected_value_9==10080))
                                 {
                                    local_text_3="W1";
                                    next_selected_value_10=selected_value_9;
                                    selected_value_10=next_selected_value_10;
                                 }
                                 else
                                 {
                                    next_selected_value_10=selected_value_9;
                                    selected_value_10=next_selected_value_10;
                                 }
                                 computed_value_10=(uint)0xa8c0;
                                 if((selected_value_10==(int)computed_value_10))
                                 {
                                    local_text_3="MN1";
                                 }
                                 local_text_4=local_text_3;
                                 local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                                 AlertsPopup_value=AlertsPopup;
                                 if((AlertsPopup_value!=false))
                                 {
                                    Alert(local_text_2);
                                 }
                                 AlertsEmail_value=AlertsEmail;
                                 if((AlertsEmail_value!=false))
                                 {
                                    local_text_5=StringConcatenate(_Symbol, " : ");
                                    SendMail(local_text_5, local_text_2);
                                 }
                                 AlertsPush_value=AlertsPush;
                                 if((AlertsPush_value!=false))
                                 {
                                    SendNotification(local_text_2);
                                 }
                                 indicator_buffer_2[(uint)0x1]=1.0;
                              }
                              else
                              {
                                 indicator_buffer_2[(uint)0x1]=0.0;
                              }
                           }
                        }
                        else
                        {
                           global_state_41_value=global_state_41;
                           computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                           computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                           Time_value=Time[(uint)0x0];
                           computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                           computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                           if((computed_value_6==computed_value_8))
                           {
                              if((computed_value_5==computed_value_7))
                              {
                                 next_selected_value_2=false;
                                 selected_value_2=next_selected_value_2;
                              }
                              else
                              {
                                 Time_value_2=Time[(uint)0x0];
                                 global_state_41=Time_value_2;
                                 next_selected_value_2=true;
                                 selected_value_2=next_selected_value_2;
                              }
                           }
                           else
                           {
                              Time_value_2=Time[(uint)0x0];
                              global_state_41=Time_value_2;
                              next_selected_value_2=true;
                              selected_value_2=next_selected_value_2;
                           }
                           computed_value_9=(int)(uint)selected_value_2;
                           if((computed_value_9==1))
                           {
                              local_text_1=buyAlertText;
                              local_text_2=NULL;
                              _Period_value=_Period;
                              local_text_3=NULL;
                              local_text_3="NONE";
                              _Period_value_2=_Period;
                              if((_Period_value_2==1))
                              {
                                 local_text_3="M1";
                                 next_selected_value_3=_Period_value;
                                 selected_value_3=next_selected_value_3;
                              }
                              else
                              {
                                 next_selected_value_3=_Period_value;
                                 selected_value_3=next_selected_value_3;
                              }
                              if((selected_value_3==5))
                              {
                                 local_text_3="M5";
                                 next_selected_value_4=selected_value_3;
                                 selected_value_4=next_selected_value_4;
                              }
                              else
                              {
                                 next_selected_value_4=selected_value_3;
                                 selected_value_4=next_selected_value_4;
                              }
                              if((selected_value_4==15))
                              {
                                 local_text_3="M15";
                                 next_selected_value_5=selected_value_4;
                                 selected_value_5=next_selected_value_5;
                              }
                              else
                              {
                                 next_selected_value_5=selected_value_4;
                                 selected_value_5=next_selected_value_5;
                              }
                              if((selected_value_5==30))
                              {
                                 local_text_3="M30";
                                 next_selected_value_6=selected_value_5;
                                 selected_value_6=next_selected_value_6;
                              }
                              else
                              {
                                 next_selected_value_6=selected_value_5;
                                 selected_value_6=next_selected_value_6;
                              }
                              if((selected_value_6==60))
                              {
                                 local_text_3="H1";
                                 next_selected_value_7=selected_value_6;
                                 selected_value_7=next_selected_value_7;
                              }
                              else
                              {
                                 next_selected_value_7=selected_value_6;
                                 selected_value_7=next_selected_value_7;
                              }
                              if((selected_value_7==240))
                              {
                                 local_text_3="H4";
                                 next_selected_value_8=selected_value_7;
                                 selected_value_8=next_selected_value_8;
                              }
                              else
                              {
                                 next_selected_value_8=selected_value_7;
                                 selected_value_8=next_selected_value_8;
                              }
                              if((selected_value_8==1440))
                              {
                                 local_text_3="D1";
                                 next_selected_value_9=selected_value_8;
                                 selected_value_9=next_selected_value_9;
                              }
                              else
                              {
                                 next_selected_value_9=selected_value_8;
                                 selected_value_9=next_selected_value_9;
                              }
                              if((selected_value_9==10080))
                              {
                                 local_text_3="W1";
                                 next_selected_value_10=selected_value_9;
                                 selected_value_10=next_selected_value_10;
                              }
                              else
                              {
                                 next_selected_value_10=selected_value_9;
                                 selected_value_10=next_selected_value_10;
                              }
                              computed_value_10=(uint)0xa8c0;
                              if((selected_value_10==(int)computed_value_10))
                              {
                                 local_text_3="MN1";
                              }
                              local_text_4=local_text_3;
                              local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                              AlertsPopup_value=AlertsPopup;
                              if((AlertsPopup_value!=false))
                              {
                                 Alert(local_text_2);
                              }
                              AlertsEmail_value=AlertsEmail;
                              if((AlertsEmail_value!=false))
                              {
                                 local_text_5=StringConcatenate(_Symbol, " : ");
                                 SendMail(local_text_5, local_text_2);
                              }
                              AlertsPush_value=AlertsPush;
                              if((AlertsPush_value!=false))
                              {
                                 SendNotification(local_text_2);
                              }
                              indicator_buffer_2[(uint)0x1]=1.0;
                           }
                           else
                           {
                              indicator_buffer_2[(uint)0x1]=0.0;
                           }
                        }
                     }
                     else
                     {
                        filterByWeekHighsLows_value_2=filterByWeekHighsLows;
                        if((filterByWeekHighsLows_value_2!=false))
                        {
                        }
                        else
                        {
                           global_state_41_value=global_state_41;
                           computed_value_5=(uint)((uint)((ulong)global_state_41_value>>0));
                           computed_value_6=(uint)((uint)((ulong)global_state_41_value>>32));
                           Time_value=Time[(uint)0x0];
                           computed_value_7=(uint)((uint)((ulong)Time_value>>0));
                           computed_value_8=(uint)((uint)((ulong)Time_value>>32));
                           if((computed_value_6==computed_value_8))
                           {
                              if((computed_value_5==computed_value_7))
                              {
                                 next_selected_value_2=false;
                                 selected_value_2=next_selected_value_2;
                              }
                              else
                              {
                                 Time_value_2=Time[(uint)0x0];
                                 global_state_41=Time_value_2;
                                 next_selected_value_2=true;
                                 selected_value_2=next_selected_value_2;
                              }
                           }
                           else
                           {
                              Time_value_2=Time[(uint)0x0];
                              global_state_41=Time_value_2;
                              next_selected_value_2=true;
                              selected_value_2=next_selected_value_2;
                           }
                           computed_value_9=(int)(uint)selected_value_2;
                           if((computed_value_9==1))
                           {
                              local_text_1=buyAlertText;
                              local_text_2=NULL;
                              _Period_value=_Period;
                              local_text_3=NULL;
                              local_text_3="NONE";
                              _Period_value_2=_Period;
                              if((_Period_value_2==1))
                              {
                                 local_text_3="M1";
                                 next_selected_value_3=_Period_value;
                                 selected_value_3=next_selected_value_3;
                              }
                              else
                              {
                                 next_selected_value_3=_Period_value;
                                 selected_value_3=next_selected_value_3;
                              }
                              if((selected_value_3==5))
                              {
                                 local_text_3="M5";
                                 next_selected_value_4=selected_value_3;
                                 selected_value_4=next_selected_value_4;
                              }
                              else
                              {
                                 next_selected_value_4=selected_value_3;
                                 selected_value_4=next_selected_value_4;
                              }
                              if((selected_value_4==15))
                              {
                                 local_text_3="M15";
                                 next_selected_value_5=selected_value_4;
                                 selected_value_5=next_selected_value_5;
                              }
                              else
                              {
                                 next_selected_value_5=selected_value_4;
                                 selected_value_5=next_selected_value_5;
                              }
                              if((selected_value_5==30))
                              {
                                 local_text_3="M30";
                                 next_selected_value_6=selected_value_5;
                                 selected_value_6=next_selected_value_6;
                              }
                              else
                              {
                                 next_selected_value_6=selected_value_5;
                                 selected_value_6=next_selected_value_6;
                              }
                              if((selected_value_6==60))
                              {
                                 local_text_3="H1";
                                 next_selected_value_7=selected_value_6;
                                 selected_value_7=next_selected_value_7;
                              }
                              else
                              {
                                 next_selected_value_7=selected_value_6;
                                 selected_value_7=next_selected_value_7;
                              }
                              if((selected_value_7==240))
                              {
                                 local_text_3="H4";
                                 next_selected_value_8=selected_value_7;
                                 selected_value_8=next_selected_value_8;
                              }
                              else
                              {
                                 next_selected_value_8=selected_value_7;
                                 selected_value_8=next_selected_value_8;
                              }
                              if((selected_value_8==1440))
                              {
                                 local_text_3="D1";
                                 next_selected_value_9=selected_value_8;
                                 selected_value_9=next_selected_value_9;
                              }
                              else
                              {
                                 next_selected_value_9=selected_value_8;
                                 selected_value_9=next_selected_value_9;
                              }
                              if((selected_value_9==10080))
                              {
                                 local_text_3="W1";
                                 next_selected_value_10=selected_value_9;
                                 selected_value_10=next_selected_value_10;
                              }
                              else
                              {
                                 next_selected_value_10=selected_value_9;
                                 selected_value_10=next_selected_value_10;
                              }
                              computed_value_10=(uint)0xa8c0;
                              if((selected_value_10==(int)computed_value_10))
                              {
                                 local_text_3="MN1";
                              }
                              local_text_4=local_text_3;
                              local_text_2=StringConcatenate(_Symbol, " - ", local_text_4, " - : ", local_text_1);
                              AlertsPopup_value=AlertsPopup;
                              if((AlertsPopup_value!=false))
                              {
                                 Alert(local_text_2);
                              }
                              AlertsEmail_value=AlertsEmail;
                              if((AlertsEmail_value!=false))
                              {
                                 local_text_5=StringConcatenate(_Symbol, " : ");
                                 SendMail(local_text_5, local_text_2);
                              }
                              AlertsPush_value=AlertsPush;
                              if((AlertsPush_value!=false))
                              {
                                 SendNotification(local_text_2);
                              }
                              indicator_buffer_2[(uint)0x1]=1.0;
                           }
                           else
                           {
                              indicator_buffer_2[(uint)0x1]=0.0;
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }
   global_state_17_value=global_state_17;
   if((global_state_17_value<1))
   {
   }
   else
   {
      global_state_17_value_2=global_state_17;
      if((global_state_17_value_2!=1))
      {
      }
      else
      {
         if((value_3!=(uint)0x1))
         {
         }
         else
         {
            api_result_2=iTime(_Symbol, 0, 1);
            if((api_result_2!=(long)computed_value))
            {
            }
            else
            {
               filterByDailyHighsLows_value_3=filterByDailyHighsLows;
               if((filterByDailyHighsLows_value_3==true))
               {
                  received_value_5=iClose(_Symbol, 0, 1);
                  property_value_5=received_value_5;
                  received_value_6=iHigh(_Symbol, 1440, 1);
                  property_value_6=received_value_6;
                  if(!(property_value_6<property_value_5))
                  {
                     filterByDailyHighsLows_value_4=filterByDailyHighsLows;
                     if((filterByDailyHighsLows_value_4!=false))
                     {
                     }
                     else
                     {
                        filterByWeekHighsLows_value_3=filterByWeekHighsLows;
                        computed_value_11=(int)(uint)filterByWeekHighsLows_value_3;
                        if((computed_value_11==1))
                        {
                           received_value_7=iClose(_Symbol, 0, 1);
                           property_value_7=received_value_7;
                           received_value_8=iHigh(_Symbol, 1440, 1);
                           property_value_8=received_value_8;
                           computed_value_12=(property_value_7!=property_value_7);
                           computed_value_13=(property_value_8!=property_value_8);
                           if((!computed_value_12&&!computed_value_13))
                           {
                              next_selected_value_11=(property_value_8<property_value_7);
                              selected_value_11=next_selected_value_11;
                           }
                           else
                           {
                              next_selected_value_11=false;
                              selected_value_11=next_selected_value_11;
                           }
                           if((selected_value_11==false))
                           {
                              filterByWeekHighsLows_value_4=filterByWeekHighsLows;
                              if((filterByWeekHighsLows_value_4!=false))
                              {
                              }
                              else
                              {
                                 global_state_42_value=global_state_42;
                                 computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                                 computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                                 Time_value_3=Time[(uint)0x0];
                                 computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                                 computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                                 if((computed_value_15==computed_value_17))
                                 {
                                    if((computed_value_14==computed_value_16))
                                    {
                                       next_selected_value_12=false;
                                       selected_value_12=next_selected_value_12;
                                    }
                                    else
                                    {
                                       Time_value_4=Time[(uint)0x0];
                                       global_state_42=Time_value_4;
                                       next_selected_value_12=true;
                                       selected_value_12=next_selected_value_12;
                                    }
                                 }
                                 else
                                 {
                                    Time_value_4=Time[(uint)0x0];
                                    global_state_42=Time_value_4;
                                    next_selected_value_12=true;
                                    selected_value_12=next_selected_value_12;
                                 }
                                 computed_value_18=(int)(uint)selected_value_12;
                                 if((computed_value_18==1))
                                 {
                                    local_text_6=sellAlertText;
                                    local_text_7=NULL;
                                    _Period_value_3=_Period;
                                    local_text_8=NULL;
                                    local_text_8="NONE";
                                    _Period_value_4=_Period;
                                    if((_Period_value_4==1))
                                    {
                                       local_text_8="M1";
                                       next_selected_value_13=_Period_value_3;
                                       selected_value_13=next_selected_value_13;
                                    }
                                    else
                                    {
                                       next_selected_value_13=_Period_value_3;
                                       selected_value_13=next_selected_value_13;
                                    }
                                    if((selected_value_13==5))
                                    {
                                       local_text_8="M5";
                                       next_selected_value_14=selected_value_13;
                                       selected_value_14=next_selected_value_14;
                                    }
                                    else
                                    {
                                       next_selected_value_14=selected_value_13;
                                       selected_value_14=next_selected_value_14;
                                    }
                                    if((selected_value_14==15))
                                    {
                                       local_text_8="M15";
                                       next_selected_value_15=selected_value_14;
                                       selected_value_15=next_selected_value_15;
                                    }
                                    else
                                    {
                                       next_selected_value_15=selected_value_14;
                                       selected_value_15=next_selected_value_15;
                                    }
                                    if((selected_value_15==30))
                                    {
                                       local_text_8="M30";
                                       next_selected_value_16=selected_value_15;
                                       selected_value_16=next_selected_value_16;
                                    }
                                    else
                                    {
                                       next_selected_value_16=selected_value_15;
                                       selected_value_16=next_selected_value_16;
                                    }
                                    if((selected_value_16==60))
                                    {
                                       local_text_8="H1";
                                       next_selected_value_17=selected_value_16;
                                       selected_value_17=next_selected_value_17;
                                    }
                                    else
                                    {
                                       next_selected_value_17=selected_value_16;
                                       selected_value_17=next_selected_value_17;
                                    }
                                    if((selected_value_17==240))
                                    {
                                       local_text_8="H4";
                                       next_selected_value_18=selected_value_17;
                                       selected_value_18=next_selected_value_18;
                                    }
                                    else
                                    {
                                       next_selected_value_18=selected_value_17;
                                       selected_value_18=next_selected_value_18;
                                    }
                                    if((selected_value_18==1440))
                                    {
                                       local_text_8="D1";
                                       next_selected_value_19=selected_value_18;
                                       selected_value_19=next_selected_value_19;
                                    }
                                    else
                                    {
                                       next_selected_value_19=selected_value_18;
                                       selected_value_19=next_selected_value_19;
                                    }
                                    if((selected_value_19==10080))
                                    {
                                       local_text_8="W1";
                                       next_selected_value_20=selected_value_19;
                                       selected_value_20=next_selected_value_20;
                                    }
                                    else
                                    {
                                       next_selected_value_20=selected_value_19;
                                       selected_value_20=next_selected_value_20;
                                    }
                                    computed_value_19=(uint)0xa8c0;
                                    if((selected_value_20==(int)computed_value_19))
                                    {
                                       local_text_8="MN1";
                                    }
                                    local_text_9=local_text_8;
                                    local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                                    AlertsPopup_value_2=AlertsPopup;
                                    if((AlertsPopup_value_2!=false))
                                    {
                                       Alert(local_text_7);
                                    }
                                    AlertsEmail_value_2=AlertsEmail;
                                    if((AlertsEmail_value_2!=false))
                                    {
                                       local_text_10=StringConcatenate(_Symbol, " : ");
                                       SendMail(local_text_10, local_text_7);
                                    }
                                    AlertsPush_value_2=AlertsPush;
                                    if((AlertsPush_value_2!=false))
                                    {
                                       SendNotification(local_text_7);
                                    }
                                    indicator_buffer_3[(uint)0x1]=1.0;
                                 }
                                 else
                                 {
                                    indicator_buffer_3[(uint)0x1]=0.0;
                                 }
                              }
                           }
                           else
                           {
                              global_state_42_value=global_state_42;
                              computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                              computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                              Time_value_3=Time[(uint)0x0];
                              computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                              computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                              if((computed_value_15==computed_value_17))
                              {
                                 if((computed_value_14==computed_value_16))
                                 {
                                    next_selected_value_12=false;
                                    selected_value_12=next_selected_value_12;
                                 }
                                 else
                                 {
                                    Time_value_4=Time[(uint)0x0];
                                    global_state_42=Time_value_4;
                                    next_selected_value_12=true;
                                    selected_value_12=next_selected_value_12;
                                 }
                              }
                              else
                              {
                                 Time_value_4=Time[(uint)0x0];
                                 global_state_42=Time_value_4;
                                 next_selected_value_12=true;
                                 selected_value_12=next_selected_value_12;
                              }
                              computed_value_18=(int)(uint)selected_value_12;
                              if((computed_value_18==1))
                              {
                                 local_text_6=sellAlertText;
                                 local_text_7=NULL;
                                 _Period_value_3=_Period;
                                 local_text_8=NULL;
                                 local_text_8="NONE";
                                 _Period_value_4=_Period;
                                 if((_Period_value_4==1))
                                 {
                                    local_text_8="M1";
                                    next_selected_value_13=_Period_value_3;
                                    selected_value_13=next_selected_value_13;
                                 }
                                 else
                                 {
                                    next_selected_value_13=_Period_value_3;
                                    selected_value_13=next_selected_value_13;
                                 }
                                 if((selected_value_13==5))
                                 {
                                    local_text_8="M5";
                                    next_selected_value_14=selected_value_13;
                                    selected_value_14=next_selected_value_14;
                                 }
                                 else
                                 {
                                    next_selected_value_14=selected_value_13;
                                    selected_value_14=next_selected_value_14;
                                 }
                                 if((selected_value_14==15))
                                 {
                                    local_text_8="M15";
                                    next_selected_value_15=selected_value_14;
                                    selected_value_15=next_selected_value_15;
                                 }
                                 else
                                 {
                                    next_selected_value_15=selected_value_14;
                                    selected_value_15=next_selected_value_15;
                                 }
                                 if((selected_value_15==30))
                                 {
                                    local_text_8="M30";
                                    next_selected_value_16=selected_value_15;
                                    selected_value_16=next_selected_value_16;
                                 }
                                 else
                                 {
                                    next_selected_value_16=selected_value_15;
                                    selected_value_16=next_selected_value_16;
                                 }
                                 if((selected_value_16==60))
                                 {
                                    local_text_8="H1";
                                    next_selected_value_17=selected_value_16;
                                    selected_value_17=next_selected_value_17;
                                 }
                                 else
                                 {
                                    next_selected_value_17=selected_value_16;
                                    selected_value_17=next_selected_value_17;
                                 }
                                 if((selected_value_17==240))
                                 {
                                    local_text_8="H4";
                                    next_selected_value_18=selected_value_17;
                                    selected_value_18=next_selected_value_18;
                                 }
                                 else
                                 {
                                    next_selected_value_18=selected_value_17;
                                    selected_value_18=next_selected_value_18;
                                 }
                                 if((selected_value_18==1440))
                                 {
                                    local_text_8="D1";
                                    next_selected_value_19=selected_value_18;
                                    selected_value_19=next_selected_value_19;
                                 }
                                 else
                                 {
                                    next_selected_value_19=selected_value_18;
                                    selected_value_19=next_selected_value_19;
                                 }
                                 if((selected_value_19==10080))
                                 {
                                    local_text_8="W1";
                                    next_selected_value_20=selected_value_19;
                                    selected_value_20=next_selected_value_20;
                                 }
                                 else
                                 {
                                    next_selected_value_20=selected_value_19;
                                    selected_value_20=next_selected_value_20;
                                 }
                                 computed_value_19=(uint)0xa8c0;
                                 if((selected_value_20==(int)computed_value_19))
                                 {
                                    local_text_8="MN1";
                                 }
                                 local_text_9=local_text_8;
                                 local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                                 AlertsPopup_value_2=AlertsPopup;
                                 if((AlertsPopup_value_2!=false))
                                 {
                                    Alert(local_text_7);
                                 }
                                 AlertsEmail_value_2=AlertsEmail;
                                 if((AlertsEmail_value_2!=false))
                                 {
                                    local_text_10=StringConcatenate(_Symbol, " : ");
                                    SendMail(local_text_10, local_text_7);
                                 }
                                 AlertsPush_value_2=AlertsPush;
                                 if((AlertsPush_value_2!=false))
                                 {
                                    SendNotification(local_text_7);
                                 }
                                 indicator_buffer_3[(uint)0x1]=1.0;
                              }
                              else
                              {
                                 indicator_buffer_3[(uint)0x1]=0.0;
                              }
                           }
                        }
                        else
                        {
                           filterByWeekHighsLows_value_4=filterByWeekHighsLows;
                           if((filterByWeekHighsLows_value_4!=false))
                           {
                           }
                           else
                           {
                              global_state_42_value=global_state_42;
                              computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                              computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                              Time_value_3=Time[(uint)0x0];
                              computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                              computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                              if((computed_value_15==computed_value_17))
                              {
                                 if((computed_value_14==computed_value_16))
                                 {
                                    next_selected_value_12=false;
                                    selected_value_12=next_selected_value_12;
                                 }
                                 else
                                 {
                                    Time_value_4=Time[(uint)0x0];
                                    global_state_42=Time_value_4;
                                    next_selected_value_12=true;
                                    selected_value_12=next_selected_value_12;
                                 }
                              }
                              else
                              {
                                 Time_value_4=Time[(uint)0x0];
                                 global_state_42=Time_value_4;
                                 next_selected_value_12=true;
                                 selected_value_12=next_selected_value_12;
                              }
                              computed_value_18=(int)(uint)selected_value_12;
                              if((computed_value_18==1))
                              {
                                 local_text_6=sellAlertText;
                                 local_text_7=NULL;
                                 _Period_value_3=_Period;
                                 local_text_8=NULL;
                                 local_text_8="NONE";
                                 _Period_value_4=_Period;
                                 if((_Period_value_4==1))
                                 {
                                    local_text_8="M1";
                                    next_selected_value_13=_Period_value_3;
                                    selected_value_13=next_selected_value_13;
                                 }
                                 else
                                 {
                                    next_selected_value_13=_Period_value_3;
                                    selected_value_13=next_selected_value_13;
                                 }
                                 if((selected_value_13==5))
                                 {
                                    local_text_8="M5";
                                    next_selected_value_14=selected_value_13;
                                    selected_value_14=next_selected_value_14;
                                 }
                                 else
                                 {
                                    next_selected_value_14=selected_value_13;
                                    selected_value_14=next_selected_value_14;
                                 }
                                 if((selected_value_14==15))
                                 {
                                    local_text_8="M15";
                                    next_selected_value_15=selected_value_14;
                                    selected_value_15=next_selected_value_15;
                                 }
                                 else
                                 {
                                    next_selected_value_15=selected_value_14;
                                    selected_value_15=next_selected_value_15;
                                 }
                                 if((selected_value_15==30))
                                 {
                                    local_text_8="M30";
                                    next_selected_value_16=selected_value_15;
                                    selected_value_16=next_selected_value_16;
                                 }
                                 else
                                 {
                                    next_selected_value_16=selected_value_15;
                                    selected_value_16=next_selected_value_16;
                                 }
                                 if((selected_value_16==60))
                                 {
                                    local_text_8="H1";
                                    next_selected_value_17=selected_value_16;
                                    selected_value_17=next_selected_value_17;
                                 }
                                 else
                                 {
                                    next_selected_value_17=selected_value_16;
                                    selected_value_17=next_selected_value_17;
                                 }
                                 if((selected_value_17==240))
                                 {
                                    local_text_8="H4";
                                    next_selected_value_18=selected_value_17;
                                    selected_value_18=next_selected_value_18;
                                 }
                                 else
                                 {
                                    next_selected_value_18=selected_value_17;
                                    selected_value_18=next_selected_value_18;
                                 }
                                 if((selected_value_18==1440))
                                 {
                                    local_text_8="D1";
                                    next_selected_value_19=selected_value_18;
                                    selected_value_19=next_selected_value_19;
                                 }
                                 else
                                 {
                                    next_selected_value_19=selected_value_18;
                                    selected_value_19=next_selected_value_19;
                                 }
                                 if((selected_value_19==10080))
                                 {
                                    local_text_8="W1";
                                    next_selected_value_20=selected_value_19;
                                    selected_value_20=next_selected_value_20;
                                 }
                                 else
                                 {
                                    next_selected_value_20=selected_value_19;
                                    selected_value_20=next_selected_value_20;
                                 }
                                 computed_value_19=(uint)0xa8c0;
                                 if((selected_value_20==(int)computed_value_19))
                                 {
                                    local_text_8="MN1";
                                 }
                                 local_text_9=local_text_8;
                                 local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                                 AlertsPopup_value_2=AlertsPopup;
                                 if((AlertsPopup_value_2!=false))
                                 {
                                    Alert(local_text_7);
                                 }
                                 AlertsEmail_value_2=AlertsEmail;
                                 if((AlertsEmail_value_2!=false))
                                 {
                                    local_text_10=StringConcatenate(_Symbol, " : ");
                                    SendMail(local_text_10, local_text_7);
                                 }
                                 AlertsPush_value_2=AlertsPush;
                                 if((AlertsPush_value_2!=false))
                                 {
                                    SendNotification(local_text_7);
                                 }
                                 indicator_buffer_3[(uint)0x1]=1.0;
                              }
                              else
                              {
                                 indicator_buffer_3[(uint)0x1]=0.0;
                              }
                           }
                        }
                     }
                  }
                  else
                  {
                     filterByWeekHighsLows_value_3=filterByWeekHighsLows;
                     computed_value_11=(int)(uint)filterByWeekHighsLows_value_3;
                     if((computed_value_11==1))
                     {
                        received_value_7=iClose(_Symbol, 0, 1);
                        property_value_7=received_value_7;
                        received_value_8=iHigh(_Symbol, 1440, 1);
                        property_value_8=received_value_8;
                        computed_value_12=(property_value_7!=property_value_7);
                        computed_value_13=(property_value_8!=property_value_8);
                        if((!computed_value_12&&!computed_value_13))
                        {
                           next_selected_value_11=(property_value_8<property_value_7);
                           selected_value_11=next_selected_value_11;
                        }
                        else
                        {
                           next_selected_value_11=false;
                           selected_value_11=next_selected_value_11;
                        }
                        if((selected_value_11==false))
                        {
                           filterByWeekHighsLows_value_4=filterByWeekHighsLows;
                           if((filterByWeekHighsLows_value_4!=false))
                           {
                           }
                           else
                           {
                              global_state_42_value=global_state_42;
                              computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                              computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                              Time_value_3=Time[(uint)0x0];
                              computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                              computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                              if((computed_value_15==computed_value_17))
                              {
                                 if((computed_value_14==computed_value_16))
                                 {
                                    next_selected_value_12=false;
                                    selected_value_12=next_selected_value_12;
                                 }
                                 else
                                 {
                                    Time_value_4=Time[(uint)0x0];
                                    global_state_42=Time_value_4;
                                    next_selected_value_12=true;
                                    selected_value_12=next_selected_value_12;
                                 }
                              }
                              else
                              {
                                 Time_value_4=Time[(uint)0x0];
                                 global_state_42=Time_value_4;
                                 next_selected_value_12=true;
                                 selected_value_12=next_selected_value_12;
                              }
                              computed_value_18=(int)(uint)selected_value_12;
                              if((computed_value_18==1))
                              {
                                 local_text_6=sellAlertText;
                                 local_text_7=NULL;
                                 _Period_value_3=_Period;
                                 local_text_8=NULL;
                                 local_text_8="NONE";
                                 _Period_value_4=_Period;
                                 if((_Period_value_4==1))
                                 {
                                    local_text_8="M1";
                                    next_selected_value_13=_Period_value_3;
                                    selected_value_13=next_selected_value_13;
                                 }
                                 else
                                 {
                                    next_selected_value_13=_Period_value_3;
                                    selected_value_13=next_selected_value_13;
                                 }
                                 if((selected_value_13==5))
                                 {
                                    local_text_8="M5";
                                    next_selected_value_14=selected_value_13;
                                    selected_value_14=next_selected_value_14;
                                 }
                                 else
                                 {
                                    next_selected_value_14=selected_value_13;
                                    selected_value_14=next_selected_value_14;
                                 }
                                 if((selected_value_14==15))
                                 {
                                    local_text_8="M15";
                                    next_selected_value_15=selected_value_14;
                                    selected_value_15=next_selected_value_15;
                                 }
                                 else
                                 {
                                    next_selected_value_15=selected_value_14;
                                    selected_value_15=next_selected_value_15;
                                 }
                                 if((selected_value_15==30))
                                 {
                                    local_text_8="M30";
                                    next_selected_value_16=selected_value_15;
                                    selected_value_16=next_selected_value_16;
                                 }
                                 else
                                 {
                                    next_selected_value_16=selected_value_15;
                                    selected_value_16=next_selected_value_16;
                                 }
                                 if((selected_value_16==60))
                                 {
                                    local_text_8="H1";
                                    next_selected_value_17=selected_value_16;
                                    selected_value_17=next_selected_value_17;
                                 }
                                 else
                                 {
                                    next_selected_value_17=selected_value_16;
                                    selected_value_17=next_selected_value_17;
                                 }
                                 if((selected_value_17==240))
                                 {
                                    local_text_8="H4";
                                    next_selected_value_18=selected_value_17;
                                    selected_value_18=next_selected_value_18;
                                 }
                                 else
                                 {
                                    next_selected_value_18=selected_value_17;
                                    selected_value_18=next_selected_value_18;
                                 }
                                 if((selected_value_18==1440))
                                 {
                                    local_text_8="D1";
                                    next_selected_value_19=selected_value_18;
                                    selected_value_19=next_selected_value_19;
                                 }
                                 else
                                 {
                                    next_selected_value_19=selected_value_18;
                                    selected_value_19=next_selected_value_19;
                                 }
                                 if((selected_value_19==10080))
                                 {
                                    local_text_8="W1";
                                    next_selected_value_20=selected_value_19;
                                    selected_value_20=next_selected_value_20;
                                 }
                                 else
                                 {
                                    next_selected_value_20=selected_value_19;
                                    selected_value_20=next_selected_value_20;
                                 }
                                 computed_value_19=(uint)0xa8c0;
                                 if((selected_value_20==(int)computed_value_19))
                                 {
                                    local_text_8="MN1";
                                 }
                                 local_text_9=local_text_8;
                                 local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                                 AlertsPopup_value_2=AlertsPopup;
                                 if((AlertsPopup_value_2!=false))
                                 {
                                    Alert(local_text_7);
                                 }
                                 AlertsEmail_value_2=AlertsEmail;
                                 if((AlertsEmail_value_2!=false))
                                 {
                                    local_text_10=StringConcatenate(_Symbol, " : ");
                                    SendMail(local_text_10, local_text_7);
                                 }
                                 AlertsPush_value_2=AlertsPush;
                                 if((AlertsPush_value_2!=false))
                                 {
                                    SendNotification(local_text_7);
                                 }
                                 indicator_buffer_3[(uint)0x1]=1.0;
                              }
                              else
                              {
                                 indicator_buffer_3[(uint)0x1]=0.0;
                              }
                           }
                        }
                        else
                        {
                           global_state_42_value=global_state_42;
                           computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                           computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                           Time_value_3=Time[(uint)0x0];
                           computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                           computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                           if((computed_value_15==computed_value_17))
                           {
                              if((computed_value_14==computed_value_16))
                              {
                                 next_selected_value_12=false;
                                 selected_value_12=next_selected_value_12;
                              }
                              else
                              {
                                 Time_value_4=Time[(uint)0x0];
                                 global_state_42=Time_value_4;
                                 next_selected_value_12=true;
                                 selected_value_12=next_selected_value_12;
                              }
                           }
                           else
                           {
                              Time_value_4=Time[(uint)0x0];
                              global_state_42=Time_value_4;
                              next_selected_value_12=true;
                              selected_value_12=next_selected_value_12;
                           }
                           computed_value_18=(int)(uint)selected_value_12;
                           if((computed_value_18==1))
                           {
                              local_text_6=sellAlertText;
                              local_text_7=NULL;
                              _Period_value_3=_Period;
                              local_text_8=NULL;
                              local_text_8="NONE";
                              _Period_value_4=_Period;
                              if((_Period_value_4==1))
                              {
                                 local_text_8="M1";
                                 next_selected_value_13=_Period_value_3;
                                 selected_value_13=next_selected_value_13;
                              }
                              else
                              {
                                 next_selected_value_13=_Period_value_3;
                                 selected_value_13=next_selected_value_13;
                              }
                              if((selected_value_13==5))
                              {
                                 local_text_8="M5";
                                 next_selected_value_14=selected_value_13;
                                 selected_value_14=next_selected_value_14;
                              }
                              else
                              {
                                 next_selected_value_14=selected_value_13;
                                 selected_value_14=next_selected_value_14;
                              }
                              if((selected_value_14==15))
                              {
                                 local_text_8="M15";
                                 next_selected_value_15=selected_value_14;
                                 selected_value_15=next_selected_value_15;
                              }
                              else
                              {
                                 next_selected_value_15=selected_value_14;
                                 selected_value_15=next_selected_value_15;
                              }
                              if((selected_value_15==30))
                              {
                                 local_text_8="M30";
                                 next_selected_value_16=selected_value_15;
                                 selected_value_16=next_selected_value_16;
                              }
                              else
                              {
                                 next_selected_value_16=selected_value_15;
                                 selected_value_16=next_selected_value_16;
                              }
                              if((selected_value_16==60))
                              {
                                 local_text_8="H1";
                                 next_selected_value_17=selected_value_16;
                                 selected_value_17=next_selected_value_17;
                              }
                              else
                              {
                                 next_selected_value_17=selected_value_16;
                                 selected_value_17=next_selected_value_17;
                              }
                              if((selected_value_17==240))
                              {
                                 local_text_8="H4";
                                 next_selected_value_18=selected_value_17;
                                 selected_value_18=next_selected_value_18;
                              }
                              else
                              {
                                 next_selected_value_18=selected_value_17;
                                 selected_value_18=next_selected_value_18;
                              }
                              if((selected_value_18==1440))
                              {
                                 local_text_8="D1";
                                 next_selected_value_19=selected_value_18;
                                 selected_value_19=next_selected_value_19;
                              }
                              else
                              {
                                 next_selected_value_19=selected_value_18;
                                 selected_value_19=next_selected_value_19;
                              }
                              if((selected_value_19==10080))
                              {
                                 local_text_8="W1";
                                 next_selected_value_20=selected_value_19;
                                 selected_value_20=next_selected_value_20;
                              }
                              else
                              {
                                 next_selected_value_20=selected_value_19;
                                 selected_value_20=next_selected_value_20;
                              }
                              computed_value_19=(uint)0xa8c0;
                              if((selected_value_20==(int)computed_value_19))
                              {
                                 local_text_8="MN1";
                              }
                              local_text_9=local_text_8;
                              local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                              AlertsPopup_value_2=AlertsPopup;
                              if((AlertsPopup_value_2!=false))
                              {
                                 Alert(local_text_7);
                              }
                              AlertsEmail_value_2=AlertsEmail;
                              if((AlertsEmail_value_2!=false))
                              {
                                 local_text_10=StringConcatenate(_Symbol, " : ");
                                 SendMail(local_text_10, local_text_7);
                              }
                              AlertsPush_value_2=AlertsPush;
                              if((AlertsPush_value_2!=false))
                              {
                                 SendNotification(local_text_7);
                              }
                              indicator_buffer_3[(uint)0x1]=1.0;
                           }
                           else
                           {
                              indicator_buffer_3[(uint)0x1]=0.0;
                           }
                        }
                     }
                     else
                     {
                        filterByWeekHighsLows_value_4=filterByWeekHighsLows;
                        if((filterByWeekHighsLows_value_4!=false))
                        {
                        }
                        else
                        {
                           global_state_42_value=global_state_42;
                           computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                           computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                           Time_value_3=Time[(uint)0x0];
                           computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                           computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                           if((computed_value_15==computed_value_17))
                           {
                              if((computed_value_14==computed_value_16))
                              {
                                 next_selected_value_12=false;
                                 selected_value_12=next_selected_value_12;
                              }
                              else
                              {
                                 Time_value_4=Time[(uint)0x0];
                                 global_state_42=Time_value_4;
                                 next_selected_value_12=true;
                                 selected_value_12=next_selected_value_12;
                              }
                           }
                           else
                           {
                              Time_value_4=Time[(uint)0x0];
                              global_state_42=Time_value_4;
                              next_selected_value_12=true;
                              selected_value_12=next_selected_value_12;
                           }
                           computed_value_18=(int)(uint)selected_value_12;
                           if((computed_value_18==1))
                           {
                              local_text_6=sellAlertText;
                              local_text_7=NULL;
                              _Period_value_3=_Period;
                              local_text_8=NULL;
                              local_text_8="NONE";
                              _Period_value_4=_Period;
                              if((_Period_value_4==1))
                              {
                                 local_text_8="M1";
                                 next_selected_value_13=_Period_value_3;
                                 selected_value_13=next_selected_value_13;
                              }
                              else
                              {
                                 next_selected_value_13=_Period_value_3;
                                 selected_value_13=next_selected_value_13;
                              }
                              if((selected_value_13==5))
                              {
                                 local_text_8="M5";
                                 next_selected_value_14=selected_value_13;
                                 selected_value_14=next_selected_value_14;
                              }
                              else
                              {
                                 next_selected_value_14=selected_value_13;
                                 selected_value_14=next_selected_value_14;
                              }
                              if((selected_value_14==15))
                              {
                                 local_text_8="M15";
                                 next_selected_value_15=selected_value_14;
                                 selected_value_15=next_selected_value_15;
                              }
                              else
                              {
                                 next_selected_value_15=selected_value_14;
                                 selected_value_15=next_selected_value_15;
                              }
                              if((selected_value_15==30))
                              {
                                 local_text_8="M30";
                                 next_selected_value_16=selected_value_15;
                                 selected_value_16=next_selected_value_16;
                              }
                              else
                              {
                                 next_selected_value_16=selected_value_15;
                                 selected_value_16=next_selected_value_16;
                              }
                              if((selected_value_16==60))
                              {
                                 local_text_8="H1";
                                 next_selected_value_17=selected_value_16;
                                 selected_value_17=next_selected_value_17;
                              }
                              else
                              {
                                 next_selected_value_17=selected_value_16;
                                 selected_value_17=next_selected_value_17;
                              }
                              if((selected_value_17==240))
                              {
                                 local_text_8="H4";
                                 next_selected_value_18=selected_value_17;
                                 selected_value_18=next_selected_value_18;
                              }
                              else
                              {
                                 next_selected_value_18=selected_value_17;
                                 selected_value_18=next_selected_value_18;
                              }
                              if((selected_value_18==1440))
                              {
                                 local_text_8="D1";
                                 next_selected_value_19=selected_value_18;
                                 selected_value_19=next_selected_value_19;
                              }
                              else
                              {
                                 next_selected_value_19=selected_value_18;
                                 selected_value_19=next_selected_value_19;
                              }
                              if((selected_value_19==10080))
                              {
                                 local_text_8="W1";
                                 next_selected_value_20=selected_value_19;
                                 selected_value_20=next_selected_value_20;
                              }
                              else
                              {
                                 next_selected_value_20=selected_value_19;
                                 selected_value_20=next_selected_value_20;
                              }
                              computed_value_19=(uint)0xa8c0;
                              if((selected_value_20==(int)computed_value_19))
                              {
                                 local_text_8="MN1";
                              }
                              local_text_9=local_text_8;
                              local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                              AlertsPopup_value_2=AlertsPopup;
                              if((AlertsPopup_value_2!=false))
                              {
                                 Alert(local_text_7);
                              }
                              AlertsEmail_value_2=AlertsEmail;
                              if((AlertsEmail_value_2!=false))
                              {
                                 local_text_10=StringConcatenate(_Symbol, " : ");
                                 SendMail(local_text_10, local_text_7);
                              }
                              AlertsPush_value_2=AlertsPush;
                              if((AlertsPush_value_2!=false))
                              {
                                 SendNotification(local_text_7);
                              }
                              indicator_buffer_3[(uint)0x1]=1.0;
                           }
                           else
                           {
                              indicator_buffer_3[(uint)0x1]=0.0;
                           }
                        }
                     }
                  }
               }
               else
               {
                  filterByDailyHighsLows_value_4=filterByDailyHighsLows;
                  if((filterByDailyHighsLows_value_4!=false))
                  {
                  }
                  else
                  {
                     filterByWeekHighsLows_value_3=filterByWeekHighsLows;
                     computed_value_11=(int)(uint)filterByWeekHighsLows_value_3;
                     if((computed_value_11==1))
                     {
                        received_value_7=iClose(_Symbol, 0, 1);
                        property_value_7=received_value_7;
                        received_value_8=iHigh(_Symbol, 1440, 1);
                        property_value_8=received_value_8;
                        computed_value_12=(property_value_7!=property_value_7);
                        computed_value_13=(property_value_8!=property_value_8);
                        if((!computed_value_12&&!computed_value_13))
                        {
                           next_selected_value_11=(property_value_8<property_value_7);
                           selected_value_11=next_selected_value_11;
                        }
                        else
                        {
                           next_selected_value_11=false;
                           selected_value_11=next_selected_value_11;
                        }
                        if((selected_value_11==false))
                        {
                           filterByWeekHighsLows_value_4=filterByWeekHighsLows;
                           if((filterByWeekHighsLows_value_4!=false))
                           {
                           }
                           else
                           {
                              global_state_42_value=global_state_42;
                              computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                              computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                              Time_value_3=Time[(uint)0x0];
                              computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                              computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                              if((computed_value_15==computed_value_17))
                              {
                                 if((computed_value_14==computed_value_16))
                                 {
                                    next_selected_value_12=false;
                                    selected_value_12=next_selected_value_12;
                                 }
                                 else
                                 {
                                    Time_value_4=Time[(uint)0x0];
                                    global_state_42=Time_value_4;
                                    next_selected_value_12=true;
                                    selected_value_12=next_selected_value_12;
                                 }
                              }
                              else
                              {
                                 Time_value_4=Time[(uint)0x0];
                                 global_state_42=Time_value_4;
                                 next_selected_value_12=true;
                                 selected_value_12=next_selected_value_12;
                              }
                              computed_value_18=(int)(uint)selected_value_12;
                              if((computed_value_18==1))
                              {
                                 local_text_6=sellAlertText;
                                 local_text_7=NULL;
                                 _Period_value_3=_Period;
                                 local_text_8=NULL;
                                 local_text_8="NONE";
                                 _Period_value_4=_Period;
                                 if((_Period_value_4==1))
                                 {
                                    local_text_8="M1";
                                    next_selected_value_13=_Period_value_3;
                                    selected_value_13=next_selected_value_13;
                                 }
                                 else
                                 {
                                    next_selected_value_13=_Period_value_3;
                                    selected_value_13=next_selected_value_13;
                                 }
                                 if((selected_value_13==5))
                                 {
                                    local_text_8="M5";
                                    next_selected_value_14=selected_value_13;
                                    selected_value_14=next_selected_value_14;
                                 }
                                 else
                                 {
                                    next_selected_value_14=selected_value_13;
                                    selected_value_14=next_selected_value_14;
                                 }
                                 if((selected_value_14==15))
                                 {
                                    local_text_8="M15";
                                    next_selected_value_15=selected_value_14;
                                    selected_value_15=next_selected_value_15;
                                 }
                                 else
                                 {
                                    next_selected_value_15=selected_value_14;
                                    selected_value_15=next_selected_value_15;
                                 }
                                 if((selected_value_15==30))
                                 {
                                    local_text_8="M30";
                                    next_selected_value_16=selected_value_15;
                                    selected_value_16=next_selected_value_16;
                                 }
                                 else
                                 {
                                    next_selected_value_16=selected_value_15;
                                    selected_value_16=next_selected_value_16;
                                 }
                                 if((selected_value_16==60))
                                 {
                                    local_text_8="H1";
                                    next_selected_value_17=selected_value_16;
                                    selected_value_17=next_selected_value_17;
                                 }
                                 else
                                 {
                                    next_selected_value_17=selected_value_16;
                                    selected_value_17=next_selected_value_17;
                                 }
                                 if((selected_value_17==240))
                                 {
                                    local_text_8="H4";
                                    next_selected_value_18=selected_value_17;
                                    selected_value_18=next_selected_value_18;
                                 }
                                 else
                                 {
                                    next_selected_value_18=selected_value_17;
                                    selected_value_18=next_selected_value_18;
                                 }
                                 if((selected_value_18==1440))
                                 {
                                    local_text_8="D1";
                                    next_selected_value_19=selected_value_18;
                                    selected_value_19=next_selected_value_19;
                                 }
                                 else
                                 {
                                    next_selected_value_19=selected_value_18;
                                    selected_value_19=next_selected_value_19;
                                 }
                                 if((selected_value_19==10080))
                                 {
                                    local_text_8="W1";
                                    next_selected_value_20=selected_value_19;
                                    selected_value_20=next_selected_value_20;
                                 }
                                 else
                                 {
                                    next_selected_value_20=selected_value_19;
                                    selected_value_20=next_selected_value_20;
                                 }
                                 computed_value_19=(uint)0xa8c0;
                                 if((selected_value_20==(int)computed_value_19))
                                 {
                                    local_text_8="MN1";
                                 }
                                 local_text_9=local_text_8;
                                 local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                                 AlertsPopup_value_2=AlertsPopup;
                                 if((AlertsPopup_value_2!=false))
                                 {
                                    Alert(local_text_7);
                                 }
                                 AlertsEmail_value_2=AlertsEmail;
                                 if((AlertsEmail_value_2!=false))
                                 {
                                    local_text_10=StringConcatenate(_Symbol, " : ");
                                    SendMail(local_text_10, local_text_7);
                                 }
                                 AlertsPush_value_2=AlertsPush;
                                 if((AlertsPush_value_2!=false))
                                 {
                                    SendNotification(local_text_7);
                                 }
                                 indicator_buffer_3[(uint)0x1]=1.0;
                              }
                              else
                              {
                                 indicator_buffer_3[(uint)0x1]=0.0;
                              }
                           }
                        }
                        else
                        {
                           global_state_42_value=global_state_42;
                           computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                           computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                           Time_value_3=Time[(uint)0x0];
                           computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                           computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                           if((computed_value_15==computed_value_17))
                           {
                              if((computed_value_14==computed_value_16))
                              {
                                 next_selected_value_12=false;
                                 selected_value_12=next_selected_value_12;
                              }
                              else
                              {
                                 Time_value_4=Time[(uint)0x0];
                                 global_state_42=Time_value_4;
                                 next_selected_value_12=true;
                                 selected_value_12=next_selected_value_12;
                              }
                           }
                           else
                           {
                              Time_value_4=Time[(uint)0x0];
                              global_state_42=Time_value_4;
                              next_selected_value_12=true;
                              selected_value_12=next_selected_value_12;
                           }
                           computed_value_18=(int)(uint)selected_value_12;
                           if((computed_value_18==1))
                           {
                              local_text_6=sellAlertText;
                              local_text_7=NULL;
                              _Period_value_3=_Period;
                              local_text_8=NULL;
                              local_text_8="NONE";
                              _Period_value_4=_Period;
                              if((_Period_value_4==1))
                              {
                                 local_text_8="M1";
                                 next_selected_value_13=_Period_value_3;
                                 selected_value_13=next_selected_value_13;
                              }
                              else
                              {
                                 next_selected_value_13=_Period_value_3;
                                 selected_value_13=next_selected_value_13;
                              }
                              if((selected_value_13==5))
                              {
                                 local_text_8="M5";
                                 next_selected_value_14=selected_value_13;
                                 selected_value_14=next_selected_value_14;
                              }
                              else
                              {
                                 next_selected_value_14=selected_value_13;
                                 selected_value_14=next_selected_value_14;
                              }
                              if((selected_value_14==15))
                              {
                                 local_text_8="M15";
                                 next_selected_value_15=selected_value_14;
                                 selected_value_15=next_selected_value_15;
                              }
                              else
                              {
                                 next_selected_value_15=selected_value_14;
                                 selected_value_15=next_selected_value_15;
                              }
                              if((selected_value_15==30))
                              {
                                 local_text_8="M30";
                                 next_selected_value_16=selected_value_15;
                                 selected_value_16=next_selected_value_16;
                              }
                              else
                              {
                                 next_selected_value_16=selected_value_15;
                                 selected_value_16=next_selected_value_16;
                              }
                              if((selected_value_16==60))
                              {
                                 local_text_8="H1";
                                 next_selected_value_17=selected_value_16;
                                 selected_value_17=next_selected_value_17;
                              }
                              else
                              {
                                 next_selected_value_17=selected_value_16;
                                 selected_value_17=next_selected_value_17;
                              }
                              if((selected_value_17==240))
                              {
                                 local_text_8="H4";
                                 next_selected_value_18=selected_value_17;
                                 selected_value_18=next_selected_value_18;
                              }
                              else
                              {
                                 next_selected_value_18=selected_value_17;
                                 selected_value_18=next_selected_value_18;
                              }
                              if((selected_value_18==1440))
                              {
                                 local_text_8="D1";
                                 next_selected_value_19=selected_value_18;
                                 selected_value_19=next_selected_value_19;
                              }
                              else
                              {
                                 next_selected_value_19=selected_value_18;
                                 selected_value_19=next_selected_value_19;
                              }
                              if((selected_value_19==10080))
                              {
                                 local_text_8="W1";
                                 next_selected_value_20=selected_value_19;
                                 selected_value_20=next_selected_value_20;
                              }
                              else
                              {
                                 next_selected_value_20=selected_value_19;
                                 selected_value_20=next_selected_value_20;
                              }
                              computed_value_19=(uint)0xa8c0;
                              if((selected_value_20==(int)computed_value_19))
                              {
                                 local_text_8="MN1";
                              }
                              local_text_9=local_text_8;
                              local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                              AlertsPopup_value_2=AlertsPopup;
                              if((AlertsPopup_value_2!=false))
                              {
                                 Alert(local_text_7);
                              }
                              AlertsEmail_value_2=AlertsEmail;
                              if((AlertsEmail_value_2!=false))
                              {
                                 local_text_10=StringConcatenate(_Symbol, " : ");
                                 SendMail(local_text_10, local_text_7);
                              }
                              AlertsPush_value_2=AlertsPush;
                              if((AlertsPush_value_2!=false))
                              {
                                 SendNotification(local_text_7);
                              }
                              indicator_buffer_3[(uint)0x1]=1.0;
                           }
                           else
                           {
                              indicator_buffer_3[(uint)0x1]=0.0;
                           }
                        }
                     }
                     else
                     {
                        filterByWeekHighsLows_value_4=filterByWeekHighsLows;
                        if((filterByWeekHighsLows_value_4!=false))
                        {
                        }
                        else
                        {
                           global_state_42_value=global_state_42;
                           computed_value_14=(uint)((uint)((ulong)global_state_42_value>>0));
                           computed_value_15=(uint)((uint)((ulong)global_state_42_value>>32));
                           Time_value_3=Time[(uint)0x0];
                           computed_value_16=(uint)((uint)((ulong)Time_value_3>>0));
                           computed_value_17=(uint)((uint)((ulong)Time_value_3>>32));
                           if((computed_value_15==computed_value_17))
                           {
                              if((computed_value_14==computed_value_16))
                              {
                                 next_selected_value_12=false;
                                 selected_value_12=next_selected_value_12;
                              }
                              else
                              {
                                 Time_value_4=Time[(uint)0x0];
                                 global_state_42=Time_value_4;
                                 next_selected_value_12=true;
                                 selected_value_12=next_selected_value_12;
                              }
                           }
                           else
                           {
                              Time_value_4=Time[(uint)0x0];
                              global_state_42=Time_value_4;
                              next_selected_value_12=true;
                              selected_value_12=next_selected_value_12;
                           }
                           computed_value_18=(int)(uint)selected_value_12;
                           if((computed_value_18==1))
                           {
                              local_text_6=sellAlertText;
                              local_text_7=NULL;
                              _Period_value_3=_Period;
                              local_text_8=NULL;
                              local_text_8="NONE";
                              _Period_value_4=_Period;
                              if((_Period_value_4==1))
                              {
                                 local_text_8="M1";
                                 next_selected_value_13=_Period_value_3;
                                 selected_value_13=next_selected_value_13;
                              }
                              else
                              {
                                 next_selected_value_13=_Period_value_3;
                                 selected_value_13=next_selected_value_13;
                              }
                              if((selected_value_13==5))
                              {
                                 local_text_8="M5";
                                 next_selected_value_14=selected_value_13;
                                 selected_value_14=next_selected_value_14;
                              }
                              else
                              {
                                 next_selected_value_14=selected_value_13;
                                 selected_value_14=next_selected_value_14;
                              }
                              if((selected_value_14==15))
                              {
                                 local_text_8="M15";
                                 next_selected_value_15=selected_value_14;
                                 selected_value_15=next_selected_value_15;
                              }
                              else
                              {
                                 next_selected_value_15=selected_value_14;
                                 selected_value_15=next_selected_value_15;
                              }
                              if((selected_value_15==30))
                              {
                                 local_text_8="M30";
                                 next_selected_value_16=selected_value_15;
                                 selected_value_16=next_selected_value_16;
                              }
                              else
                              {
                                 next_selected_value_16=selected_value_15;
                                 selected_value_16=next_selected_value_16;
                              }
                              if((selected_value_16==60))
                              {
                                 local_text_8="H1";
                                 next_selected_value_17=selected_value_16;
                                 selected_value_17=next_selected_value_17;
                              }
                              else
                              {
                                 next_selected_value_17=selected_value_16;
                                 selected_value_17=next_selected_value_17;
                              }
                              if((selected_value_17==240))
                              {
                                 local_text_8="H4";
                                 next_selected_value_18=selected_value_17;
                                 selected_value_18=next_selected_value_18;
                              }
                              else
                              {
                                 next_selected_value_18=selected_value_17;
                                 selected_value_18=next_selected_value_18;
                              }
                              if((selected_value_18==1440))
                              {
                                 local_text_8="D1";
                                 next_selected_value_19=selected_value_18;
                                 selected_value_19=next_selected_value_19;
                              }
                              else
                              {
                                 next_selected_value_19=selected_value_18;
                                 selected_value_19=next_selected_value_19;
                              }
                              if((selected_value_19==10080))
                              {
                                 local_text_8="W1";
                                 next_selected_value_20=selected_value_19;
                                 selected_value_20=next_selected_value_20;
                              }
                              else
                              {
                                 next_selected_value_20=selected_value_19;
                                 selected_value_20=next_selected_value_20;
                              }
                              computed_value_19=(uint)0xa8c0;
                              if((selected_value_20==(int)computed_value_19))
                              {
                                 local_text_8="MN1";
                              }
                              local_text_9=local_text_8;
                              local_text_7=StringConcatenate(_Symbol, " - ", local_text_9, " - : ", local_text_6);
                              AlertsPopup_value_2=AlertsPopup;
                              if((AlertsPopup_value_2!=false))
                              {
                                 Alert(local_text_7);
                              }
                              AlertsEmail_value_2=AlertsEmail;
                              if((AlertsEmail_value_2!=false))
                              {
                                 local_text_10=StringConcatenate(_Symbol, " : ");
                                 SendMail(local_text_10, local_text_7);
                              }
                              AlertsPush_value_2=AlertsPush;
                              if((AlertsPush_value_2!=false))
                              {
                                 SendNotification(local_text_7);
                              }
                              indicator_buffer_3[(uint)0x1]=1.0;
                           }
                           else
                           {
                              indicator_buffer_3[(uint)0x1]=0.0;
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }
   filterByDailyHighsLows_value_5=filterByDailyHighsLows;
   if((filterByDailyHighsLows_value_5==true))
   {
      drawLines_value=drawLines;
      if((drawLines_value==true))
      {
         received_value_9=iHigh(_Symbol, 1440, 1);
         property_value_9=received_value_9;
         local_text_11=global_text_8;
         local_text_11+="YesterdayHigh";
         local_text_11=local_text_11;
         ObjectDelete(local_text_11);
         ResetLastError();
         api_result_3=ObjectCreate(0, local_text_11, (ENUM_OBJECT)1, 0, 0, property_value_9);
         if((api_result_3==false))
         {
            _LastError_value=_LastError;
            ResetLastError();
            Print("HLineCreate", ": failed to create a horizontal line! Error code = ", _LastError_value);
         }
         else
         {
            ObjectSetInteger(0, local_text_11, 6, 32768);
            computed_value_20=(long)3;
            ObjectSetInteger(0, local_text_11, 7, computed_value_20);
            computed_value_21=(long)1;
            ObjectSetInteger(0, local_text_11, 8, computed_value_21);
            computed_value_22=(int)(uint)false;
            computed_value_23=(long)computed_value_22;
            ObjectSetInteger(0, local_text_11, 9, computed_value_23);
            computed_value_24=(int)(uint)true;
            computed_value_25=(long)computed_value_24;
            ObjectSetInteger(0, local_text_11, 1000, computed_value_25);
            computed_value_26=(int)(uint)true;
            computed_value_27=(long)computed_value_26;
            ObjectSetInteger(0, local_text_11, 17, computed_value_27);
            computed_value_28=(int)(uint)true;
            computed_value_29=(long)computed_value_28;
            ObjectSetInteger(0, local_text_11, 208, computed_value_29);
            ObjectSetInteger(0, local_text_11, 207, 0);
            api_result_4=ChartID();
            ChartRedraw(api_result_4);
         }
         received_value_10=iLow(_Symbol, 1440, 1);
         property_value_10=received_value_10;
         local_text_12=global_text_8;
         local_text_12+="YesterdayLow";
         local_text_12=local_text_12;
         ObjectDelete(local_text_12);
         ResetLastError();
         api_result_5=ObjectCreate(0, local_text_12, (ENUM_OBJECT)1, 0, 0, property_value_10);
         if((api_result_5==false))
         {
            _LastError_value_2=_LastError;
            ResetLastError();
            Print("HLineCreate", ": failed to create a horizontal line! Error code = ", _LastError_value_2);
         }
         else
         {
            ObjectSetInteger(0, local_text_12, 6, 255);
            computed_value_30=(long)3;
            ObjectSetInteger(0, local_text_12, 7, computed_value_30);
            computed_value_31=(long)1;
            ObjectSetInteger(0, local_text_12, 8, computed_value_31);
            computed_value_32=(int)(uint)false;
            computed_value_33=(long)computed_value_32;
            ObjectSetInteger(0, local_text_12, 9, computed_value_33);
            computed_value_34=(int)(uint)true;
            computed_value_35=(long)computed_value_34;
            ObjectSetInteger(0, local_text_12, 1000, computed_value_35);
            computed_value_36=(int)(uint)true;
            computed_value_37=(long)computed_value_36;
            ObjectSetInteger(0, local_text_12, 17, computed_value_37);
            computed_value_38=(int)(uint)true;
            computed_value_39=(long)computed_value_38;
            ObjectSetInteger(0, local_text_12, 208, computed_value_39);
            ObjectSetInteger(0, local_text_12, 207, 0);
            api_result_6=ChartID();
            ChartRedraw(api_result_6);
         }
      }
   }
   filterByWeekHighsLows_value_5=filterByWeekHighsLows;
   if((filterByWeekHighsLows_value_5==true))
   {
      drawLines_value_2=drawLines;
      if((drawLines_value_2==true))
      {
         received_value_11=iHigh(_Symbol, 10080, 1);
         property_value_11=received_value_11;
         local_text_13=global_text_8;
         local_text_13+="WeekHigh";
         local_text_13=local_text_13;
         ObjectDelete(local_text_13);
         ResetLastError();
         api_result_7=ObjectCreate(0, local_text_13, (ENUM_OBJECT)1, 0, 0, property_value_11);
         if((api_result_7==false))
         {
            _LastError_value_3=_LastError;
            ResetLastError();
            Print("HLineCreate", ": failed to create a horizontal line! Error code = ", _LastError_value_3);
         }
         else
         {
            ObjectSetInteger(0, local_text_13, 6, 32768);
            computed_value_40=(long)3;
            ObjectSetInteger(0, local_text_13, 7, computed_value_40);
            computed_value_41=(long)1;
            ObjectSetInteger(0, local_text_13, 8, computed_value_41);
            computed_value_42=(int)(uint)false;
            computed_value_43=(long)computed_value_42;
            ObjectSetInteger(0, local_text_13, 9, computed_value_43);
            computed_value_44=(int)(uint)true;
            computed_value_45=(long)computed_value_44;
            ObjectSetInteger(0, local_text_13, 1000, computed_value_45);
            computed_value_46=(int)(uint)true;
            computed_value_47=(long)computed_value_46;
            ObjectSetInteger(0, local_text_13, 17, computed_value_47);
            computed_value_48=(int)(uint)true;
            computed_value_49=(long)computed_value_48;
            ObjectSetInteger(0, local_text_13, 208, computed_value_49);
            ObjectSetInteger(0, local_text_13, 207, 0);
            api_result_8=ChartID();
            ChartRedraw(api_result_8);
         }
         received_value_12=iLow(_Symbol, 10080, 1);
         property_value_12=received_value_12;
         local_text_14=global_text_8;
         local_text_14+="WeekLow";
         local_text_14=local_text_14;
         ObjectDelete(local_text_14);
         ResetLastError();
         api_result_9=ObjectCreate(0, local_text_14, (ENUM_OBJECT)1, 0, 0, property_value_12);
         if((api_result_9==false))
         {
            _LastError_value_4=_LastError;
            ResetLastError();
            Print("HLineCreate", ": failed to create a horizontal line! Error code = ", _LastError_value_4);
         }
         else
         {
            ObjectSetInteger(0, local_text_14, 6, 255);
            computed_value_50=(long)3;
            ObjectSetInteger(0, local_text_14, 7, computed_value_50);
            computed_value_51=(long)1;
            ObjectSetInteger(0, local_text_14, 8, computed_value_51);
            computed_value_52=(int)(uint)false;
            computed_value_53=(long)computed_value_52;
            ObjectSetInteger(0, local_text_14, 9, computed_value_53);
            computed_value_54=(int)(uint)true;
            computed_value_55=(long)computed_value_54;
            ObjectSetInteger(0, local_text_14, 1000, computed_value_55);
            computed_value_56=(int)(uint)true;
            computed_value_57=(long)computed_value_56;
            ObjectSetInteger(0, local_text_14, 17, computed_value_57);
            computed_value_58=(int)(uint)true;
            computed_value_59=(long)computed_value_58;
            ObjectSetInteger(0, local_text_14, 208, computed_value_59);
            ObjectSetInteger(0, local_text_14, 207, 0);
            api_result_10=ChartID();
            ChartRedraw(api_result_10);
         }
      }
   }
   local_text_14=NULL;
   local_text_13=NULL;
   local_text_12=NULL;
   local_text_11=NULL;
   local_text_10=NULL;
   local_text_9=NULL;
   local_text_8=NULL;
   local_text_7=NULL;
   local_text_6=NULL;
   local_text_5=NULL;
   local_text_4=NULL;
   local_text_3=NULL;
   local_text_2=NULL;
   local_text_1=NULL;
   return;
}

int ReadSharedValue2(const int value_1, const double value_2)
{
   double received_value;
   double received_value_2;
   double received_value_3;
   double received_value_4;
   double received_value_5;
   double received_value_6;
   int selected_value=0;
   double property_value=0.0;
   double property_value_2=0.0;
   int computed_value=0;
   double property_value_3=0.0;
   double property_value_4=0.0;
   int computed_value_2=0;
   double property_value_5=0.0;
   double property_value_6=0.0;
   int computed_value_3=0;
   int next_selected_value=0;
   next_selected_value=value_1;
   selected_value=next_selected_value;
   int loop_exit_path_1=0;
   while(true)
   {
      if((selected_value<1))
      {
         loop_exit_path_1=4;
         break;
      }
      else
      {
         received_value=iOpen(_Symbol, 0, selected_value);
         property_value=received_value;
         if((property_value<=value_2))
         {
            received_value_2=iClose(_Symbol, 0, selected_value);
            property_value_2=received_value_2;
            if((value_2<property_value_2))
            {
               loop_exit_path_1=1;
               break;
            }
            else
            {
               computed_value=(int)((uint)selected_value+(uint)0x1);
               received_value_3=iOpen(_Symbol, 0, computed_value);
               property_value_3=received_value_3;
               if((property_value_3<=value_2))
               {
                  received_value_4=iClose(_Symbol, 0, selected_value);
                  property_value_4=received_value_4;
                  if((value_2<property_value_4))
                  {
                     loop_exit_path_1=2;
                     break;
                  }
                  else
                  {
                     computed_value_2=(int)((uint)selected_value+(uint)0x1);
                     received_value_5=iClose(_Symbol, 0, computed_value_2);
                     property_value_5=received_value_5;
                     if((property_value_5<=value_2))
                     {
                        received_value_6=iClose(_Symbol, 0, selected_value);
                        property_value_6=received_value_6;
                        if((value_2<property_value_6))
                        {
                           loop_exit_path_1=3;
                           break;
                        }
                        else
                        {
                           computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                           next_selected_value=computed_value_3;
                           selected_value=next_selected_value;
                           continue;
                        }
                     }
                     else
                     {
                        computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                        next_selected_value=computed_value_3;
                        selected_value=next_selected_value;
                        continue;
                     }
                  }
               }
               else
               {
                  computed_value_2=(int)((uint)selected_value+(uint)0x1);
                  received_value_5=iClose(_Symbol, 0, computed_value_2);
                  property_value_5=received_value_5;
                  if((property_value_5<=value_2))
                  {
                     received_value_6=iClose(_Symbol, 0, selected_value);
                     property_value_6=received_value_6;
                     if((value_2<property_value_6))
                     {
                        loop_exit_path_1=3;
                        break;
                     }
                     else
                     {
                        computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                        next_selected_value=computed_value_3;
                        selected_value=next_selected_value;
                        continue;
                     }
                  }
                  else
                  {
                     computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                     next_selected_value=computed_value_3;
                     selected_value=next_selected_value;
                     continue;
                  }
               }
            }
         }
         else
         {
            computed_value=(int)((uint)selected_value+(uint)0x1);
            received_value_3=iOpen(_Symbol, 0, computed_value);
            property_value_3=received_value_3;
            if((property_value_3<=value_2))
            {
               received_value_4=iClose(_Symbol, 0, selected_value);
               property_value_4=received_value_4;
               if((value_2<property_value_4))
               {
                  loop_exit_path_1=2;
                  break;
               }
               else
               {
                  computed_value_2=(int)((uint)selected_value+(uint)0x1);
                  received_value_5=iClose(_Symbol, 0, computed_value_2);
                  property_value_5=received_value_5;
                  if((property_value_5<=value_2))
                  {
                     received_value_6=iClose(_Symbol, 0, selected_value);
                     property_value_6=received_value_6;
                     if((value_2<property_value_6))
                     {
                        loop_exit_path_1=3;
                        break;
                     }
                     else
                     {
                        computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                        next_selected_value=computed_value_3;
                        selected_value=next_selected_value;
                        continue;
                     }
                  }
                  else
                  {
                     computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                     next_selected_value=computed_value_3;
                     selected_value=next_selected_value;
                     continue;
                  }
               }
            }
            else
            {
               computed_value_2=(int)((uint)selected_value+(uint)0x1);
               received_value_5=iClose(_Symbol, 0, computed_value_2);
               property_value_5=received_value_5;
               if((property_value_5<=value_2))
               {
                  received_value_6=iClose(_Symbol, 0, selected_value);
                  property_value_6=received_value_6;
                  if((value_2<property_value_6))
                  {
                     loop_exit_path_1=3;
                     break;
                  }
                  else
                  {
                     computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                     next_selected_value=computed_value_3;
                     selected_value=next_selected_value;
                     continue;
                  }
               }
               else
               {
                  computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                  next_selected_value=computed_value_3;
                  selected_value=next_selected_value;
                  continue;
               }
            }
         }
      }
   }
   if(loop_exit_path_1==1)
   {
      return selected_value;
   }
   else
   {
      if(loop_exit_path_1==2)
      {
         return selected_value;
      }
      else
      {
         if(loop_exit_path_1==3)
         {
            return selected_value;
         }
         else
         {
            return -1;
         }
      }
   }
}

int ReadSharedValue(const int value_1, const double value_2)
{
   double received_value;
   double received_value_2;
   double received_value_3;
   double received_value_4;
   double received_value_5;
   double received_value_6;
   int selected_value=0;
   double property_value=0.0;
   double property_value_2=0.0;
   int computed_value=0;
   double property_value_3=0.0;
   double property_value_4=0.0;
   int computed_value_2=0;
   double property_value_5=0.0;
   double property_value_6=0.0;
   int computed_value_3=0;
   int next_selected_value=0;
   next_selected_value=value_1;
   selected_value=next_selected_value;
   int loop_exit_path_1=0;
   while(true)
   {
      if((selected_value<1))
      {
         loop_exit_path_1=4;
         break;
      }
      else
      {
         received_value=iOpen(_Symbol, 0, selected_value);
         property_value=received_value;
         if((value_2<=property_value))
         {
            received_value_2=iClose(_Symbol, 0, selected_value);
            property_value_2=received_value_2;
            if((property_value_2<value_2))
            {
               loop_exit_path_1=1;
               break;
            }
            else
            {
               computed_value=(int)((uint)selected_value+(uint)0x1);
               received_value_3=iOpen(_Symbol, 0, computed_value);
               property_value_3=received_value_3;
               if((value_2<=property_value_3))
               {
                  received_value_4=iClose(_Symbol, 0, selected_value);
                  property_value_4=received_value_4;
                  if((property_value_4<value_2))
                  {
                     loop_exit_path_1=2;
                     break;
                  }
                  else
                  {
                     computed_value_2=(int)((uint)selected_value+(uint)0x1);
                     received_value_5=iClose(_Symbol, 0, computed_value_2);
                     property_value_5=received_value_5;
                     if((value_2<=property_value_5))
                     {
                        received_value_6=iClose(_Symbol, 0, selected_value);
                        property_value_6=received_value_6;
                        if((property_value_6<value_2))
                        {
                           loop_exit_path_1=3;
                           break;
                        }
                        else
                        {
                           computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                           next_selected_value=computed_value_3;
                           selected_value=next_selected_value;
                           continue;
                        }
                     }
                     else
                     {
                        computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                        next_selected_value=computed_value_3;
                        selected_value=next_selected_value;
                        continue;
                     }
                  }
               }
               else
               {
                  computed_value_2=(int)((uint)selected_value+(uint)0x1);
                  received_value_5=iClose(_Symbol, 0, computed_value_2);
                  property_value_5=received_value_5;
                  if((value_2<=property_value_5))
                  {
                     received_value_6=iClose(_Symbol, 0, selected_value);
                     property_value_6=received_value_6;
                     if((property_value_6<value_2))
                     {
                        loop_exit_path_1=3;
                        break;
                     }
                     else
                     {
                        computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                        next_selected_value=computed_value_3;
                        selected_value=next_selected_value;
                        continue;
                     }
                  }
                  else
                  {
                     computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                     next_selected_value=computed_value_3;
                     selected_value=next_selected_value;
                     continue;
                  }
               }
            }
         }
         else
         {
            computed_value=(int)((uint)selected_value+(uint)0x1);
            received_value_3=iOpen(_Symbol, 0, computed_value);
            property_value_3=received_value_3;
            if((value_2<=property_value_3))
            {
               received_value_4=iClose(_Symbol, 0, selected_value);
               property_value_4=received_value_4;
               if((property_value_4<value_2))
               {
                  loop_exit_path_1=2;
                  break;
               }
               else
               {
                  computed_value_2=(int)((uint)selected_value+(uint)0x1);
                  received_value_5=iClose(_Symbol, 0, computed_value_2);
                  property_value_5=received_value_5;
                  if((value_2<=property_value_5))
                  {
                     received_value_6=iClose(_Symbol, 0, selected_value);
                     property_value_6=received_value_6;
                     if((property_value_6<value_2))
                     {
                        loop_exit_path_1=3;
                        break;
                     }
                     else
                     {
                        computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                        next_selected_value=computed_value_3;
                        selected_value=next_selected_value;
                        continue;
                     }
                  }
                  else
                  {
                     computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                     next_selected_value=computed_value_3;
                     selected_value=next_selected_value;
                     continue;
                  }
               }
            }
            else
            {
               computed_value_2=(int)((uint)selected_value+(uint)0x1);
               received_value_5=iClose(_Symbol, 0, computed_value_2);
               property_value_5=received_value_5;
               if((value_2<=property_value_5))
               {
                  received_value_6=iClose(_Symbol, 0, selected_value);
                  property_value_6=received_value_6;
                  if((property_value_6<value_2))
                  {
                     loop_exit_path_1=3;
                     break;
                  }
                  else
                  {
                     computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                     next_selected_value=computed_value_3;
                     selected_value=next_selected_value;
                     continue;
                  }
               }
               else
               {
                  computed_value_3=(int)((uint)selected_value+(uint)0xffffffff);
                  next_selected_value=computed_value_3;
                  selected_value=next_selected_value;
                  continue;
               }
            }
         }
      }
   }
   if(loop_exit_path_1==1)
   {
      return selected_value;
   }
   else
   {
      if(loop_exit_path_1==2)
      {
         return selected_value;
      }
      else
      {
         if(loop_exit_path_1==3)
         {
            return selected_value;
         }
         else
         {
            return -1;
         }
      }
   }
}

void UpdateArrayValues(double &value_1[], double &value_2[], const int value_3, const int value_4, const int value_5)
{
   const int available=(int)MathMin(Bars,MathMin(ArraySize(value_1),ArraySize(value_2)));
   ArrayInitialize(value_1,0.0);
   ArrayInitialize(value_2,0.0);
   if(value_3<1 || available<value_3 || value_5<0) return;

   int Bars_value=0;
   int computed_value=0;
   double selected_value=0.0;
   double selected_value_2=0.0;
   int bar_index=0;
   int api_result=0;
   double Low_value=0.0;
   double Low_value_2=0.0;
   double difference=0.0;
   double computed_value_2=0.0;
   double _Point_value=0.0;
   double product=0.0;
   int selected_value_3=0;
   int array_index=0;
   double value_1_value=0.0;
   int computed_value_3=0;
   double selected_value_4=0.0;
   double selected_value_5=0.0;
   int api_result_2=0;
   double High_value=0.0;
   double High_value_2=0.0;
   double difference_2=0.0;
   double computed_value_4=0.0;
   double _Point_value_2=0.0;
   double product_2=0.0;
   int selected_value_6=0;
   int array_index_2=0;
   double value_2_value=0.0;
   int computed_value_5=0;
   double selected_value_7=0.0;
   double selected_value_8=0.0;
   int computed_value_6=0;
   int Bars_value_2=0;
   int computed_value_7=0;
   double selected_value_9=0.0;
   double selected_value_10=0.0;
   int bar_index_2=0;
   int bar_index_3=0;
   int bar_index_4=0;
   int Bars_value_3=0;
   int selected_value_11=0;
   int array_index_3=0;
   int Bars_value_4=0;
   int computed_value_8=0;
   double value_2_value_2=0.0;
   double value_1_value_2=0.0;
   double value_2_value_3=0.0;
   double selected_value_12=0.0;
   int selected_value_13=0;
   double selected_value_14=0.0;
   double selected_value_15=0.0;
   int selected_value_16=0;
   double selected_value_17=0.0;
   int selected_value_18=0;
   double selected_value_19=0.0;
   double selected_value_20=0.0;
   int selected_value_21=0;
   int selected_value_22=0;
   int computed_value_9=0;
   double next_selected_value=0.0;
   double next_selected_value_2=0.0;
   int next_bar_index=0;
   int next_selected_value_3=0;
   double next_selected_value_4=0.0;
   double next_selected_value_5=0.0;
   int next_selected_value_6=0;
   double next_selected_value_7=0.0;
   double next_selected_value_8=0.0;
   double next_selected_value_9=0.0;
   double next_selected_value_10=0.0;
   int next_bar_index_2=0;
   int next_bar_index_3=0;
   int next_bar_index_4=0;
   int next_selected_value_11=0;
   double next_selected_value_12=0.0;
   int next_selected_value_13=0;
   double next_selected_value_14=0.0;
   double next_selected_value_15=0.0;
   int next_selected_value_16=0;
   double next_selected_value_17=0.0;
   int next_selected_value_18=0;
   double next_selected_value_19=0.0;
   double next_selected_value_20=0.0;
   int next_selected_value_21=0;
   int next_selected_value_22=0;
   Bars_value=available;
   computed_value=(int)((uint)Bars_value-(uint)value_3);
   next_selected_value=0.0;
   next_selected_value_2=0.0;
   next_bar_index=computed_value;
   selected_value=next_selected_value;
   selected_value_2=next_selected_value_2;
   bar_index=next_bar_index;
   while(true)
   {
      if((bar_index<0))
      {
         break;
      }
      else
      {
         api_result=iLowest(NULL, 0, 1, value_3, bar_index);
         if(api_result<0 || api_result>=available) return;
         Low_value=Low[(uint)api_result];
         if((Low_value==selected_value))
         {
            next_selected_value_4=0.0;
            next_selected_value_5=selected_value;
            selected_value_4=next_selected_value_4;
            selected_value_5=next_selected_value_5;
         }
         else
         {
            Low_value_2=Low[(uint)bar_index];
            difference=(Low_value_2-Low_value);
            computed_value_2=(double)value_4;
            _Point_value=_Point;
            product=(computed_value_2*_Point_value);
            if((difference<=product))
            {
               if((0<value_5))
               {
                  next_selected_value_3=1;
                  selected_value_3=next_selected_value_3;
                  while(true)
                  {
                     array_index=(int)((uint)bar_index+(uint)selected_value_3);
                     if(array_index<0 || array_index>=available) break;
                     value_1_value=value_1[(uint)array_index];
                     if((value_1_value!=0.0))
                     {
                        if((Low_value<value_1_value))
                        {
                           value_1[(uint)array_index]=0.0;
                        }
                     }
                     computed_value_3=(int)((uint)selected_value_3+(uint)0x1);
                     if((computed_value_3<=value_5))
                     {
                        next_selected_value_3=computed_value_3;
                        selected_value_3=next_selected_value_3;
                        continue;
                     }
                     else
                     {
                        next_selected_value_4=Low_value;
                        next_selected_value_5=Low_value;
                        selected_value_4=next_selected_value_4;
                        selected_value_5=next_selected_value_5;
                        break;
                     }
                  }
               }
               else
               {
                  next_selected_value_4=Low_value;
                  next_selected_value_5=Low_value;
                  selected_value_4=next_selected_value_4;
                  selected_value_5=next_selected_value_5;
               }
            }
            else
            {
               next_selected_value_4=0.0;
               next_selected_value_5=Low_value;
               selected_value_4=next_selected_value_4;
               selected_value_5=next_selected_value_5;
            }
         }
         value_1[(uint)bar_index]=selected_value_4;
         api_result_2=iHighest(NULL, 0, 2, value_3, bar_index);
         if(api_result_2<0 || api_result_2>=available) return;
         High_value=High[(uint)api_result_2];
         if((High_value==selected_value_2))
         {
            next_selected_value_7=0.0;
            next_selected_value_8=selected_value_2;
            selected_value_7=next_selected_value_7;
            selected_value_8=next_selected_value_8;
         }
         else
         {
            High_value_2=High[(uint)bar_index];
            difference_2=(High_value-High_value_2);
            computed_value_4=(double)value_4;
            _Point_value_2=_Point;
            product_2=(computed_value_4*_Point_value_2);
            if((difference_2<=product_2))
            {
               if((0<value_5))
               {
                  next_selected_value_6=1;
                  selected_value_6=next_selected_value_6;
                  while(true)
                  {
                     array_index_2=(int)((uint)bar_index+(uint)selected_value_6);
                     if(array_index_2<0 || array_index_2>=available) break;
                     value_2_value=value_2[(uint)array_index_2];
                     if((value_2_value!=0.0))
                     {
                        if((value_2_value<High_value))
                        {
                           value_2[(uint)array_index_2]=0.0;
                        }
                     }
                     computed_value_5=(int)((uint)selected_value_6+(uint)0x1);
                     if((computed_value_5<=value_5))
                     {
                        next_selected_value_6=computed_value_5;
                        selected_value_6=next_selected_value_6;
                        continue;
                     }
                     else
                     {
                        next_selected_value_7=High_value;
                        next_selected_value_8=High_value;
                        selected_value_7=next_selected_value_7;
                        selected_value_8=next_selected_value_8;
                        break;
                     }
                  }
               }
               else
               {
                  next_selected_value_7=High_value;
                  next_selected_value_8=High_value;
                  selected_value_7=next_selected_value_7;
                  selected_value_8=next_selected_value_8;
               }
            }
            else
            {
               next_selected_value_7=0.0;
               next_selected_value_8=High_value;
               selected_value_7=next_selected_value_7;
               selected_value_8=next_selected_value_8;
            }
         }
         value_2[(uint)bar_index]=selected_value_7;
         computed_value_6=(int)((uint)bar_index-(uint)0x1);
         next_selected_value=selected_value_5;
         next_selected_value_2=selected_value_8;
         next_bar_index=computed_value_6;
         selected_value=next_selected_value;
         selected_value_2=next_selected_value_2;
         bar_index=next_bar_index;
         continue;
      }
   }
   Bars_value_2=available;
   computed_value_7=(int)((uint)Bars_value_2-(uint)value_3);
   next_selected_value_9=-1.0;
   next_selected_value_10=-1.0;
   next_bar_index_2=computed_value_7;
   next_bar_index_3=-1;
   next_bar_index_4=-1;
   selected_value_9=next_selected_value_9;
   selected_value_10=next_selected_value_10;
   bar_index_2=next_bar_index_2;
   bar_index_3=next_bar_index_3;
   bar_index_4=next_bar_index_4;
   while(true)
   {
      if((bar_index_2<0))
      {
         break;
      }
      else
      {
         value_1_value_2=value_1[(uint)bar_index_2];
         value_2_value_3=value_2[(uint)bar_index_2];
         if((value_1_value_2!=0.0))
         {
            if((value_2_value_3!=0.0))
            {
               if((0.0<selected_value_9))
               {
                  if((value_2_value_3<=selected_value_9))
                  {
                     value_2[(uint)bar_index_2]=0.0;
                  }
                  else
                  {
                     value_2[(uint)bar_index_3]=0.0;
                  }
               }
               if((selected_value_9<value_2_value_3))
               {
                  next_selected_value_12=value_2_value_3;
                  next_selected_value_13=bar_index_2;
                  selected_value_12=next_selected_value_12;
                  selected_value_13=next_selected_value_13;
               }
               else
               {
                  if((selected_value_9<0.0))
                  {
                     next_selected_value_12=value_2_value_3;
                     next_selected_value_13=bar_index_2;
                     selected_value_12=next_selected_value_12;
                     selected_value_13=next_selected_value_13;
                  }
                  else
                  {
                     next_selected_value_12=selected_value_9;
                     next_selected_value_13=bar_index_3;
                     selected_value_12=next_selected_value_12;
                     selected_value_13=next_selected_value_13;
                  }
               }
               next_selected_value_14=selected_value_12;
               next_selected_value_15=-1.0;
               next_selected_value_16=selected_value_13;
               selected_value_14=next_selected_value_14;
               selected_value_15=next_selected_value_15;
               selected_value_16=next_selected_value_16;
            }
            else
            {
               next_selected_value_14=selected_value_9;
               next_selected_value_15=selected_value_10;
               next_selected_value_16=bar_index_3;
               selected_value_14=next_selected_value_14;
               selected_value_15=next_selected_value_15;
               selected_value_16=next_selected_value_16;
            }
            if((value_1_value_2!=0.0))
            {
               if((0.0<selected_value_15))
               {
                  if((selected_value_15<=value_1_value_2))
                  {
                     value_1[(uint)bar_index_2]=0.0;
                  }
                  else
                  {
                     value_1[(uint)bar_index_4]=0.0;
                  }
               }
               if((value_1_value_2<selected_value_15))
               {
                  next_selected_value_17=value_1_value_2;
                  next_selected_value_18=bar_index_2;
                  selected_value_17=next_selected_value_17;
                  selected_value_18=next_selected_value_18;
               }
               else
               {
                  if((selected_value_15<0.0))
                  {
                     next_selected_value_17=value_1_value_2;
                     next_selected_value_18=bar_index_2;
                     selected_value_17=next_selected_value_17;
                     selected_value_18=next_selected_value_18;
                  }
                  else
                  {
                     next_selected_value_17=selected_value_15;
                     next_selected_value_18=bar_index_4;
                     selected_value_17=next_selected_value_17;
                     selected_value_18=next_selected_value_18;
                  }
               }
               next_selected_value_19=-1.0;
               next_selected_value_20=selected_value_17;
               next_selected_value_21=selected_value_16;
               next_selected_value_22=selected_value_18;
               selected_value_19=next_selected_value_19;
               selected_value_20=next_selected_value_20;
               selected_value_21=next_selected_value_21;
               selected_value_22=next_selected_value_22;
            }
            else
            {
               next_selected_value_19=selected_value_14;
               next_selected_value_20=selected_value_15;
               next_selected_value_21=selected_value_16;
               next_selected_value_22=bar_index_4;
               selected_value_19=next_selected_value_19;
               selected_value_20=next_selected_value_20;
               selected_value_21=next_selected_value_21;
               selected_value_22=next_selected_value_22;
            }
         }
         else
         {
            if((value_2_value_3!=0.0))
            {
               if((value_2_value_3!=0.0))
               {
                  if((0.0<selected_value_9))
                  {
                     if((value_2_value_3<=selected_value_9))
                     {
                        value_2[(uint)bar_index_2]=0.0;
                     }
                     else
                     {
                        value_2[(uint)bar_index_3]=0.0;
                     }
                  }
                  if((selected_value_9<value_2_value_3))
                  {
                     next_selected_value_12=value_2_value_3;
                     next_selected_value_13=bar_index_2;
                     selected_value_12=next_selected_value_12;
                     selected_value_13=next_selected_value_13;
                  }
                  else
                  {
                     if((selected_value_9<0.0))
                     {
                        next_selected_value_12=value_2_value_3;
                        next_selected_value_13=bar_index_2;
                        selected_value_12=next_selected_value_12;
                        selected_value_13=next_selected_value_13;
                     }
                     else
                     {
                        next_selected_value_12=selected_value_9;
                        next_selected_value_13=bar_index_3;
                        selected_value_12=next_selected_value_12;
                        selected_value_13=next_selected_value_13;
                     }
                  }
                  next_selected_value_14=selected_value_12;
                  next_selected_value_15=-1.0;
                  next_selected_value_16=selected_value_13;
                  selected_value_14=next_selected_value_14;
                  selected_value_15=next_selected_value_15;
                  selected_value_16=next_selected_value_16;
               }
               else
               {
                  next_selected_value_14=selected_value_9;
                  next_selected_value_15=selected_value_10;
                  next_selected_value_16=bar_index_3;
                  selected_value_14=next_selected_value_14;
                  selected_value_15=next_selected_value_15;
                  selected_value_16=next_selected_value_16;
               }
               if((value_1_value_2!=0.0))
               {
                  if((0.0<selected_value_15))
                  {
                     if((selected_value_15<=value_1_value_2))
                     {
                        value_1[(uint)bar_index_2]=0.0;
                     }
                     else
                     {
                        value_1[(uint)bar_index_4]=0.0;
                     }
                  }
                  if((value_1_value_2<selected_value_15))
                  {
                     next_selected_value_17=value_1_value_2;
                     next_selected_value_18=bar_index_2;
                     selected_value_17=next_selected_value_17;
                     selected_value_18=next_selected_value_18;
                  }
                  else
                  {
                     if((selected_value_15<0.0))
                     {
                        next_selected_value_17=value_1_value_2;
                        next_selected_value_18=bar_index_2;
                        selected_value_17=next_selected_value_17;
                        selected_value_18=next_selected_value_18;
                     }
                     else
                     {
                        next_selected_value_17=selected_value_15;
                        next_selected_value_18=bar_index_4;
                        selected_value_17=next_selected_value_17;
                        selected_value_18=next_selected_value_18;
                     }
                  }
                  next_selected_value_19=-1.0;
                  next_selected_value_20=selected_value_17;
                  next_selected_value_21=selected_value_16;
                  next_selected_value_22=selected_value_18;
                  selected_value_19=next_selected_value_19;
                  selected_value_20=next_selected_value_20;
                  selected_value_21=next_selected_value_21;
                  selected_value_22=next_selected_value_22;
               }
               else
               {
                  next_selected_value_19=selected_value_14;
                  next_selected_value_20=selected_value_15;
                  next_selected_value_21=selected_value_16;
                  next_selected_value_22=bar_index_4;
                  selected_value_19=next_selected_value_19;
                  selected_value_20=next_selected_value_20;
                  selected_value_21=next_selected_value_21;
                  selected_value_22=next_selected_value_22;
               }
            }
            else
            {
               next_selected_value_19=selected_value_9;
               next_selected_value_20=selected_value_10;
               next_selected_value_21=bar_index_3;
               next_selected_value_22=bar_index_4;
               selected_value_19=next_selected_value_19;
               selected_value_20=next_selected_value_20;
               selected_value_21=next_selected_value_21;
               selected_value_22=next_selected_value_22;
            }
         }
         computed_value_9=(int)((uint)bar_index_2-(uint)0x1);
         next_selected_value_9=selected_value_19;
         next_selected_value_10=selected_value_20;
         next_bar_index_2=computed_value_9;
         next_bar_index_3=selected_value_21;
         next_bar_index_4=selected_value_22;
         selected_value_9=next_selected_value_9;
         selected_value_10=next_selected_value_10;
         bar_index_2=next_bar_index_2;
         bar_index_3=next_bar_index_3;
         bar_index_4=next_bar_index_4;
         continue;
      }
   }
   Bars_value_3=available;
   next_selected_value_11=Bars_value_3;
   selected_value_11=next_selected_value_11;
   while(true)
   {
      array_index_3=(int)((uint)selected_value_11-(uint)0x1);
      if((array_index_3<0))
      {
         break;
      }
      else
      {
         Bars_value_4=available;
         computed_value_8=(int)((uint)Bars_value_4-(uint)value_3);
         if((array_index_3<computed_value_8))
         {
            value_2_value_2=value_2[(uint)array_index_3];
            if((value_2_value_2!=0.0))
            {
               value_2[(uint)array_index_3]=value_2_value_2;
               next_selected_value_11=array_index_3;
               selected_value_11=next_selected_value_11;
               continue;
            }
            else
            {
               next_selected_value_11=array_index_3;
               selected_value_11=next_selected_value_11;
               continue;
            }
         }
         else
         {
            value_1[(uint)array_index_3]=0.0;
            next_selected_value_11=array_index_3;
            selected_value_11=next_selected_value_11;
            continue;
         }
      }
   }
   return;
}

uint UpdateText2(const string &value_1, int &value_2, int &value_3[])
{
   value_2=0;
   ArrayResize(value_3,0);
   if(StringLen(value_1)==0) return (uint)0xffffffff;
   string parts[];
   int count=StringSplit(value_1,(ushort)44,parts);
   if(count<1) return (uint)0xfffffffe;
   if(ArrayResize(value_3,count)!=count) return (uint)0xffffffff;
   for(int i=0;i<count;i++)
   {
      string part=parts[i];
      StringTrimLeft(part);
      StringTrimRight(part);
      int parsed=(int)StringToInteger(part);
      if(parsed<1)
      {
         ArrayResize(value_3,0);
         return (uint)0xfffffffe;
      }
      value_3[i]=parsed;
   }
   value_2=count;
   return 1;
}

void UpdateText8(const uint value)
{
   string local_text_1;
   string local_text_2;
   string local_text_3;
   string local_text_4;
   string local_text_5;
   string local_text_6;
   string local_text_7;
   string local_text_8;
   double received_value;
   double received_value_2;
   double received_value_3;
   double received_value_4;
   double received_value_5;
   double received_value_6;
   double received_value_7;
   double received_value_8;
   double received_value_9;
   double received_value_10;
   double received_value_11;
   double received_value_12;
   double received_value_13;
   double received_value_14;
   double received_value_15;
   double received_value_16;
   int breakersHighTimeFrame_value=0;
   int breakersHighTimeFrame_value_2=0;
   bool drawBlocksOnCircles_value=false;
   bool wicksOfCandles_value=false;
   int numberOfBlockToDisplay_value=0;
   int managerAlerts_value=0;
   int highTimeFrameB_value=0;
   int computed_value=0;
   int computed_value_2=0;
   double property_value=0.0;
   int computed_value_3=0;
   bool drawBlocksOnCircles_value_2=false;
   bool wicksOfCandles_value_2=false;
   int numberOfBlockToDisplay_value_2=0;
   int managerAlerts_value_2=0;
   int highTimeFrameB_value_2=0;
   int computed_value_4=0;
   int computed_value_5=0;
   double property_value_2=0.0;
   int computed_value_6=0;
   bool drawBlocksOnCircles_value_3=false;
   bool wicksOfCandles_value_3=false;
   int numberOfBlockToDisplay_value_3=0;
   int managerAlerts_value_3=0;
   int highTimeFrameB_value_3=0;
   int computed_value_7=0;
   int computed_value_8=0;
   double property_value_3=0.0;
   int computed_value_9=0;
   bool drawBlocksOnCircles_value_4=false;
   bool wicksOfCandles_value_4=false;
   int numberOfBlockToDisplay_value_4=0;
   int managerAlerts_value_4=0;
   int highTimeFrameB_value_4=0;
   int computed_value_10=0;
   int computed_value_11=0;
   double property_value_4=0.0;
   int computed_value_12=0;
   bool drawBlocksOnCircles_value_5=false;
   bool wicksOfCandles_value_5=false;
   int numberOfBlockToDisplay_value_5=0;
   int managerAlerts_value_5=0;
   int highTimeFrameB_value_5=0;
   int computed_value_13=0;
   int computed_value_14=0;
   double property_value_5=0.0;
   bool drawBlocksOnCircles_value_6=false;
   bool wicksOfCandles_value_6=false;
   int numberOfBlockToDisplay_value_6=0;
   int managerAlerts_value_6=0;
   int highTimeFrameB_value_6=0;
   int computed_value_15=0;
   int computed_value_16=0;
   double property_value_6=0.0;
   bool drawBlocksOnCircles_value_7=false;
   bool wicksOfCandles_value_7=false;
   int numberOfBlockToDisplay_value_7=0;
   int managerAlerts_value_7=0;
   int highTimeFrameB_value_7=0;
   int computed_value_17=0;
   int computed_value_18=0;
   double property_value_7=0.0;
   bool drawBlocksOnCircles_value_8=false;
   bool wicksOfCandles_value_8=false;
   int numberOfBlockToDisplay_value_8=0;
   int managerAlerts_value_8=0;
   int highTimeFrameB_value_8=0;
   int computed_value_19=0;
   int computed_value_20=0;
   int global_state_19_value=0;
   color rectangleTop_value=0;
   double property_value_8=0.0;
   int highTimeFrameB_value_9=0;
   datetime api_result=0;
   int highTimeFrameB_value_10=0;
   datetime api_result_2=0;
   int highTimeFrameB_value_11=0;
   int highTimeFrameB_value_12=0;
   datetime selected_value=0;
   double selected_value_2=0.0;
   datetime selected_value_3=0;
   double selected_value_4=0.0;
   double selected_value_5=0.0;
   double selected_value_6=0.0;
   long selected_value_7=0;
   double selected_value_8=0.0;
   int selected_value_9=0;
   int selected_value_10=0;

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