Gorilla EA
Похожие материалы по тегам
Сообщите нам, если считаете, что материал размещён без разрешения.
Сообщить о материале
Обращение по товару «gorilla ea v6 monster@lifeindreamsworld.mq4» отправится на рассмотрение. Укажите контакт для ответа и опишите причину.
О программе
Этот исходник представляет собой торговый советник для MetaTrader 4, написанный на языке MQL4. Советник предназначен для автоматической торговли на одном символе и объединяет в себе несколько логических блоков, которые в коде обозначены как отдельные стратегии. В основе лежит управление серией ордеров с увеличением объёма после определённого движения цены против позиции, а также настройки тейк-профита, трейлинг-стопа и ограничения риска по эквити. Советник использует стандартные торговые функции MQL4 для открытия, закрытия и модификации ордеров.
В коде присутствует информационная панель, которая выводит на график сведения о балансе, эквити, количестве открытых ордеров и сигналах нескольких технических индикаторов (MACD, RSI, Stochastic, CCI, MA) на разных таймфреймах. Панель не влияет на торговые решения, а служит для визуального отображения текущей рыночной ситуации. Также реализована функция контроля достижения заданного прироста эквити: при превышении порога советник закрывает все позиции, отправляет уведомление и удаляет себя с графика.
Советник имеет несколько групп входных параметров, которые позволяют настраивать базовый лот, шаг усреднения, множитель лота, максимальное количество одновременно открытых ордеров, уровни тейк-профита и трейлинг-стопа, а также параметры управления капиталом и ограничения риска. Некоторые параметры продублированы для разных логических блоков, что даёт возможность независимой настройки каждой части. Все настройки вынесены во внешние переменные и доступны для изменения перед запуском.
Настройки программы
| Настройка | Описание |
|---|---|
| t1 | Заголовок настроек — Текстовый разделитель для группировки основных настроек советника. |
| теперь можно и микролоты 0.01 при этом если стоит 0.1 то следующий лот в серии будет 0.16 (Lots) | теперь можно и микролоты 0.01 при этом если стоит 0.1 то следующий лот в серии будет 0.16 — Базовый торговый объём для первого ордера в серии. Может быть дробным, включая микролоты. |
| умножение лотов в серии по експоненте для вывода в безубыток. первый лот 0.1, серия: 0.15, 0.26, 0.4 (LotExponent) | умножение лотов в серии по експоненте для вывода в безубыток. первый лот 0.1, серия: 0.15, 0.26, 0.4 — Множитель объёма для последующих ордеров в серии. Используется при расчёте лота для каждого нового ордера после первого. |
| 2 - микролоты 0.01, 1 - мини лоты 0.1, 0 - нормальные лоты 1.0 (lotdecimal) | 2 - микролоты 0.01, 1 - мини лоты 0.1, 0 - нормальные лоты 1.0 — Определяет точность округления торгового объёма: 2 — микролоты (0.01), 1 — мини-лоты (0.1), 0 — стандартные лоты (1.0). |
| шаг колена- был 30 (PipStep) | шаг колена- был 30 — Расстояние в пунктах от последнего открытого ордера, после которого разрешается открытие следующего ордера в серии. |
| ограничение макс лота (MaxLots) | ограничение макс лота — Максимально допустимый торговый объём. Если рассчитанный лот превышает это значение, он ограничивается. |
| ММ - манименеджмент (MM) | ММ - манименеджмент — Включает автоматический расчёт торгового объёма в зависимости от размера баланса счёта. При отключении используется фиксированный лот. |
| тейк профит (TakeProfit) | тейк профит — Уровень тейк-профита в пунктах от средней цены открытых позиций. Используется для закрытия серии ордеров при достижении заданной прибыли. |
| использовать риск в процентах (UseEquityStop) | использовать риск в процентах — Включает контроль риска по эквити. При включении советник отслеживает убыток и закрывает позиции при превышении заданного процента. |
| риск в процентах от депозита (TotalEquityRisk) | риск в процентах от депозита — Максимально допустимый риск в процентах от эквити. При превышении убытка советник закрывает все позиции. |
| использовать трейлинг стоп (UseTrailingStop) | использовать трейлинг стоп — Включает автоматическое подтягивание стоп-лосса за ценой при достижении прибыли. |
| TrailStart | Начало трейлинга — Уровень прибыли в пунктах, при достижении которого активируется трейлинг-стоп. |
| TrailStop | Шаг трейлинга — Расстояние в пунктах, на которое трейлинг-стоп отстаёт от текущей цены. |
| проскальзывание (slip) | проскальзывание — Максимально допустимое проскальзывание цены в пунктах при открытии и закрытии ордеров. |
| t3 | Заголовок настроек Hilo — Текстовый разделитель для группировки настроек блока Hilo. |
| максимально количество одновременно открытых ордеров (MaxTrades_Hilo) | максимально количество одновременно открытых ордеров — Максимальное количество одновременно открытых ордеров для блока Hilo. |
| магик (MagicNumber_Hilo) | магик — Уникальный идентификатор (магическое число) для ордеров, открываемых блоком Hilo. Позволяет советнику отличать свои ордера от чужих. |
| t4 | Заголовок настроек блока 1.5 — Текстовый разделитель для группировки настроек блока 1.5. |
| MaxTrades_15 | Максимум ордеров (блок 1.5) — Максимальное количество одновременно открытых ордеров для блока, обозначенного как 1.5. |
| g_magic_176_15 | Магическое число (блок 1.5) — Уникальный идентификатор (магическое число) для ордеров, открываемых блоком 1.5. |
| t5 | Заголовок настроек блока 1.6 — Текстовый разделитель для группировки настроек блока 1.6. |
| MaxTrades_16 | Максимум ордеров (блок 1.6) — Максимальное количество одновременно открытых ордеров для блока, обозначенного как 1.6. |
| g_magic_176_16 | Магическое число (блок 1.6) — Уникальный идентификатор (магическое число) для ордеров, открываемых блоком 1.6. |
Поиск по коду файла
extern string t1 = "SETTINGS";
extern double Lots = 0.01; // теперь можно и микролоты 0.01 при этом если стоит 0.1 то следующий лот в серии будет 0.16
extern double LotExponent = 1.55; // умножение лотов в серии по експоненте для вывода в безубыток. первый лот 0.1, серия: 0.15, 0.26, 0.43 ...
extern int lotdecimal = 2; // 2 - микролоты 0.01, 1 - мини лоты 0.1, 0 - нормальные лоты 1.0
extern double PipStep = 30.0; // шаг колена- был 30
extern double MaxLots = 0.01; // ограничение макс лота
extern bool MM =FALSE; // ММ - манименеджмент
extern double TakeProfit = 100.0; // тейк профит
extern bool UseEquityStop = false; // использовать риск в процентах
extern double TotalEquityRisk = 20.0; // риск в процентах от депозита
extern bool UseTrailingStop = true;// использовать трейлинг стоп
extern double TrailStart = 13.0;
extern double TrailStop = 3.0;
extern double slip = 5.0; // проскальзывание
extern string t3 = "SETTINGS for Gorilla EA V2 ";
double Lots_Hilo; // задание всех лотов через 1 переменную
double LotExponent_Hilo;
int lotdecimal_Hilo;
double TakeProfit_Hilo; // тейк профит
extern int MaxTrades_Hilo = 10; // максимально количество одновременно открытых ордеров
bool UseEquityStop_Hilo; // использовать риск в процентах
double TotalEquityRisk_Hilo; // риск в процентах от депозита
bool UseTimeOut_Hilo = FALSE; // использовать анулирование ордеров по времени
double MaxTradeOpenHours_Hilo = 48.0; // через колько часов анулировать висячие ордера
bool UseTrailingStop_Hilo; // использовать трейлинг стоп
double Stoploss_Hilo = 40.0; // Эти параметра работают!!!
double TrailStart_Hilo;
double TrailStop_Hilo;
double PipStep_Hilo; // шаг колена- был 30
double slip_Hilo; // проскальзывание
extern int MagicNumber_Hilo = 10278; // магик
double PriceTarget_Hilo, StartEquity_Hilo, BuyTarget_Hilo, SellTarget_Hilo, Balans, Sredstva ;
double AveragePrice_Hilo, SellLimit_Hilo, BuyLimit_Hilo ;
double LastBuyPrice_Hilo, LastSellPrice_Hilo, Spread_Hilo;
bool flag_Hilo;
string EAName_Hilo = "Gorilla EA V2";
int timeprev_Hilo = 0, expiration_Hilo;
int NumOfTrades_Hilo = 0;
double iLots_Hilo;
int cnt_Hilo = 0, total_Hilo;
double Stopper_Hilo = 0.0;
bool TradeNow_Hilo = FALSE, LongTrade_Hilo = FALSE, ShortTrade_Hilo = FALSE;
int ticket_Hilo;
bool NewOrdersPlaced_Hilo = FALSE;
double AccountEquityHighAmt_Hilo, PrevEquity_Hilo;
extern string t4 = "Gorilla EA V2";
double LotExponent_15;
double Lots_15;
int lotdecimal_15;
double TakeProfit_15;
bool UseEquityStop_15; // использовать риск в процентах
double TotalEquityRisk_15; // риск в процентах от депозита
extern int MaxTrades_15 = 10;
int OpenNewTF_15 = 60;
int gi_unused_88_15;
bool UseTrailingStop_15; // использовать трейлинг стоп
double Stoploss_15 = 40.0; // Эти параметры работают!!!
double TrailStart_15;
double TrailStop_15;
bool UseTimeOut_15 = FALSE; // использовать анулирование ордеров по времени
double MaxTradeOpenHours_15 = 48.0; // через колько часов анулировать висячие ордера
double PipStep_15; //30
double slip_15;
extern int g_magic_176_15 = 22324;
double g_price_180_15;
double gd_188_15;
double gd_unused_196_15;
double gd_unused_204_15;
double g_price_212_15;
double g_bid_220_15;
double g_ask_228_15;
double gd_236_15;
double gd_244_15;
double gd_260_15;
bool gi_268_15;
string gs_ilan_272_15 = "Gorilla EA V2";
int gi_280_15 = 0;
int gi_284_15;
int gi_288_15 = 0;
double gd_292_15;
int g_pos_300_15 = 0;
int gi_304_15;
double gd_308_15 = 0.0;
bool gi_316_15 = FALSE;
bool gi_320_15 = FALSE;
bool gi_324_15 = FALSE;
int gi_328_15;
bool gi_332_15 = FALSE;
double gd_336_15;
double gd_344_15;
datetime time_15=1;
extern string t5 = "SETTINGS for Gorilla EA V2";
double LotExponent_16;
double Lots_16;
int lotdecimal_16;
double TakeProfit_16;
extern int MaxTrades_16 = 10;
bool UseEquityStop_16; // использовать риск в процентах
double TotalEquityRisk_16; // риск в процентах от депозита
int OpenNewTF_16 = 1;
bool UseTrailingStop_16;
double Stoploss_16 = 40.0; // Эти три параметра работают!!!
double TrailStart_16;
double TrailStop_16;
bool UseTimeOut_16 = FALSE;
double MaxTradeOpenHours_16 = 48.0;
double PipStep_16;//30
double slip_16;
extern int g_magic_176_16 = 23794;
double g_price_180_16;
double gd_188_16;
double gd_unused_196_16;
double gd_unused_204_16;
double g_price_212_16;
double g_bid_220_16;
double g_ask_228_16;
double gd_236_16;
double gd_244_16;
double gd_260_16;
bool gi_268_16;
string gs_ilan_272_16 = "Gorilla EA V2";
int gi_280_16 = 0;
int gi_284_16;
int gi_288_16 = 0;
double gd_292_16;
int g_pos_300_16 = 0;
int gi_304_16;
double gd_308_16 = 0.0;
bool gi_316_16 = FALSE;
bool gi_320_16 = FALSE;
bool gi_324_16 = FALSE;
int gi_328_16;
bool gi_332_16 = FALSE;
double gd_336_16;
double gd_344_16;
datetime time_16=1;
double gd_308;
int g_timeframe_492 = PERIOD_M1;
int g_timeframe_496 = PERIOD_M5;
int g_timeframe_500 = PERIOD_M15;
int g_timeframe_504 = PERIOD_M30;
int g_timeframe_508 = PERIOD_H1;
int g_timeframe_512 = PERIOD_H4;
int g_timeframe_516 = PERIOD_D1;
bool g_corner_528 = TRUE;
int gi_532 = 0;
int gi_536 = 10;
int g_window_540 = 0;
bool gi_552 = TRUE;
bool gi_556 = TRUE;
bool gi_560 = FALSE;
int g_color_564 = Gray;
int g_color_568 = Gray;
int g_color_572 = Gray;
int g_color_576 = DarkOrange;
int g_color_580 = DarkOrange;
int gi_584 = 65280;
int gi_588 = 17919;
int gi_592 = 65280;
int gi_596 = 17919;
int gi_608 = 65280;
int gi_612 = 255;
int gi_616 = 42495;
int g_period_628 = 8;
int g_period_632 = 17;
int g_period_636 = 9;
int g_applied_price_640 = PRICE_CLOSE;
int gi_652 = 65280;
int gi_656 = 4678655;
int gi_660 = 32768;
int gi_664 = 255;
string gs_unused_668 = "<<<< STR Indicator Settings >>>>>>>>>>>>>";
string gs_unused_676 = "<<<< RSI Settings >>>>>>>>>>>>>";
int g_period_684 = 9;
int g_applied_price_688 = PRICE_CLOSE;
string gs_unused_692 = "<<<< CCI Settings >>>>>>>>>>>>>>";
int g_period_700 = 13;
int g_applied_price_704 = PRICE_CLOSE;
string gs_unused_708 = "<<<< STOCH Settings >>>>>>>>>>>";
int g_period_716 = 5;
int g_period_720 = 3;
int g_slowing_724 = 3;
int g_ma_method_728 = MODE_EMA;
string gs_unused_732 = "<<<< STR Colors >>>>>>>>>>>>>>>>";
int gi_740 = 65280;
int gi_744 = 255;
int gi_748 = 42495;
string gs_unused_752 = "<<<< MA Settings >>>>>>>>>>>>>>";
int g_period_760 = 5;
int g_period_764 = 9;
int g_ma_method_768 = MODE_EMA;
int g_applied_price_772 = PRICE_CLOSE;
string gs_unused_776 = "<<<< MA Colors >>>>>>>>>>>>>>";
int gi_784 = 65280;
int gi_788 = 255;
bool gi_792;
bool gi_796;
string gs_800;
double gd_808;
double g_acc_number_816;
double g_str2dbl_824;
double g_str_len_832;
double gd_848;
double gd_856;
double g_period_864;
double g_period_872;
double g_period_880;
double gd_888;
double gd_896;
double gd_904;
double gd_912;
double g_shift_920;
double gd_928;
double gd_936;
double gd_960;
double gd_968;
int g_bool_976;
double gd_980;
bool g_bool_988;
int gi_992;
string txt,txt1;
string txt2="";
string txt3="";
color col = ForestGreen;
string tmp_str = "";
int handle_Write = 0;
int handle_read = 0;
string tmp_str_read = "";
double dbl_Write_deposite = 0;
extern string t6 = "SETTINGS for Variable Earnings";
extern double Variable_Earnings = 20;
int init()
{
// код доступен только после оплаты
}
int deinit() {
{
ObjectDelete("cja");
ObjectDelete("Signalprice");
ObjectDelete("SIG_BARS_TF1");
ObjectDelete("SIG_BARS_TF2");
ObjectDelete("SIG_BARS_TF3");
ObjectDelete("SIG_BARS_TF4");
ObjectDelete("SIG_BARS_TF5");
ObjectDelete("SIG_BARS_TF6");
ObjectDelete("SIG_BARS_TF7");
ObjectDelete("SSignalMACD_TEXT");
ObjectDelete("SSignalMACDM1");
ObjectDelete("SSignalMACDM5");
ObjectDelete("SSignalMACDM15");
ObjectDelete("SSignalMACDM30");
ObjectDelete("SSignalMACDH1");
ObjectDelete("SSignalMACDH4");
ObjectDelete("SSignalMACDD1");
ObjectDelete("SSignalSTR_TEXT");
ObjectDelete("SignalSTRM1");
ObjectDelete("SignalSTRM5");
ObjectDelete("SignalSTRM15");
ObjectDelete("SignalSTRM30");
ObjectDelete("SignalSTRH1");
ObjectDelete("SignalSTRH4");
ObjectDelete("SignalSTRD1");
ObjectDelete("SignalEMA_TEXT");
ObjectDelete("SignalEMAM1");
ObjectDelete("SignalEMAM5");
ObjectDelete("SignalEMAM15");
ObjectDelete("SignalEMAM30");
ObjectDelete("SignalEMAH1");
ObjectDelete("SignalEMAH4");
ObjectDelete("SignalEMAD1");
ObjectDelete("SIG_DETAIL_1");
ObjectDelete("SIG_DETAIL_2");
ObjectDelete("SIG_DETAIL_3");
ObjectDelete("SIG_DETAIL_4");
ObjectDelete("SIG_DETAIL_5");
ObjectDelete("SIG_DETAIL_6");
ObjectDelete("SIG_DETAIL_7");
ObjectDelete("SIG_DETAIL_8");
ObjectDelete("Lable");
ObjectDelete("Lable1");
ObjectDelete("Lable2");
ObjectDelete("Lable3");
}
return (0);
}
int start()
{
// код доступен только после оплаты
}
if( dbl_Write_deposite == 0 )
{
tmp_str = DoubleToString(AccountEquity(),2);
handle_Write=FileOpen("Write_deposite.txt", FILE_READ|FILE_WRITE, ';');
if(handle_Write>0)
{
FileSeek(handle_Write,0, SEEK_CUR);
FileWrite(handle_Write,tmp_str);
FileClose(handle_Write);
handle_Write = 0;
}
}
if(
( ( AccountEquity() >= NormalizeDouble(( dbl_Write_deposite + Variable_Earnings ),2) ) && ( dbl_Write_deposite != 0 ) )
)
{
if( ObjectFind(0,"close_all") != 0 ) {Obj_Label("close_all" ,"close_all" ,White,5,5 ,7,0); }
tmp_str = DoubleToString(AccountEquity(),2);
handle_Write=FileOpen("Write_deposite.txt", FILE_READ|FILE_WRITE, ';');
if(handle_Write>0)
{
FileSeek(handle_Write,0, SEEK_CUR);
FileWrite(handle_Write,tmp_str);
FileClose(handle_Write);
handle_Write = 0;
}
}
if( ( Total_buy_pos() == 0 ) && ( Total_sell_pos() == 0 ) && ( Total_LIMIT_STOP() == 0 ) && ( ObjectFind(0,"close_all") == 0 ) )
{
SendMail("account earnings reached, all trades closed","account earnings reached, all trades closed");
if( dbl_Write_deposite != 0 )
{
tmp_str = "0";
handle_Write=FileOpen("Write_deposite.txt", FILE_READ|FILE_WRITE, ';');
if(handle_Write>0)
{
FileSeek(handle_Write,0, SEEK_CUR);
FileWrite(handle_Write,tmp_str);
FileClose(handle_Write);
handle_Write = 0;
}
}
ObjectDelete(0,"close_all");
ExpertRemove();
}
if( ObjectFind(0,"close_all") == 0 )
{
Close_BUY();
Close_SELL();
Delete_limit_stop();
return(0);
}
handle_read = 0;
tmp_str_read = "";
handle_read = FileOpen("Write_deposite.txt",FILE_READ);
if(handle_read>0)
{
tmp_str_read = FileReadString(handle_read,7);
dbl_Write_deposite = StrToDouble(tmp_str_read);
FileClose(handle_read);
}
int counted_bars=IndicatorCounted();
if (Lots > MaxLots) Lots = MaxLots; //ограничение лотов
{
Comment("instagram:@gorilla.ea"
+ "\n"
+ "Gorilla EA"
+ "\n"
+ "________________________________"
+ "\n"
+ "Broker: " + AccountCompany()
+ "\n"
+ "Brokers Time: " + TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS)
+ "\n"
+ "________________________________"
+ "\n"
+ "Name: " + AccountName()
+ "\n"
+ "Account Number " + AccountNumber()
+ "\n"
+ "Account Currency: " + AccountCurrency()
+ "\n"
+ "_______________________________"
+ "\n"
+ "Open Orders Ilan_Hilo: " + CountTrades_Hilo()
+ "\n"
+ "Open Orders Ilan_1.5 : " + CountTrades_15()
+ "\n"
+ "Open Orders Ilan_1.6 : " + CountTrades_16()
+ "\n"
+ "ALL ORDERS: " + OrdersTotal()
+ "\n"
+ "_______________________________"
+ "\n"
+ "Account BALANCE: " + DoubleToStr(AccountBalance(), 2)
+ "\n"
+ "Account EQUITY: " + DoubleToStr(AccountEquity(), 2)
+ "\n"
+ "instagram:@gorilla.ea");
}
Balans = NormalizeDouble( AccountBalance(),2);
Sredstva = NormalizeDouble(AccountEquity(),2);
if (Sredstva >= Balans/6*5) col = DodgerBlue;
if (Sredstva >= Balans/6*4 && Sredstva < Balans/6*5)col = DeepSkyBlue;
if (Sredstva >= Balans/6*3 && Sredstva < Balans/6*4)col = Gold;
if (Sredstva >= Balans/6*2 && Sredstva < Balans/6*3)col = OrangeRed;
if (Sredstva >= Balans/6 && Sredstva < Balans/6*2)col = Crimson;
if (Sredstva < Balans/5 )col = Red;
ObjectDelete("Lable2");
ObjectCreate("Lable2",OBJ_LABEL,0,0,1.0);
ObjectSet("Lable2", OBJPROP_CORNER, 3);
ObjectSet("Lable2", OBJPROP_XDISTANCE, 153);
ObjectSet("Lable2", OBJPROP_YDISTANCE, 31);
txt2=(DoubleToStr(AccountBalance(), 2));
ObjectSetText("Lable2","Account BALANCE: "+txt2+"",16,"Times New Roman",DodgerBlue);
ObjectDelete("Lable3");
ObjectCreate("Lable3",OBJ_LABEL,0,0,1.0);
ObjectSet("Lable3", OBJPROP_CORNER, 3);
ObjectSet("Lable3", OBJPROP_XDISTANCE, 153);
ObjectSet("Lable3", OBJPROP_YDISTANCE, 11);
txt3=(DoubleToStr(AccountEquity(), 2));
ObjectSetText("Lable3","Account EQUITY: "+txt3+"",16,"Times New Roman",col);
{
int li_0;
int li_4;
int li_8;
int li_12;
int li_16;
int li_20;
int li_24;
color l_color_28;
color l_color_32;
color l_color_36;
color l_color_40;
color l_color_44;
color l_color_48;
color l_color_52;
string ls_unused_56;
color l_color_64;
color l_color_68;
color l_color_72;
color l_color_76;
color l_color_80;
color l_color_84;
color l_color_88;
color l_color_92;
string ls_unused_96;
color l_color_104;
color l_color_108;
/*
double ld_968;
double l_istochastic_976;
double l_istochastic_984;
double l_istochastic_992;
double l_istochastic_1000;
double l_ima_1008;
double l_ima_1016;
double l_ima_1024;
double l_iclose_1032;
double l_iclose_1040;
double l_iclose_1048;
double l_iclose_1056;
double l_iopen_1064;
*/
int l_ind_counted_112 = IndicatorCounted();
string l_text_116 = "";
string l_text_124 = "";
string l_text_132 = "";
string l_text_140 = "";
string l_text_148 = "";
string l_text_156 = "";
string l_text_164 = "";
if (g_timeframe_492 == PERIOD_M1) l_text_116 = "M1";
if (g_timeframe_492 == PERIOD_M5) l_text_116 = "M5";
if (g_timeframe_492 == PERIOD_M15) l_text_116 = "M15";
if (g_timeframe_492 == PERIOD_M30) l_text_116 = "M30";
if (g_timeframe_492 == PERIOD_H1) l_text_116 = "H1";
if (g_timeframe_492 == PERIOD_H4) l_text_116 = "H4";
if (g_timeframe_492 == PERIOD_D1) l_text_116 = "D1";
if (g_timeframe_492 == PERIOD_W1) l_text_116 = "W1";
if (g_timeframe_492 == PERIOD_MN1) l_text_116 = "MN";
if (g_timeframe_496 == PERIOD_M1) l_text_124 = "M1";
if (g_timeframe_496 == PERIOD_M5) l_text_124 = "M5";
if (g_timeframe_496 == PERIOD_M15) l_text_124 = "M15";
if (g_timeframe_496 == PERIOD_M30) l_text_124 = "M30";
if (g_timeframe_496 == PERIOD_H1) l_text_124 = "H1";
if (g_timeframe_496 == PERIOD_H4) l_text_124 = "H4";
if (g_timeframe_496 == PERIOD_D1) l_text_124 = "D1";
if (g_timeframe_496 == PERIOD_W1) l_text_124 = "W1";
if (g_timeframe_496 == PERIOD_MN1) l_text_124 = "MN";
if (g_timeframe_500 == PERIOD_M1) l_text_132 = "M1";
if (g_timeframe_500 == PERIOD_M5) l_text_132 = "M5";
if (g_timeframe_500 == PERIOD_M15) l_text_132 = "M15";
if (g_timeframe_500 == PERIOD_M30) l_text_132 = "M30";
if (g_timeframe_500 == PERIOD_H1) l_text_132 = "H1";
if (g_timeframe_500 == PERIOD_H4) l_text_132 = "H4";
if (g_timeframe_500 == PERIOD_D1) l_text_132 = "D1";
if (g_timeframe_500 == PERIOD_W1) l_text_132 = "W1";
if (g_timeframe_500 == PERIOD_MN1) l_text_132 = "MN";
if (g_timeframe_504 == PERIOD_M1) l_text_140 = "M1";
if (g_timeframe_504 == PERIOD_M5) l_text_140 = "M5";
if (g_timeframe_504 == PERIOD_M15) l_text_140 = "M15";
if (g_timeframe_504 == PERIOD_M30) l_text_140 = "M30";
if (g_timeframe_504 == PERIOD_H1) l_text_140 = "H1";
if (g_timeframe_504 == PERIOD_H4) l_text_140 = "H4";
if (g_timeframe_504 == PERIOD_D1) l_text_140 = "D1";
if (g_timeframe_504 == PERIOD_W1) l_text_140 = "W1";
if (g_timeframe_504 == PERIOD_MN1) l_text_140 = "MN";
if (g_timeframe_508 == PERIOD_M1) l_text_148 = "M1";
if (g_timeframe_508 == PERIOD_M5) l_text_148 = "M5";
if (g_timeframe_508 == PERIOD_M15) l_text_148 = "M15";
if (g_timeframe_508 == PERIOD_M30) l_text_148 = "M30";
if (g_timeframe_508 == PERIOD_H1) l_text_148 = "H1";
if (g_timeframe_508 == PERIOD_H4) l_text_148 = "H4";
if (g_timeframe_508 == PERIOD_D1) l_text_148 = "D1";
if (g_timeframe_508 == PERIOD_W1) l_text_148 = "W1";
if (g_timeframe_508 == PERIOD_MN1) l_text_148 = "MN";
if (g_timeframe_512 == PERIOD_M1) l_text_156 = "M1";
if (g_timeframe_512 == PERIOD_M5) l_text_156 = "M5";
if (g_timeframe_512 == PERIOD_M15) l_text_156 = "M15";
if (g_timeframe_512 == PERIOD_M30) l_text_156 = "M30";
if (g_timeframe_512 == PERIOD_H1) l_text_156 = "H1";
if (g_timeframe_512 == PERIOD_H4) l_text_156 = "H4";
if (g_timeframe_512 == PERIOD_D1) l_text_156 = "D1";
if (g_timeframe_512 == PERIOD_W1) l_text_156 = "W1";
if (g_timeframe_512 == PERIOD_MN1) l_text_156 = "MN";
if (g_timeframe_516 == PERIOD_M1) l_text_164 = "M1";
if (g_timeframe_516 == PERIOD_M5) l_text_164 = "M5";
if (g_timeframe_516 == PERIOD_M15) l_text_164 = "M15";
if (g_timeframe_516 == PERIOD_M30) l_text_164 = "M30";
if (g_timeframe_516 == PERIOD_H1) l_text_164 = "H1";
if (g_timeframe_516 == PERIOD_H4) l_text_164 = "H4";
if (g_timeframe_516 == PERIOD_D1) l_text_164 = "D1";
if (g_timeframe_516 == PERIOD_W1) l_text_164 = "W1";
if (g_timeframe_516 == PERIOD_MN1) l_text_164 = "MN";
if (g_timeframe_492 == PERIOD_M15) li_0 = -2;
if (g_timeframe_492 == PERIOD_M30) li_0 = -2;
if (g_timeframe_496 == PERIOD_M15) li_4 = -2;
if (g_timeframe_496 == PERIOD_M30) li_4 = -2;
if (g_timeframe_500 == PERIOD_M15) li_8 = -2;
if (g_timeframe_500 == PERIOD_M30) li_8 = -2;
if (g_timeframe_504 == PERIOD_M15) li_12 = -2;
if (g_timeframe_504 == PERIOD_M30) li_12 = -2;
if (g_timeframe_508 == PERIOD_M15) li_16 = -2;
if (g_timeframe_508 == PERIOD_M30) li_16 = -2;
if (g_timeframe_512 == PERIOD_M15) li_20 = -2;
if (g_timeframe_512 == PERIOD_M30) li_20 = -2;
if (g_timeframe_516 == PERIOD_M15) li_24 = -2;
if (g_timeframe_512 == PERIOD_M30) li_24 = -2;
if (gi_532 < 0) return (0);
ObjectDelete("SIG_BARS_TF1");
ObjectCreate("SIG_BARS_TF1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SIG_BARS_TF1", l_text_116, 7, "Arial Bold", g_color_564);
ObjectSet("SIG_BARS_TF1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SIG_BARS_TF1", OBJPROP_XDISTANCE, gi_536 + 134 + li_0);
ObjectSet("SIG_BARS_TF1", OBJPROP_YDISTANCE, gi_532 + 25);
ObjectDelete("SIG_BARS_TF2");
ObjectCreate("SIG_BARS_TF2", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SIG_BARS_TF2", l_text_124, 7, "Arial Bold", g_color_564);
ObjectSet("SIG_BARS_TF2", OBJPROP_CORNER, g_corner_528);
ObjectSet("SIG_BARS_TF2", OBJPROP_XDISTANCE, gi_536 + 114 + li_4);
ObjectSet("SIG_BARS_TF2", OBJPROP_YDISTANCE, gi_532 + 25);
ObjectDelete("SIG_BARS_TF3");
ObjectCreate("SIG_BARS_TF3", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SIG_BARS_TF3", l_text_132, 7, "Arial Bold", g_color_564);
ObjectSet("SIG_BARS_TF3", OBJPROP_CORNER, g_corner_528);
ObjectSet("SIG_BARS_TF3", OBJPROP_XDISTANCE, gi_536 + 94 + li_8);
ObjectSet("SIG_BARS_TF3", OBJPROP_YDISTANCE, gi_532 + 25);
ObjectDelete("SIG_BARS_TF4");
ObjectCreate("SIG_BARS_TF4", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SIG_BARS_TF4", l_text_140, 7, "Arial Bold", g_color_564);
ObjectSet("SIG_BARS_TF4", OBJPROP_CORNER, g_corner_528);
ObjectSet("SIG_BARS_TF4", OBJPROP_XDISTANCE, gi_536 + 74 + li_12);
ObjectSet("SIG_BARS_TF4", OBJPROP_YDISTANCE, gi_532 + 25);
ObjectDelete("SIG_BARS_TF5");
ObjectCreate("SIG_BARS_TF5", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SIG_BARS_TF5", l_text_148, 7, "Arial Bold", g_color_564);
ObjectSet("SIG_BARS_TF5", OBJPROP_CORNER, g_corner_528);
ObjectSet("SIG_BARS_TF5", OBJPROP_XDISTANCE, gi_536 + 54 + li_16);
ObjectSet("SIG_BARS_TF5", OBJPROP_YDISTANCE, gi_532 + 25);
ObjectDelete("SIG_BARS_TF6");
ObjectCreate("SIG_BARS_TF6", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SIG_BARS_TF6", l_text_156, 7, "Arial Bold", g_color_564);
ObjectSet("SIG_BARS_TF6", OBJPROP_CORNER, g_corner_528);
ObjectSet("SIG_BARS_TF6", OBJPROP_XDISTANCE, gi_536 + 34 + li_20);
ObjectSet("SIG_BARS_TF6", OBJPROP_YDISTANCE, gi_532 + 25);
ObjectDelete("SIG_BARS_TF7");
ObjectCreate("SIG_BARS_TF7", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SIG_BARS_TF7", l_text_164, 7, "Arial Bold", g_color_564);
ObjectSet("SIG_BARS_TF7", OBJPROP_CORNER, g_corner_528);
ObjectSet("SIG_BARS_TF7", OBJPROP_XDISTANCE, gi_536 + 14 + li_24);
ObjectSet("SIG_BARS_TF7", OBJPROP_YDISTANCE, gi_532 + 25);
string l_text_172 = "";
string l_text_180 = "";
string l_text_188 = "";
string l_text_196 = "";
string l_text_204 = "";
string l_text_212 = "";
string l_text_220 = "";
string ls_unused_228 = "";
string ls_unused_236 = "";
double l_imacd_244 = iMACD(NULL, g_timeframe_492, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_MAIN, 0);
double l_imacd_252 = iMACD(NULL, g_timeframe_492, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_SIGNAL, 0);
double l_imacd_260 = iMACD(NULL, g_timeframe_496, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_MAIN, 0);
double l_imacd_268 = iMACD(NULL, g_timeframe_496, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_SIGNAL, 0);
double l_imacd_276 = iMACD(NULL, g_timeframe_500, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_MAIN, 0);
double l_imacd_284 = iMACD(NULL, g_timeframe_500, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_SIGNAL, 0);
double l_imacd_292 = iMACD(NULL, g_timeframe_504, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_MAIN, 0);
double l_imacd_300 = iMACD(NULL, g_timeframe_504, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_SIGNAL, 0);
double l_imacd_308 = iMACD(NULL, g_timeframe_508, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_MAIN, 0);
double l_imacd_316 = iMACD(NULL, g_timeframe_508, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_SIGNAL, 0);
double l_imacd_324 = iMACD(NULL, g_timeframe_512, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_MAIN, 0);
double l_imacd_332 = iMACD(NULL, g_timeframe_512, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_SIGNAL, 0);
double l_imacd_340 = iMACD(NULL, g_timeframe_516, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_MAIN, 0);
double l_imacd_348 = iMACD(NULL, g_timeframe_516, g_period_628, g_period_632, g_period_636, g_applied_price_640, MODE_SIGNAL, 0);
if (l_imacd_244 > l_imacd_252) {
l_text_196 = "-";
l_color_40 = gi_660;
}
if (l_imacd_244 <= l_imacd_252) {
l_text_196 = "-";
l_color_40 = gi_656;
}
if (l_imacd_244 > l_imacd_252 && l_imacd_244 > 0.0) {
l_text_196 = "-";
l_color_40 = gi_652;
}
if (l_imacd_244 <= l_imacd_252 && l_imacd_244 < 0.0) {
l_text_196 = "-";
l_color_40 = gi_664;
}
if (l_imacd_260 > l_imacd_268) {
l_text_204 = "-";
l_color_44 = gi_660;
}
if (l_imacd_260 <= l_imacd_268) {
l_text_204 = "-";
l_color_44 = gi_656;
}
if (l_imacd_260 > l_imacd_268 && l_imacd_260 > 0.0) {
l_text_204 = "-";
l_color_44 = gi_652;
}
if (l_imacd_260 <= l_imacd_268 && l_imacd_260 < 0.0) {
l_text_204 = "-";
l_color_44 = gi_664;
}
if (l_imacd_276 > l_imacd_284) {
l_text_212 = "-";
l_color_48 = gi_660;
}
if (l_imacd_276 <= l_imacd_284) {
l_text_212 = "-";
l_color_48 = gi_656;
}
if (l_imacd_276 > l_imacd_284 && l_imacd_276 > 0.0) {
l_text_212 = "-";
l_color_48 = gi_652;
}
if (l_imacd_276 <= l_imacd_284 && l_imacd_276 < 0.0) {
l_text_212 = "-";
l_color_48 = gi_664;
}
if (l_imacd_292 > l_imacd_300) {
l_text_220 = "-";
l_color_52 = gi_660;
}
if (l_imacd_292 <= l_imacd_300) {
l_text_220 = "-";
l_color_52 = gi_656;
}
if (l_imacd_292 > l_imacd_300 && l_imacd_292 > 0.0) {
l_text_220 = "-";
l_color_52 = gi_652;
}
if (l_imacd_292 <= l_imacd_300 && l_imacd_292 < 0.0) {
l_text_220 = "-";
l_color_52 = gi_664;
}
if (l_imacd_308 > l_imacd_316) {
l_text_180 = "-";
l_color_32 = gi_660;
}
if (l_imacd_308 <= l_imacd_316) {
l_text_180 = "-";
l_color_32 = gi_656;
}
if (l_imacd_308 > l_imacd_316 && l_imacd_308 > 0.0) {
l_text_180 = "-";
l_color_32 = gi_652;
}
if (l_imacd_308 <= l_imacd_316 && l_imacd_308 < 0.0) {
l_text_180 = "-";
l_color_32 = gi_664;
}
if (l_imacd_324 > l_imacd_332) {
l_text_188 = "-";
l_color_36 = gi_660;
}
if (l_imacd_324 <= l_imacd_332) {
l_text_188 = "-";
l_color_36 = gi_656;
}
if (l_imacd_324 > l_imacd_332 && l_imacd_324 > 0.0) {
l_text_188 = "-";
l_color_36 = gi_652;
}
if (l_imacd_324 <= l_imacd_332 && l_imacd_324 < 0.0) {
l_text_188 = "-";
l_color_36 = gi_664;
}
if (l_imacd_340 > l_imacd_348) {
l_text_172 = "-";
l_color_28 = gi_660;
}
if (l_imacd_340 <= l_imacd_348) {
l_text_172 = "-";
l_color_28 = gi_656;
}
if (l_imacd_340 > l_imacd_348 && l_imacd_340 > 0.0) {
l_text_172 = "-";
l_color_28 = gi_652;
}
if (l_imacd_340 <= l_imacd_348 && l_imacd_340 < 0.0) {
l_text_172 = "-";
l_color_28 = gi_664;
}
ObjectDelete("SSignalMACD_TEXT");
ObjectCreate("SSignalMACD_TEXT", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalMACD_TEXT", "MACD", 6, "Tahoma Narrow", g_color_568);
ObjectSet("SSignalMACD_TEXT", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalMACD_TEXT", OBJPROP_XDISTANCE, gi_536 + 153);
ObjectSet("SSignalMACD_TEXT", OBJPROP_YDISTANCE, gi_532 + 35);
ObjectDelete("SSignalMACDM1");
ObjectCreate("SSignalMACDM1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalMACDM1", l_text_196, 45, "Tahoma Narrow", l_color_40);
ObjectSet("SSignalMACDM1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalMACDM1", OBJPROP_XDISTANCE, gi_536 + 130);
ObjectSet("SSignalMACDM1", OBJPROP_YDISTANCE, gi_532 + 2);
ObjectDelete("SSignalMACDM5");
ObjectCreate("SSignalMACDM5", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalMACDM5", l_text_204, 45, "Tahoma Narrow", l_color_44);
ObjectSet("SSignalMACDM5", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalMACDM5", OBJPROP_XDISTANCE, gi_536 + 110);
ObjectSet("SSignalMACDM5", OBJPROP_YDISTANCE, gi_532 + 2);
ObjectDelete("SSignalMACDM15");
ObjectCreate("SSignalMACDM15", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalMACDM15", l_text_212, 45, "Tahoma Narrow", l_color_48);
ObjectSet("SSignalMACDM15", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalMACDM15", OBJPROP_XDISTANCE, gi_536 + 90);
ObjectSet("SSignalMACDM15", OBJPROP_YDISTANCE, gi_532 + 2);
ObjectDelete("SSignalMACDM30");
ObjectCreate("SSignalMACDM30", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalMACDM30", l_text_220, 45, "Tahoma Narrow", l_color_52);
ObjectSet("SSignalMACDM30", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalMACDM30", OBJPROP_XDISTANCE, gi_536 + 70);
ObjectSet("SSignalMACDM30", OBJPROP_YDISTANCE, gi_532 + 2);
ObjectDelete("SSignalMACDH1");
ObjectCreate("SSignalMACDH1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalMACDH1", l_text_180, 45, "Tahoma Narrow", l_color_32);
ObjectSet("SSignalMACDH1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalMACDH1", OBJPROP_XDISTANCE, gi_536 + 50);
ObjectSet("SSignalMACDH1", OBJPROP_YDISTANCE, gi_532 + 2);
ObjectDelete("SSignalMACDH4");
ObjectCreate("SSignalMACDH4", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalMACDH4", l_text_188, 45, "Tahoma Narrow", l_color_36);
ObjectSet("SSignalMACDH4", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalMACDH4", OBJPROP_XDISTANCE, gi_536 + 30);
ObjectSet("SSignalMACDH4", OBJPROP_YDISTANCE, gi_532 + 2);
ObjectDelete("SSignalMACDD1");
ObjectCreate("SSignalMACDD1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalMACDD1", l_text_172, 45, "Tahoma Narrow", l_color_28);
ObjectSet("SSignalMACDD1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalMACDD1", OBJPROP_XDISTANCE, gi_536 + 10);
ObjectSet("SSignalMACDD1", OBJPROP_YDISTANCE, gi_532 + 2);
double l_irsi_356 = iRSI(NULL, g_timeframe_516, g_period_684, g_applied_price_688, 0);
double l_irsi_364 = iRSI(NULL, g_timeframe_512, g_period_684, g_applied_price_688, 0);
double l_irsi_372 = iRSI(NULL, g_timeframe_508, g_period_684, g_applied_price_688, 0);
double l_irsi_380 = iRSI(NULL, g_timeframe_504, g_period_684, g_applied_price_688, 0);
double l_irsi_388 = iRSI(NULL, g_timeframe_500, g_period_684, g_applied_price_688, 0);
double l_irsi_396 = iRSI(NULL, g_timeframe_496, g_period_684, g_applied_price_688, 0);
double l_irsi_404 = iRSI(NULL, g_timeframe_492, g_period_684, g_applied_price_688, 0);
double l_istochastic_412 = iStochastic(NULL, g_timeframe_516, g_period_716, g_period_720, g_slowing_724, g_ma_method_728, 0, MODE_MAIN, 0);
double l_istochastic_420 = iStochastic(NULL, g_timeframe_512, g_period_716, g_period_720, g_slowing_724, g_ma_method_728, 0, MODE_MAIN, 0);
double l_istochastic_428 = iStochastic(NULL, g_timeframe_508, g_period_716, g_period_720, g_slowing_724, g_ma_method_728, 0, MODE_MAIN, 0);
double l_istochastic_436 = iStochastic(NULL, g_timeframe_504, g_period_716, g_period_720, g_slowing_724, g_ma_method_728, 0, MODE_MAIN, 0);
double l_istochastic_444 = iStochastic(NULL, g_timeframe_500, g_period_716, g_period_720, g_slowing_724, g_ma_method_728, 0, MODE_MAIN, 0);
double l_istochastic_452 = iStochastic(NULL, g_timeframe_496, g_period_716, g_period_720, g_slowing_724, g_ma_method_728, 0, MODE_MAIN, 0);
double l_istochastic_460 = iStochastic(NULL, g_timeframe_492, g_period_716, g_period_720, g_slowing_724, g_ma_method_728, 0, MODE_MAIN, 0);
double l_icci_468 = iCCI(NULL, g_timeframe_516, g_period_700, g_applied_price_704, 0);
double l_icci_476 = iCCI(NULL, g_timeframe_512, g_period_700, g_applied_price_704, 0);
double l_icci_484 = iCCI(NULL, g_timeframe_508, g_period_700, g_applied_price_704, 0);
double l_icci_492 = iCCI(NULL, g_timeframe_504, g_period_700, g_applied_price_704, 0);
double l_icci_500 = iCCI(NULL, g_timeframe_500, g_period_700, g_applied_price_704, 0);
double l_icci_508 = iCCI(NULL, g_timeframe_496, g_period_700, g_applied_price_704, 0);
double l_icci_516 = iCCI(NULL, g_timeframe_492, g_period_700, g_applied_price_704, 0);
string l_text_524 = "";
string l_text_532 = "";
string l_text_540 = "";
string l_text_548 = "";
string l_text_556 = "";
string l_text_564 = "";
string l_text_572 = "";
string ls_unused_580 = "";
string ls_unused_588 = "";
l_text_572 = "-";
color l_color_596 = gi_748;
l_text_556 = "-";
color l_color_600 = gi_748;
l_text_524 = "-";
color l_color_604 = gi_748;
l_text_564 = "-";
color l_color_608 = gi_748;
l_text_532 = "-";
color l_color_612 = gi_748;
l_text_540 = "-";
color l_color_616 = gi_748;
l_text_548 = "-";
color l_color_620 = gi_748;
if (l_irsi_356 > 50.0 && l_istochastic_412 > 40.0 && l_icci_468 > 0.0) {
l_text_572 = "-";
l_color_596 = gi_740;
}
if (l_irsi_364 > 50.0 && l_istochastic_420 > 40.0 && l_icci_476 > 0.0) {
l_text_556 = "-";
l_color_600 = gi_740;
}
if (l_irsi_372 > 50.0 && l_istochastic_428 > 40.0 && l_icci_484 > 0.0) {
l_text_524 = "-";
l_color_604 = gi_740;
}
if (l_irsi_380 > 50.0 && l_istochastic_436 > 40.0 && l_icci_492 > 0.0) {
l_text_564 = "-";
l_color_608 = gi_740;
}
if (l_irsi_388 > 50.0 && l_istochastic_444 > 40.0 && l_icci_500 > 0.0) {
l_text_532 = "-";
l_color_612 = gi_740;
}
if (l_irsi_396 > 50.0 && l_istochastic_452 > 40.0 && l_icci_508 > 0.0) {
l_text_540 = "-";
l_color_616 = gi_740;
}
if (l_irsi_404 > 50.0 && l_istochastic_460 > 40.0 && l_icci_516 > 0.0) {
l_text_548 = "-";
l_color_620 = gi_740;
}
if (l_irsi_356 < 50.0 && l_istochastic_412 < 60.0 && l_icci_468 < 0.0) {
l_text_572 = "-";
l_color_596 = gi_744;
}
if (l_irsi_364 < 50.0 && l_istochastic_420 < 60.0 && l_icci_476 < 0.0) {
l_text_556 = "-";
l_color_600 = gi_744;
}
if (l_irsi_372 < 50.0 && l_istochastic_428 < 60.0 && l_icci_484 < 0.0) {
l_text_524 = "-";
l_color_604 = gi_744;
}
if (l_irsi_380 < 50.0 && l_istochastic_436 < 60.0 && l_icci_492 < 0.0) {
l_text_564 = "-";
l_color_608 = gi_744;
}
if (l_irsi_388 < 50.0 && l_istochastic_444 < 60.0 && l_icci_500 < 0.0) {
l_text_532 = "-";
l_color_612 = gi_744;
}
if (l_irsi_396 < 50.0 && l_istochastic_452 < 60.0 && l_icci_508 < 0.0) {
l_text_540 = "-";
l_color_616 = gi_744;
}
if (l_irsi_404 < 50.0 && l_istochastic_460 < 60.0 && l_icci_516 < 0.0) {
l_text_548 = "-";
l_color_620 = gi_744;
}
ObjectDelete("SSignalSTR_TEXT");
ObjectCreate("SSignalSTR_TEXT", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SSignalSTR_TEXT", "STR", 6, "Tahoma Narrow", g_color_568);
ObjectSet("SSignalSTR_TEXT", OBJPROP_CORNER, g_corner_528);
ObjectSet("SSignalSTR_TEXT", OBJPROP_XDISTANCE, gi_536 + 153);
ObjectSet("SSignalSTR_TEXT", OBJPROP_YDISTANCE, gi_532 + 43);
ObjectDelete("SignalSTRM1");
ObjectCreate("SignalSTRM1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalSTRM1", l_text_548, 45, "Tahoma Narrow", l_color_620);
ObjectSet("SignalSTRM1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalSTRM1", OBJPROP_XDISTANCE, gi_536 + 130);
ObjectSet("SignalSTRM1", OBJPROP_YDISTANCE, gi_532 + 10);
ObjectDelete("SignalSTRM5");
ObjectCreate("SignalSTRM5", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalSTRM5", l_text_540, 45, "Tahoma Narrow", l_color_616);
ObjectSet("SignalSTRM5", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalSTRM5", OBJPROP_XDISTANCE, gi_536 + 110);
ObjectSet("SignalSTRM5", OBJPROP_YDISTANCE, gi_532 + 10);
ObjectDelete("SignalSTRM15");
ObjectCreate("SignalSTRM15", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalSTRM15", l_text_532, 45, "Tahoma Narrow", l_color_612);
ObjectSet("SignalSTRM15", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalSTRM15", OBJPROP_XDISTANCE, gi_536 + 90);
ObjectSet("SignalSTRM15", OBJPROP_YDISTANCE, gi_532 + 10);
ObjectDelete("SignalSTRM30");
ObjectCreate("SignalSTRM30", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalSTRM30", l_text_564, 45, "Tahoma Narrow", l_color_608);
ObjectSet("SignalSTRM30", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalSTRM30", OBJPROP_XDISTANCE, gi_536 + 70);
ObjectSet("SignalSTRM30", OBJPROP_YDISTANCE, gi_532 + 10);
ObjectDelete("SignalSTRH1");
ObjectCreate("SignalSTRH1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalSTRH1", l_text_524, 45, "Tahoma Narrow", l_color_604);
ObjectSet("SignalSTRH1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalSTRH1", OBJPROP_XDISTANCE, gi_536 + 50);
ObjectSet("SignalSTRH1", OBJPROP_YDISTANCE, gi_532 + 10);
ObjectDelete("SignalSTRH4");
ObjectCreate("SignalSTRH4", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalSTRH4", l_text_556, 45, "Tahoma Narrow", l_color_600);
ObjectSet("SignalSTRH4", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalSTRH4", OBJPROP_XDISTANCE, gi_536 + 30);
ObjectSet("SignalSTRH4", OBJPROP_YDISTANCE, gi_532 + 10);
ObjectDelete("SignalSTRD1");
ObjectCreate("SignalSTRD1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalSTRD1", l_text_572, 45, "Tahoma Narrow", l_color_596);
ObjectSet("SignalSTRD1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalSTRD1", OBJPROP_XDISTANCE, gi_536 + 10);
ObjectSet("SignalSTRD1", OBJPROP_YDISTANCE, gi_532 + 10);
double l_ima_624 = iMA(Symbol(), g_timeframe_492, g_period_760, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_632 = iMA(Symbol(), g_timeframe_492, g_period_764, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_640 = iMA(Symbol(), g_timeframe_496, g_period_760, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_648 = iMA(Symbol(), g_timeframe_496, g_period_764, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_656 = iMA(Symbol(), g_timeframe_500, g_period_760, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_664 = iMA(Symbol(), g_timeframe_500, g_period_764, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_672 = iMA(Symbol(), g_timeframe_504, g_period_760, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_680 = iMA(Symbol(), g_timeframe_504, g_period_764, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_688 = iMA(Symbol(), g_timeframe_508, g_period_760, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_696 = iMA(Symbol(), g_timeframe_508, g_period_764, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_704 = iMA(Symbol(), g_timeframe_512, g_period_760, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_712 = iMA(Symbol(), g_timeframe_512, g_period_764, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_720 = iMA(Symbol(), g_timeframe_516, g_period_760, 0, g_ma_method_768, g_applied_price_772, 0);
double l_ima_728 = iMA(Symbol(), g_timeframe_516, g_period_764, 0, g_ma_method_768, g_applied_price_772, 0);
string l_text_736 = "";
string l_text_744 = "";
string l_text_752 = "";
string l_text_760 = "";
string l_text_768 = "";
string l_text_776 = "";
string l_text_784 = "";
string ls_unused_792 = "";
string ls_unused_800 = "";
if (l_ima_624 > l_ima_632) {
l_text_736 = "-";
l_color_64 = gi_784;
}
if (l_ima_624 <= l_ima_632) {
l_text_736 = "-";
l_color_64 = gi_788;
}
if (l_ima_640 > l_ima_648) {
l_text_744 = "-";
l_color_68 = gi_784;
}
if (l_ima_640 <= l_ima_648) {
l_text_744 = "-";
l_color_68 = gi_788;
}
if (l_ima_656 > l_ima_664) {
l_text_752 = "-";
l_color_72 = gi_784;
}
if (l_ima_656 <= l_ima_664) {
l_text_752 = "-";
l_color_72 = gi_788;
}
if (l_ima_672 > l_ima_680) {
l_text_760 = "-";
l_color_76 = gi_784;
}
if (l_ima_672 <= l_ima_680) {
l_text_760 = "-";
l_color_76 = gi_788;
}
if (l_ima_688 > l_ima_696) {
l_text_768 = "-";
l_color_80 = gi_784;
}
if (l_ima_688 <= l_ima_696) {
l_text_768 = "-";
l_color_80 = gi_788;
}
if (l_ima_704 > l_ima_712) {
l_text_776 = "-";
l_color_84 = gi_784;
}
if (l_ima_704 <= l_ima_712) {
l_text_776 = "-";
l_color_84 = gi_788;
}
if (l_ima_720 > l_ima_728) {
l_text_784 = "-";
l_color_88 = gi_784;
}
if (l_ima_720 <= l_ima_728) {
l_text_784 = "-";
l_color_88 = gi_788;
}
ObjectDelete("SignalEMA_TEXT");
ObjectCreate("SignalEMA_TEXT", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalEMA_TEXT", "EMA", 6, "Tahoma Narrow", g_color_568);
ObjectSet("SignalEMA_TEXT", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalEMA_TEXT", OBJPROP_XDISTANCE, gi_536 + 153);
ObjectSet("SignalEMA_TEXT", OBJPROP_YDISTANCE, gi_532 + 51);
ObjectDelete("SignalEMAM1");
ObjectCreate("SignalEMAM1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalEMAM1", l_text_736, 45, "Tahoma Narrow", l_color_64);
ObjectSet("SignalEMAM1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalEMAM1", OBJPROP_XDISTANCE, gi_536 + 130);
ObjectSet("SignalEMAM1", OBJPROP_YDISTANCE, gi_532 + 18);
ObjectDelete("SignalEMAM5");
ObjectCreate("SignalEMAM5", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalEMAM5", l_text_744, 45, "Tahoma Narrow", l_color_68);
ObjectSet("SignalEMAM5", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalEMAM5", OBJPROP_XDISTANCE, gi_536 + 110);
ObjectSet("SignalEMAM5", OBJPROP_YDISTANCE, gi_532 + 18);
ObjectDelete("SignalEMAM15");
ObjectCreate("SignalEMAM15", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalEMAM15", l_text_752, 45, "Tahoma Narrow", l_color_72);
ObjectSet("SignalEMAM15", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalEMAM15", OBJPROP_XDISTANCE, gi_536 + 90);
ObjectSet("SignalEMAM15", OBJPROP_YDISTANCE, gi_532 + 18);
ObjectDelete("SignalEMAM30");
ObjectCreate("SignalEMAM30", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalEMAM30", l_text_760, 45, "Tahoma Narrow", l_color_76);
ObjectSet("SignalEMAM30", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalEMAM30", OBJPROP_XDISTANCE, gi_536 + 70);
ObjectSet("SignalEMAM30", OBJPROP_YDISTANCE, gi_532 + 18);
ObjectDelete("SignalEMAH1");
ObjectCreate("SignalEMAH1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalEMAH1", l_text_768, 45, "Tahoma Narrow", l_color_80);
ObjectSet("SignalEMAH1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalEMAH1", OBJPROP_XDISTANCE, gi_536 + 50);
ObjectSet("SignalEMAH1", OBJPROP_YDISTANCE, gi_532 + 18);
ObjectDelete("SignalEMAH4");
ObjectCreate("SignalEMAH4", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalEMAH4", l_text_776, 45, "Tahoma Narrow", l_color_84);
ObjectSet("SignalEMAH4", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalEMAH4", OBJPROP_XDISTANCE, gi_536 + 30);
ObjectSet("SignalEMAH4", OBJPROP_YDISTANCE, gi_532 + 18);
ObjectDelete("SignalEMAD1");
ObjectCreate("SignalEMAD1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SignalEMAD1", l_text_784, 45, "Tahoma Narrow", l_color_88);
ObjectSet("SignalEMAD1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SignalEMAD1", OBJPROP_XDISTANCE, gi_536 + 10);
ObjectSet("SignalEMAD1", OBJPROP_YDISTANCE, gi_532 + 18);
double ld_808 = NormalizeDouble(MarketInfo(Symbol(), MODE_BID), Digits);
double l_ima_816 = iMA(Symbol(), PERIOD_M1, 1, 0, MODE_EMA, PRICE_CLOSE, 1);
string ls_unused_824 = "";
if (l_ima_816 > ld_808) {
ls_unused_824 = "";
l_color_92 = gi_612;
}
if (l_ima_816 < ld_808) {
ls_unused_824 = "";
l_color_92 = gi_608;
}
if (l_ima_816 == ld_808) {
ls_unused_824 = "";
l_color_92 = gi_616;
}
ObjectDelete("cja");
ObjectCreate("cja", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("cja", "cja", 8, "Tahoma Narrow", DimGray);
ObjectSet("cja", OBJPROP_CORNER, g_corner_528);
ObjectSet("cja", OBJPROP_XDISTANCE, gi_536 + 153);
ObjectSet("cja", OBJPROP_YDISTANCE, gi_532 + 23);
if (gi_560 == FALSE) {
if (gi_552 == TRUE) {
ObjectDelete("Signalprice");
ObjectCreate("Signalprice", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("Signalprice", DoubleToStr(ld_808, Digits), 35, "Arial", l_color_92);
ObjectSet("Signalprice", OBJPROP_CORNER, g_corner_528);
ObjectSet("Signalprice", OBJPROP_XDISTANCE, gi_536 + 10);
ObjectSet("Signalprice", OBJPROP_YDISTANCE, gi_532 + 56);
}
}
if (gi_560 == TRUE) {
if (gi_552 == TRUE) {
ObjectDelete("Signalprice");
ObjectCreate("Signalprice", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("Signalprice", DoubleToStr(ld_808, Digits), 15, "Arial", l_color_92);
ObjectSet("Signalprice", OBJPROP_CORNER, g_corner_528);
ObjectSet("Signalprice", OBJPROP_XDISTANCE, gi_536 + 10);
ObjectSet("Signalprice", OBJPROP_YDISTANCE, gi_532 + 60);
}
}
int li_832 = 0;
int li_836 = 0;
int li_840 = 0;
int li_844 = 0;
int li_848 = 0;
int li_852 = 0;
li_832 = (iHigh(NULL, PERIOD_D1, 1) - iLow(NULL, PERIOD_D1, 1)) / Point;
for (li_852 = 1; li_852 <= 5; li_852++) li_836 = li_836 + (iHigh(NULL, PERIOD_D1, li_852) - iLow(NULL, PERIOD_D1, li_852)) / Point;
for (li_852 = 1; li_852 <= 10; li_852++) li_840 = li_840 + (iHigh(NULL, PERIOD_D1, li_852) - iLow(NULL, PERIOD_D1, li_852)) / Point;
for (li_852 = 1; li_852 <= 20; li_852++) li_844 = li_844 + (iHigh(NULL, PERIOD_D1, li_852) - iLow(NULL, PERIOD_D1, li_852)) / Point;
li_836 /= 5;
li_840 /= 10;
li_844 /= 20;
li_848 = (li_832 + li_836 + li_840 + li_844) / 4;
string ls_unused_856 = "";
string ls_unused_864 = "";
string l_dbl2str_872 = "";
string l_dbl2str_880 = "";
string l_dbl2str_888 = "";
string l_dbl2str_896 = "";
string ls_unused_904 = "";
string ls_unused_912 = "";
string ls_920 = "";
double l_iopen_928 = iOpen(NULL, PERIOD_D1, 0);
double l_iclose_936 = iClose(NULL, PERIOD_D1, 0);
double ld_944 = (Ask - Bid) / Point;
double l_ihigh_952 = iHigh(NULL, PERIOD_D1, 0);
double l_ilow_960 = iLow(NULL, PERIOD_D1, 0);
l_dbl2str_880 = DoubleToStr((l_iclose_936 - l_iopen_928) / Point, 0);
l_dbl2str_872 = DoubleToStr(ld_944, Digits - 4);
l_dbl2str_888 = DoubleToStr(li_848, Digits - 4);
ls_920 = (iHigh(NULL, PERIOD_D1, 1) - iLow(NULL, PERIOD_D1, 1)) / Point;
l_dbl2str_896 = DoubleToStr((l_ihigh_952 - l_ilow_960) / Point, 0);
if (l_iclose_936 >= l_iopen_928) {
ls_unused_904 = "-";
l_color_104 = gi_584;
}
if (l_iclose_936 < l_iopen_928) {
ls_unused_904 = "-";
l_color_104 = gi_588;
}
if (l_dbl2str_888 >= ls_920) {
ls_unused_912 = "-";
l_color_108 = gi_592;
}
if (l_dbl2str_888 < ls_920) {
ls_unused_912 = "-";
l_color_108 = gi_596;
}
{
ObjectDelete("SIG_DETAIL_1");
ObjectCreate("SIG_DETAIL_1", OBJ_LABEL, g_window_540, 0, 0);
ObjectSetText("SIG_DETAIL_1", "Spread", 14, "Times New Roman", g_color_572);
ObjectSet("SIG_DETAIL_1", OBJPROP_CORNER, g_corner_528);
ObjectSet("SIG_DETAIL_1", OBJPROP_XDISTANCE, gi_536 + 65);
ObjectSet("SIG_DETAIL_1", OBJPROP_YDISTANCE, gi_532 + 100);
ObjectDeleteПоказано первые 50% кода (символов: 74940)
Открыть по тарифу
Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.
Разовая покупка файла
На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.
Зачем нужен email? После подтверждения оплаты файл сохранится в кабинете на этот email. Если аккаунта ещё нет, мы создадим его и пришлём ссылку для задания пароля. Если аккаунт уже есть, покупка добавится в него. Укажите адрес, к которому у вас есть доступ.
Чтобы оформить заказ, введите email и перейдите к оплате.