trio_dancer3_1_time3.mq4
Похожие материалы по тегам
Сообщите нам, если считаете, что материал размещён без разрешения.
Сообщить о материале
Обращение по товару «trio_dancer3_1_time3.mq4» отправится на рассмотрение. Укажите контакт для ответа и опишите причину.
О программе
Данный файл является торговым советником для MetaTrader 4, написанным на языке MQL4. Советник предназначен для автоматической торговли на финансовых рынках через терминал MetaTrader 4. В коде присутствуют обработчики событий init(), deinit() и start(), что подтверждает его роль как эксперта (EA).
Советник включает несколько логических блоков, каждый из которых, судя по названиям настроек, соответствует отдельной стратегии: «Dancing Jaipong», «Dancing Keroncong» и «Dancing Tortor». Каждый блок имеет собственный набор параметров, таких как максимальное количество сделок, использование трейлинг-стопа, шаг усреднения, проскальзывание и номер магического числа. Это позволяет независимо управлять торговлей по каждому направлению.
В глобальных настройках задаются базовый лот, экспоненциальное увеличение лота, максимальный лот, использование денежного менеджмента, тейк-профит, а также параметры управления риском на основе эквити. Отдельная группа параметров отвечает за временные ограничения: закрытие позиций в пятницу, открытие в понедельник, работа в заданном интервале часов и закрытие после его окончания. Также предусмотрено закрытие по достижении заданной прибыли.
Советник выполняет торговые операции через функцию OrderSend, поддерживая рыночные и отложенные ордера. В коде реализованы вспомогательные функции для управления позициями: подсчёт ордеров по магическому числу, расчёт суммарной прибыли, модификация стоп-лоссов и тейк-профитов, а также закрытие всех ордеров по заданному магическому числу. Присутствует механизм лицензионной проверки, который при отсутствии или неверном ключе выводит предупреждение и прекращает работу. Визуальные элементы в виде меток выводят предупреждения о рисках.
Настройки программы
| Настройка | Описание |
|---|---|
| t1 | Заголовок глобальных настроек — Текстовая метка, отделяющая группу глобальных настроек советника. |
| Lots | Размер лота — Базовый размер торгового лота, используемый для открытия позиций. |
| LotExponent | Экспонента лота — Коэффициент экспоненциального увеличения лота при усреднении позиций. |
| MaxLots | Максимальный лот — Максимально допустимый размер лота, ограничивающий увеличение позиции. |
| MM | Использовать денежный менеджмент — Включает автоматический расчёт размера лота в зависимости от доступных средств (денежный менеджмент). |
| TakeProfit | Тейк-профит — Размер тейк-профита в пунктах для открываемых позиций. |
| UseEquityStop | Использовать стоп по эквити — Включает остановку торговли при достижении заданного уровня риска по эквити. |
| TotalEquityRisk | Общий риск по эквити — Максимально допустимый процент риска от текущей эквити, при котором советник прекращает торговлю. |
| t2 | Заголовок настроек времени — Текстовая метка, отделяющая группу настроек времени работы советника. |
| CloseFriday | Закрывать в пятницу — Включает или отключает закрытие всех позиций в пятницу. |
| CloseFridayHour | Час закрытия в пятницу — Час, в который выполняется закрытие позиций в пятницу. |
| OpenMondey | Открывать в понедельник — Включает или отключает открытие новых позиций в понедельник. |
| OpenMondeyHour | Час открытия в понедельник — Час, с которого разрешено открытие новых позиций в понедельник. |
| UseTimeWork | Использовать рабочее время — Включает торговлю только в заданном временном интервале. |
| StartHourTime | Час начала работы — Час начала разрешённого торгового интервала. |
| EndHourTime | Час окончания работы — Час окончания разрешённого торгового интервала. |
| CloseAfterTimeWork | Закрывать после рабочего времени — Определяет, следует ли закрывать позиции после окончания разрешённого торгового интервала. |
| UseCloseProfit | Использовать закрытие по прибыли — Включает закрытие всех позиций при достижении заданного уровня прибыли. |
| ProfitToClose | Прибыль для закрытия — Целевой уровень прибыли, при достижении которого все позиции закрываются. |
| t3 | Заголовок настроек Dancing Jaipong — Текстовая метка, отделяющая группу настроек для стратегии «Dancing Jaipong». |
| MaxTrades_Hilo | Максимум сделок для Dancing Jaipong — Максимальное количество одновременно открытых ордеров для стратегии «Dancing Jaipong». |
| UseTrailingStop_Hilo | Использовать трейлинг-стоп для Dancing Jaipong — Включает трейлинг-стоп для стратегии «Dancing Jaipong». |
| TrailStart_Hilo | Начало трейлинга для Dancing Jaipong — Уровень прибыли в пунктах, при котором начинается трейлинг-стоп для стратегии «Dancing Jaipong». |
| TrailStop_Hilo | Трейлинг-стоп для Dancing Jaipong — Размер трейлинг-стопа в пунктах для стратегии «Dancing Jaipong». |
| PipStep_Hilo | Шаг усреднения для Dancing Jaipong — Расстояние в пунктах между усредняющими ордерами для стратегии «Dancing Jaipong». |
| slip_Hilo | Проскальзывание для Dancing Jaipong — Максимальное проскальзывание в пунктах при открытии и закрытии ордеров для стратегии «Dancing Jaipong». |
| MagicNumber_Hilo | Магическое число для Dancing Jaipong — Уникальный идентификатор (магическое число) для ордеров, открываемых по стратегии «Dancing Jaipong». |
| t4 | Заголовок настроек Dancing Keroncong — Текстовая метка, отделяющая группу настроек для стратегии «Dancing Keroncong». |
| MaxTrades_15 | Максимум сделок для Dancing Keroncong — Максимальное количество одновременно открытых ордеров для стратегии «Dancing Keroncong». |
| UseTrailingStop_15 | Использовать трейлинг-стоп для Dancing Keroncong — Включает трейлинг-стоп для стратегии «Dancing Keroncong». |
| TrailStart_15 | Начало трейлинга для Dancing Keroncong — Уровень прибыли в пунктах, при котором начинается трейлинг-стоп для стратегии «Dancing Keroncong». |
| TrailStop_15 | Трейлинг-стоп для Dancing Keroncong — Размер трейлинг-стопа в пунктах для стратегии «Dancing Keroncong». |
| PipStep_15 | Шаг усреднения для Dancing Keroncong — Расстояние в пунктах между усредняющими ордерами для стратегии «Dancing Keroncong». |
| slip_15 | Проскальзывание для Dancing Keroncong — Максимальное проскальзывание в пунктах при открытии и закрытии ордеров для стратегии «Dancing Keroncong». |
| G_magic_176_15 | Магическое число для Dancing Keroncong — Уникальный идентификатор (магическое число) для ордеров, открываемых по стратегии «Dancing Keroncong». |
| t5 | Заголовок настроек Dancing Tortor — Текстовая метка, отделяющая группу настроек для стратегии «Dancing Tortor». |
| MaxTrades_16 | Максимум сделок для Dancing Tortor — Максимальное количество одновременно открытых ордеров для стратегии «Dancing Tortor». |
| UseTrailingStop_16 | Использовать трейлинг-стоп для Dancing Tortor — Включает трейлинг-стоп для стратегии «Dancing Tortor». |
| TrailStart_16 | Начало трейлинга для Dancing Tortor — Уровень прибыли в пунктах, при котором начинается трейлинг-стоп для стратегии «Dancing Tortor». |
| TrailStop_16 | Трейлинг-стоп для Dancing Tortor — Размер трейлинг-стопа в пунктах для стратегии «Dancing Tortor». |
| PipStep_16 | Шаг усреднения для Dancing Tortor — Расстояние в пунктах между усредняющими ордерами для стратегии «Dancing Tortor». |
| slip_16 | Проскальзывание для Dancing Tortor — Максимальное проскальзывание в пунктах при открытии и закрытии ордеров для стратегии «Dancing Tortor». |
| G_magic_176_16 | Магическое число для Dancing Tortor — Уникальный идентификатор (магическое число) для ордеров, открываемых по стратегии «Dancing Tortor». |
Поиск по коду файла
extern string t1 = "Global Setting";
extern double Account = 1872377.0;
extern double Lots = 0.1;
extern double LotExponent = 1.5;
int Gi_108 = 2;
extern double MaxLots = 5.0;
extern bool MM = FALSE;
extern double TakeProfit = 30.0;
extern bool UseEquityStop = FALSE;
extern double TotalEquityRisk = 20.0;
extern string t2 = "Time Setting";
extern bool CloseFriday = TRUE;
extern int CloseFridayHour = 17;
extern bool OpenMondey = TRUE;
extern int OpenMondeyHour = 0;
extern bool UseTimeWork = FALSE;
extern int StartHourTime = 13;
extern int EndHourTime = 17;
extern bool CloseAfterTimeWork = FALSE;
extern bool UseCloseProfit = FALSE;
extern double ProfitToClose = 10;
extern string t3 = "Setting for Dancing Jaipong";
extern int MaxTrades_Hilo = 10;
bool Gi_220 = FALSE;
double Gd_224 = 48.0;
extern bool UseTrailingStop_Hilo = FALSE;
double G_pips_236 = 500.0;
extern double TrailStart_Hilo = 10.0;
extern double TrailStop_Hilo = 5.0;
extern double PipStep_Hilo = 30.0;
extern double slip_Hilo = 3.0;
extern int MagicNumber_Hilo = 11111;
double G_price_280;
double Gd_288;
double Gd_unused_296;
double Gd_unused_304;
double G_price_312;
double G_bid_320;
double G_ask_328;
double Gd_336;
double Gd_344;
double Gd_352;
bool Gi_360;
string Gs_364 = "Dancing Jaipong";
int Gi_372 = 0;
int Gi_376;
int Gi_380 = 0;
double Gd_384;
int G_pos_392 = 0;
int Gi_396;
double Gd_400 = 0.0;
bool Gi_408 = FALSE;
bool Gi_412 = FALSE;
bool Gi_416 = FALSE;
int Gi_420;
bool Gi_424 = FALSE;
double Gd_428;
double Gd_436;
extern string t4 = "Setting for Dancing Keroncong";
extern int MaxTrades_15 = 10;
int G_timeframe_496 = PERIOD_H1;
extern bool UseTrailingStop_15 = FALSE;
double G_pips_508 = 500.0;
extern double TrailStart_15 = 10.0;
extern double TrailStop_15 = 5.0;
bool Gi_532 = FALSE;
double Gd_536 = 48.0;
extern double PipStep_15 = 30.0;
extern double slip_15 = 3.0;
extern int G_magic_176_15 = 12324;
double G_price_564;
double Gd_572;
double Gd_unused_580;
double Gd_unused_588;
double G_price_596;
double G_bid_604;
double G_ask_612;
double Gd_620;
double Gd_628;
double Gd_636;
bool Gi_644;
string Gs_648 = "Dancing Keroncong";
int Gi_656 = 0;
int Gi_660;
int Gi_664 = 0;
double Gd_668;
int G_pos_676 = 0;
int Gi_680;
double Gd_684 = 0.0;
bool Gi_692 = FALSE;
bool Gi_696 = FALSE;
bool Gi_700 = FALSE;
int Gi_704;
bool Gi_708 = FALSE;
double Gd_712;
double Gd_720;
int G_datetime_728 = 1;
extern string t5 = "Setting for Dancing Tortor";
extern int MaxTrades_16 = 10;
int G_timeframe_784 = PERIOD_M1;
extern bool UseTrailingStop_16 = FALSE;
double G_pips_792 = 500.0;
extern double TrailStart_16 = 10.0;
extern double TrailStop_16 = 5.0;
bool Gi_816 = FALSE;
double Gd_820 = 48.0;
extern double PipStep_16 = 30.0;
extern double slip_16 = 3.0;
extern int G_magic_176_16 = 16794;
double G_price_848;
double Gd_856;
double Gd_unused_864;
double Gd_unused_872;
double G_price_880;
double G_bid_888;
double G_ask_896;
double Gd_904;
double Gd_912;
double Gd_920;
bool Gi_928;
string Gs_932 = "Dancing Tortor";
int Gi_940 = 0;
int Gi_944;
int Gi_948 = 0;
double Gd_952;
int G_pos_960 = 0;
int Gi_964;
double Gd_968 = 0.0;
bool Gi_976 = FALSE;
bool Gi_980 = FALSE;
bool Gi_984 = FALSE;
int Gi_988;
bool Gi_992 = FALSE;
double Gd_996;
double Gd_1004;
int G_datetime_1012 = 1;
int G_timeframe_1024 = PERIOD_M1;
int G_timeframe_1028 = PERIOD_M5;
int G_timeframe_1032 = PERIOD_M15;
int G_timeframe_1036 = PERIOD_M30;
int G_timeframe_1040 = PERIOD_H1;
int G_timeframe_1044 = PERIOD_H4;
int G_timeframe_1048 = PERIOD_D1;
bool G_corner_1052 = TRUE;
int Gi_1056 = 0;
int Gi_1060 = 10;
int G_window_1064 = 0;
bool Gi_1068 = TRUE;
bool Gi_unused_1072 = TRUE;
bool Gi_1076 = FALSE;
int G_color_1080 = Gray;
int G_color_1084 = Gray;
int G_color_1088 = Gray;
int G_color_1092 = DarkOrange;
int Gi_unused_1096 = 36095;
int G_color_1100 = Lime;
int G_color_1104 = OrangeRed;
int Gi_1108 = 65280;
int Gi_1112 = 17919;
int G_color_1116 = Lime;
int G_color_1120 = Red;
int G_color_1124 = Orange;
int G_period_1128 = 8;
int G_period_1132 = 17;
int G_period_1136 = 9;
int G_applied_price_1140 = PRICE_CLOSE;
int G_color_1144 = Lime;
int G_color_1148 = Tomato;
int G_color_1152 = Green;
int G_color_1156 = Red;
string Gs_unused_1160 = "<<<< STR Indicator Settings >>>>>>>>>>>>>";
string Gs_unused_1168 = "<<<< RSI Settings >>>>>>>>>>>>>";
int G_period_1176 = 9;
int G_applied_price_1180 = PRICE_CLOSE;
string Gs_unused_1184 = "<<<< CCI Settings >>>>>>>>>>>>>>";
int G_period_1192 = 13;
int G_applied_price_1196 = PRICE_CLOSE;
string Gs_unused_1200 = "<<<< STOCH Settings >>>>>>>>>>>";
int G_period_1208 = 5;
int G_period_1212 = 3;
int G_slowing_1216 = 3;
int G_ma_method_1220 = MODE_EMA;
string Gs_unused_1224 = "<<<< STR Colors >>>>>>>>>>>>>>>>";
int G_color_1232 = Lime;
int G_color_1236 = Red;
int G_color_1240 = Orange;
string Gs_unused_1244 = "<<<< MA Settings >>>>>>>>>>>>>>";
int G_period_1252 = 5;
int G_period_1256 = 9;
int G_ma_method_1260 = MODE_EMA;
int G_applied_price_1264 = PRICE_CLOSE;
string Gs_unused_1268 = "<<<< MA Colors >>>>>>>>>>>>>>";
int G_color_1276 = Lime;
int G_color_1280 = Red;
string Gs_dummy_1292;
string G_text_1464;
string G_text_1472;
bool Gi_1480 = FALSE;//TRUE;
extern string KEY = "";
int Gi_1492;
int G_str2int_1496;
int G_str2int_1500;
int G_str2int_1504;
double AllProfit = 0;
double AllTake = 0;
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");
return (0);
}
int start() {
// код доступен только после оплаты
}
int Li_4;
int Li_8;
int Li_12;
int Li_16;
int Li_20;
int Li_24;
int Li_28;
color color_32;
color color_36;
color color_40;
color color_44;
color color_48;
color color_52;
color color_56;
string Ls_unused_60;
color color_68;
color color_72;
color color_76;
color color_80;
color color_84;
color color_88;
color color_92;
color color_96;
string Ls_unused_100;
color color_108;
int Li_unused_112;
double ihigh_1128;
double ilow_1136;
double iclose_1144;
double iclose_1152;
double Ld_1192;
double Ld_1248;
double Ld_1256;
int Li_1264;
int count_1268;
double Ld_1316;
double Ld_1324;
int Li_1332;
int count_1336;
if (Gi_1492 == 1) {
Alert("Empty license KEY! Please enter the license KEY!");
return(0);
}
if (Gi_1492 == 2) {
Alert("Invalid license KEY! Please enter a valid license KEY!");
return(0);
}
if (Gi_1492 == 3) {
Alert("The license KEY has expired!");
return(0);
}
int ind_counted_0 = IndicatorCounted();
/* if (!IsDemo())
if (AccountNumber() != Account) return (0);*/
if (UseTimeWork == TRUE)
{
int HH=TimeHour(TimeCurrent());
if (StartHourTime > EndHourTime)
{
if (HH < StartHourTime && HH >= EndHourTime && f0_5() < 1 && f0_4() < 1 && f0_12() < 1) {Comment ("???????? ?????????, ??? ?? ?????!!"); return (0);}
if (HH < StartHourTime && HH >= EndHourTime && CloseAfterTimeWork == TRUE /*&& (f0_5() > 0 || f0_4() > 0 || f0_12() >0)*/ ) { f0_0(); f0_18(); f0_24(); Comment ("???????? ?????????, ????? ???????!!"); return(0);}
if (HH < StartHourTime && HH >= EndHourTime && CloseAfterTimeWork == FALSE) {Comment ("???????? ?????????, ?????? ???????????? ?? ?????"); return(0); }
}
else
{
AllTake = CheckProfit() + f0_31() + f0_29() + f0_8();
if ((HH >= StartHourTime || HH <= EndHourTime) && UseCloseProfit == TRUE && AllTake >= ProfitToClose) { f0_0(); f0_18(); f0_24(); Comment ("????????? ??????"); return(0);}
if ((HH < StartHourTime || HH >= EndHourTime) && f0_5() < 1 && f0_4() < 1 && f0_12() < 1) {Comment ("???????? ?????????, ??? ?? ?????"); return (0);}
if ((HH < StartHourTime || HH >= EndHourTime) && CloseAfterTimeWork == TRUE /*&& (f0_5() > 0 || f0_4() > 0 || f0_12() >0)*/ ) { f0_0(); f0_18(); f0_24(); Comment ("???????? ?????????, ????? ???????"); return(0);}
if ((HH < StartHourTime || HH >= EndHourTime) && CloseAfterTimeWork == false) {Comment ("???????? ?????????, ?????? ???????????? ?? ?????"); return(0); }
}
}
if (Lots > MaxLots) Lots = MaxLots;
AllTake = CheckProfit() + f0_31() + f0_29() + f0_8();
Comment(""
+ "\n"
+ " Dance on market."
+ "\n"
+ "====================="
+ "\n"
+ "Your Broker : " + AccountCompany()
+ "\n"
+ "Server Time : " + TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS)
+ "\n"
+ "====================="
+ "\n"
+ "Your Name : " + AccountName()
+ "\n"
+ "Your Acc.No : " + AccountNumber()
+ "\n"
+ "Acc Currency : " + AccountCurrency()
+ "\n"
+ "====================="
+ "\n"
+ "Total Dancing Now : " + OrdersTotal()
+ "\n"
+ "====================="
+ "\n"
+ "Your Balance : " + DoubleToStr(AccountBalance(), 2)
+ "\n"
+ "Your Equity : " + DoubleToStr(AccountEquity(), 2)
+ "\n"
+ "Your Profit : " + AllTake
+ "\n"
+ "=====================");
int ind_counted_272 = IndicatorCounted();
string text_276 = "";
string text_284 = "";
string text_292 = "";
string text_300 = "";
string text_308 = "";
string text_316 = "";
string text_324 = "";
if (G_timeframe_1024 == PERIOD_M1) text_276 = "M1";
if (G_timeframe_1024 == PERIOD_M5) text_276 = "M5";
if (G_timeframe_1024 == PERIOD_M15) text_276 = "M15";
if (G_timeframe_1024 == PERIOD_M30) text_276 = "M30";
if (G_timeframe_1024 == PERIOD_H1) text_276 = "H1";
if (G_timeframe_1024 == PERIOD_H4) text_276 = "H4";
if (G_timeframe_1024 == PERIOD_D1) text_276 = "D1";
if (G_timeframe_1024 == PERIOD_W1) text_276 = "W1";
if (G_timeframe_1024 == PERIOD_MN1) text_276 = "MN";
if (G_timeframe_1028 == PERIOD_M1) text_284 = "M1";
if (G_timeframe_1028 == PERIOD_M5) text_284 = "M5";
if (G_timeframe_1028 == PERIOD_M15) text_284 = "M15";
if (G_timeframe_1028 == PERIOD_M30) text_284 = "M30";
if (G_timeframe_1028 == PERIOD_H1) text_284 = "H1";
if (G_timeframe_1028 == PERIOD_H4) text_284 = "H4";
if (G_timeframe_1028 == PERIOD_D1) text_284 = "D1";
if (G_timeframe_1028 == PERIOD_W1) text_284 = "W1";
if (G_timeframe_1028 == PERIOD_MN1) text_284 = "MN";
if (G_timeframe_1032 == PERIOD_M1) text_292 = "M1";
if (G_timeframe_1032 == PERIOD_M5) text_292 = "M5";
if (G_timeframe_1032 == PERIOD_M15) text_292 = "M15";
if (G_timeframe_1032 == PERIOD_M30) text_292 = "M30";
if (G_timeframe_1032 == PERIOD_H1) text_292 = "H1";
if (G_timeframe_1032 == PERIOD_H4) text_292 = "H4";
if (G_timeframe_1032 == PERIOD_D1) text_292 = "D1";
if (G_timeframe_1032 == PERIOD_W1) text_292 = "W1";
if (G_timeframe_1032 == PERIOD_MN1) text_292 = "MN";
if (G_timeframe_1036 == PERIOD_M1) text_300 = "M1";
if (G_timeframe_1036 == PERIOD_M5) text_300 = "M5";
if (G_timeframe_1036 == PERIOD_M15) text_300 = "M15";
if (G_timeframe_1036 == PERIOD_M30) text_300 = "M30";
if (G_timeframe_1036 == PERIOD_H1) text_300 = "H1";
if (G_timeframe_1036 == PERIOD_H4) text_300 = "H4";
if (G_timeframe_1036 == PERIOD_D1) text_300 = "D1";
if (G_timeframe_1036 == PERIOD_W1) text_300 = "W1";
if (G_timeframe_1036 == PERIOD_MN1) text_300 = "MN";
if (G_timeframe_1040 == PERIOD_M1) text_308 = "M1";
if (G_timeframe_1040 == PERIOD_M5) text_308 = "M5";
if (G_timeframe_1040 == PERIOD_M15) text_308 = "M15";
if (G_timeframe_1040 == PERIOD_M30) text_308 = "M30";
if (G_timeframe_1040 == PERIOD_H1) text_308 = "H1";
if (G_timeframe_1040 == PERIOD_H4) text_308 = "H4";
if (G_timeframe_1040 == PERIOD_D1) text_308 = "D1";
if (G_timeframe_1040 == PERIOD_W1) text_308 = "W1";
if (G_timeframe_1040 == PERIOD_MN1) text_308 = "MN";
if (G_timeframe_1044 == PERIOD_M1) text_316 = "M1";
if (G_timeframe_1044 == PERIOD_M5) text_316 = "M5";
if (G_timeframe_1044 == PERIOD_M15) text_316 = "M15";
if (G_timeframe_1044 == PERIOD_M30) text_316 = "M30";
if (G_timeframe_1044 == PERIOD_H1) text_316 = "H1";
if (G_timeframe_1044 == PERIOD_H4) text_316 = "H4";
if (G_timeframe_1044 == PERIOD_D1) text_316 = "D1";
if (G_timeframe_1044 == PERIOD_W1) text_316 = "W1";
if (G_timeframe_1044 == PERIOD_MN1) text_316 = "MN";
if (G_timeframe_1048 == PERIOD_M1) text_324 = "M1";
if (G_timeframe_1048 == PERIOD_M5) text_324 = "M5";
if (G_timeframe_1048 == PERIOD_M15) text_324 = "M15";
if (G_timeframe_1048 == PERIOD_M30) text_324 = "M30";
if (G_timeframe_1048 == PERIOD_H1) text_324 = "H1";
if (G_timeframe_1048 == PERIOD_H4) text_324 = "H4";
if (G_timeframe_1048 == PERIOD_D1) text_324 = "D1";
if (G_timeframe_1048 == PERIOD_W1) text_324 = "W1";
if (G_timeframe_1048 == PERIOD_MN1) text_324 = "MN";
if (G_timeframe_1024 == PERIOD_M15) Li_4 = -2;
if (G_timeframe_1024 == PERIOD_M30) Li_4 = -2;
if (G_timeframe_1028 == PERIOD_M15) Li_8 = -2;
if (G_timeframe_1028 == PERIOD_M30) Li_8 = -2;
if (G_timeframe_1032 == PERIOD_M15) Li_12 = -2;
if (G_timeframe_1032 == PERIOD_M30) Li_12 = -2;
if (G_timeframe_1036 == PERIOD_M15) Li_16 = -2;
if (G_timeframe_1036 == PERIOD_M30) Li_16 = -2;
if (G_timeframe_1040 == PERIOD_M15) Li_20 = -2;
if (G_timeframe_1040 == PERIOD_M30) Li_20 = -2;
if (G_timeframe_1044 == PERIOD_M15) Li_24 = -2;
if (G_timeframe_1044 == PERIOD_M30) Li_24 = -2;
if (G_timeframe_1048 == PERIOD_M15) Li_28 = -2;
if (G_timeframe_1044 == PERIOD_M30) Li_28 = -2;
if (Gi_1056 < 0) return (0);
ObjectDelete("SIG_BARS_TF1");
ObjectCreate("SIG_BARS_TF1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SIG_BARS_TF1", text_276, 7, "Arial Bold", G_color_1080);
ObjectSet("SIG_BARS_TF1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SIG_BARS_TF1", OBJPROP_XDISTANCE, Gi_1060 + 134 + Li_4);
ObjectSet("SIG_BARS_TF1", OBJPROP_YDISTANCE, Gi_1056 + 25);
ObjectDelete("SIG_BARS_TF2");
ObjectCreate("SIG_BARS_TF2", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SIG_BARS_TF2", text_284, 7, "Arial Bold", G_color_1080);
ObjectSet("SIG_BARS_TF2", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SIG_BARS_TF2", OBJPROP_XDISTANCE, Gi_1060 + 114 + Li_8);
ObjectSet("SIG_BARS_TF2", OBJPROP_YDISTANCE, Gi_1056 + 25);
ObjectDelete("SIG_BARS_TF3");
ObjectCreate("SIG_BARS_TF3", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SIG_BARS_TF3", text_292, 7, "Arial Bold", G_color_1080);
ObjectSet("SIG_BARS_TF3", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SIG_BARS_TF3", OBJPROP_XDISTANCE, Gi_1060 + 94 + Li_12);
ObjectSet("SIG_BARS_TF3", OBJPROP_YDISTANCE, Gi_1056 + 25);
ObjectDelete("SIG_BARS_TF4");
ObjectCreate("SIG_BARS_TF4", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SIG_BARS_TF4", text_300, 7, "Arial Bold", G_color_1080);
ObjectSet("SIG_BARS_TF4", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SIG_BARS_TF4", OBJPROP_XDISTANCE, Gi_1060 + 74 + Li_16);
ObjectSet("SIG_BARS_TF4", OBJPROP_YDISTANCE, Gi_1056 + 25);
ObjectDelete("SIG_BARS_TF5");
ObjectCreate("SIG_BARS_TF5", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SIG_BARS_TF5", text_308, 7, "Arial Bold", G_color_1080);
ObjectSet("SIG_BARS_TF5", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SIG_BARS_TF5", OBJPROP_XDISTANCE, Gi_1060 + 54 + Li_20);
ObjectSet("SIG_BARS_TF5", OBJPROP_YDISTANCE, Gi_1056 + 25);
ObjectDelete("SIG_BARS_TF6");
ObjectCreate("SIG_BARS_TF6", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SIG_BARS_TF6", text_316, 7, "Arial Bold", G_color_1080);
ObjectSet("SIG_BARS_TF6", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SIG_BARS_TF6", OBJPROP_XDISTANCE, Gi_1060 + 34 + Li_24);
ObjectSet("SIG_BARS_TF6", OBJPROP_YDISTANCE, Gi_1056 + 25);
ObjectDelete("SIG_BARS_TF7");
ObjectCreate("SIG_BARS_TF7", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SIG_BARS_TF7", text_324, 7, "Arial Bold", G_color_1080);
ObjectSet("SIG_BARS_TF7", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SIG_BARS_TF7", OBJPROP_XDISTANCE, Gi_1060 + 14 + Li_28);
ObjectSet("SIG_BARS_TF7", OBJPROP_YDISTANCE, Gi_1056 + 25);
string text_332 = "";
string text_340 = "";
string text_348 = "";
string text_356 = "";
string text_364 = "";
string text_372 = "";
string text_380 = "";
string Ls_unused_388 = "";
string Ls_unused_396 = "";
double imacd_404 = iMACD(NULL, G_timeframe_1024, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_MAIN, 0);
double imacd_412 = iMACD(NULL, G_timeframe_1024, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_SIGNAL, 0);
double imacd_420 = iMACD(NULL, G_timeframe_1028, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_MAIN, 0);
double imacd_428 = iMACD(NULL, G_timeframe_1028, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_SIGNAL, 0);
double imacd_436 = iMACD(NULL, G_timeframe_1032, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_MAIN, 0);
double imacd_444 = iMACD(NULL, G_timeframe_1032, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_SIGNAL, 0);
double imacd_452 = iMACD(NULL, G_timeframe_1036, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_MAIN, 0);
double imacd_460 = iMACD(NULL, G_timeframe_1036, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_SIGNAL, 0);
double imacd_468 = iMACD(NULL, G_timeframe_1040, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_MAIN, 0);
double imacd_476 = iMACD(NULL, G_timeframe_1040, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_SIGNAL, 0);
double imacd_484 = iMACD(NULL, G_timeframe_1044, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_MAIN, 0);
double imacd_492 = iMACD(NULL, G_timeframe_1044, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_SIGNAL, 0);
double imacd_500 = iMACD(NULL, G_timeframe_1048, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_MAIN, 0);
double imacd_508 = iMACD(NULL, G_timeframe_1048, G_period_1128, G_period_1132, G_period_1136, G_applied_price_1140, MODE_SIGNAL, 0);
if (imacd_404 > imacd_412) {
text_356 = "-";
color_44 = G_color_1152;
}
if (imacd_404 <= imacd_412) {
text_356 = "-";
color_44 = G_color_1148;
}
if (imacd_404 > imacd_412 && imacd_404 > 0.0) {
text_356 = "-";
color_44 = G_color_1144;
}
if (imacd_404 <= imacd_412 && imacd_404 < 0.0) {
text_356 = "-";
color_44 = G_color_1156;
}
if (imacd_420 > imacd_428) {
text_364 = "-";
color_48 = G_color_1152;
}
if (imacd_420 <= imacd_428) {
text_364 = "-";
color_48 = G_color_1148;
}
if (imacd_420 > imacd_428 && imacd_420 > 0.0) {
text_364 = "-";
color_48 = G_color_1144;
}
if (imacd_420 <= imacd_428 && imacd_420 < 0.0) {
text_364 = "-";
color_48 = G_color_1156;
}
if (imacd_436 > imacd_444) {
text_372 = "-";
color_52 = G_color_1152;
}
if (imacd_436 <= imacd_444) {
text_372 = "-";
color_52 = G_color_1148;
}
if (imacd_436 > imacd_444 && imacd_436 > 0.0) {
text_372 = "-";
color_52 = G_color_1144;
}
if (imacd_436 <= imacd_444 && imacd_436 < 0.0) {
text_372 = "-";
color_52 = G_color_1156;
}
if (imacd_452 > imacd_460) {
text_380 = "-";
color_56 = G_color_1152;
}
if (imacd_452 <= imacd_460) {
text_380 = "-";
color_56 = G_color_1148;
}
if (imacd_452 > imacd_460 && imacd_452 > 0.0) {
text_380 = "-";
color_56 = G_color_1144;
}
if (imacd_452 <= imacd_460 && imacd_452 < 0.0) {
text_380 = "-";
color_56 = G_color_1156;
}
if (imacd_468 > imacd_476) {
text_340 = "-";
color_36 = G_color_1152;
}
if (imacd_468 <= imacd_476) {
text_340 = "-";
color_36 = G_color_1148;
}
if (imacd_468 > imacd_476 && imacd_468 > 0.0) {
text_340 = "-";
color_36 = G_color_1144;
}
if (imacd_468 <= imacd_476 && imacd_468 < 0.0) {
text_340 = "-";
color_36 = G_color_1156;
}
if (imacd_484 > imacd_492) {
text_348 = "-";
color_40 = G_color_1152;
}
if (imacd_484 <= imacd_492) {
text_348 = "-";
color_40 = G_color_1148;
}
if (imacd_484 > imacd_492 && imacd_484 > 0.0) {
text_348 = "-";
color_40 = G_color_1144;
}
if (imacd_484 <= imacd_492 && imacd_484 < 0.0) {
text_348 = "-";
color_40 = G_color_1156;
}
if (imacd_500 > imacd_508) {
text_332 = "-";
color_32 = G_color_1152;
}
if (imacd_500 <= imacd_508) {
text_332 = "-";
color_32 = G_color_1148;
}
if (imacd_500 > imacd_508 && imacd_500 > 0.0) {
text_332 = "-";
color_32 = G_color_1144;
}
if (imacd_500 <= imacd_508 && imacd_500 < 0.0) {
text_332 = "-";
color_32 = G_color_1156;
}
ObjectDelete("SSignalMACD_TEXT");
ObjectCreate("SSignalMACD_TEXT", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalMACD_TEXT", "MACD", 6, "Tahoma Narrow", G_color_1084);
ObjectSet("SSignalMACD_TEXT", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalMACD_TEXT", OBJPROP_XDISTANCE, Gi_1060 + 153);
ObjectSet("SSignalMACD_TEXT", OBJPROP_YDISTANCE, Gi_1056 + 35);
ObjectDelete("SSignalMACDM1");
ObjectCreate("SSignalMACDM1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalMACDM1", text_356, 45, "Tahoma Narrow", color_44);
ObjectSet("SSignalMACDM1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalMACDM1", OBJPROP_XDISTANCE, Gi_1060 + 130);
ObjectSet("SSignalMACDM1", OBJPROP_YDISTANCE, Gi_1056 + 2);
ObjectDelete("SSignalMACDM5");
ObjectCreate("SSignalMACDM5", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalMACDM5", text_364, 45, "Tahoma Narrow", color_48);
ObjectSet("SSignalMACDM5", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalMACDM5", OBJPROP_XDISTANCE, Gi_1060 + 110);
ObjectSet("SSignalMACDM5", OBJPROP_YDISTANCE, Gi_1056 + 2);
ObjectDelete("SSignalMACDM15");
ObjectCreate("SSignalMACDM15", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalMACDM15", text_372, 45, "Tahoma Narrow", color_52);
ObjectSet("SSignalMACDM15", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalMACDM15", OBJPROP_XDISTANCE, Gi_1060 + 90);
ObjectSet("SSignalMACDM15", OBJPROP_YDISTANCE, Gi_1056 + 2);
ObjectDelete("SSignalMACDM30");
ObjectCreate("SSignalMACDM30", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalMACDM30", text_380, 45, "Tahoma Narrow", color_56);
ObjectSet("SSignalMACDM30", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalMACDM30", OBJPROP_XDISTANCE, Gi_1060 + 70);
ObjectSet("SSignalMACDM30", OBJPROP_YDISTANCE, Gi_1056 + 2);
ObjectDelete("SSignalMACDH1");
ObjectCreate("SSignalMACDH1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalMACDH1", text_340, 45, "Tahoma Narrow", color_36);
ObjectSet("SSignalMACDH1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalMACDH1", OBJPROP_XDISTANCE, Gi_1060 + 50);
ObjectSet("SSignalMACDH1", OBJPROP_YDISTANCE, Gi_1056 + 2);
ObjectDelete("SSignalMACDH4");
ObjectCreate("SSignalMACDH4", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalMACDH4", text_348, 45, "Tahoma Narrow", color_40);
ObjectSet("SSignalMACDH4", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalMACDH4", OBJPROP_XDISTANCE, Gi_1060 + 30);
ObjectSet("SSignalMACDH4", OBJPROP_YDISTANCE, Gi_1056 + 2);
ObjectDelete("SSignalMACDD1");
ObjectCreate("SSignalMACDD1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalMACDD1", text_332, 45, "Tahoma Narrow", color_32);
ObjectSet("SSignalMACDD1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalMACDD1", OBJPROP_XDISTANCE, Gi_1060 + 10);
ObjectSet("SSignalMACDD1", OBJPROP_YDISTANCE, Gi_1056 + 2);
double irsi_516 = iRSI(NULL, G_timeframe_1048, G_period_1176, G_applied_price_1180, 0);
double irsi_524 = iRSI(NULL, G_timeframe_1044, G_period_1176, G_applied_price_1180, 0);
double irsi_532 = iRSI(NULL, G_timeframe_1040, G_period_1176, G_applied_price_1180, 0);
double irsi_540 = iRSI(NULL, G_timeframe_1036, G_period_1176, G_applied_price_1180, 0);
double irsi_548 = iRSI(NULL, G_timeframe_1032, G_period_1176, G_applied_price_1180, 0);
double irsi_556 = iRSI(NULL, G_timeframe_1028, G_period_1176, G_applied_price_1180, 0);
double irsi_564 = iRSI(NULL, G_timeframe_1024, G_period_1176, G_applied_price_1180, 0);
double istochastic_572 = iStochastic(NULL, G_timeframe_1048, G_period_1208, G_period_1212, G_slowing_1216, G_ma_method_1220, 0, MODE_MAIN, 0);
double istochastic_580 = iStochastic(NULL, G_timeframe_1044, G_period_1208, G_period_1212, G_slowing_1216, G_ma_method_1220, 0, MODE_MAIN, 0);
double istochastic_588 = iStochastic(NULL, G_timeframe_1040, G_period_1208, G_period_1212, G_slowing_1216, G_ma_method_1220, 0, MODE_MAIN, 0);
double istochastic_596 = iStochastic(NULL, G_timeframe_1036, G_period_1208, G_period_1212, G_slowing_1216, G_ma_method_1220, 0, MODE_MAIN, 0);
double istochastic_604 = iStochastic(NULL, G_timeframe_1032, G_period_1208, G_period_1212, G_slowing_1216, G_ma_method_1220, 0, MODE_MAIN, 0);
double istochastic_612 = iStochastic(NULL, G_timeframe_1028, G_period_1208, G_period_1212, G_slowing_1216, G_ma_method_1220, 0, MODE_MAIN, 0);
double istochastic_620 = iStochastic(NULL, G_timeframe_1024, G_period_1208, G_period_1212, G_slowing_1216, G_ma_method_1220, 0, MODE_MAIN, 0);
double icci_628 = iCCI(NULL, G_timeframe_1048, G_period_1192, G_applied_price_1196, 0);
double icci_636 = iCCI(NULL, G_timeframe_1044, G_period_1192, G_applied_price_1196, 0);
double icci_644 = iCCI(NULL, G_timeframe_1040, G_period_1192, G_applied_price_1196, 0);
double icci_652 = iCCI(NULL, G_timeframe_1036, G_period_1192, G_applied_price_1196, 0);
double icci_660 = iCCI(NULL, G_timeframe_1032, G_period_1192, G_applied_price_1196, 0);
double icci_668 = iCCI(NULL, G_timeframe_1028, G_period_1192, G_applied_price_1196, 0);
double icci_676 = iCCI(NULL, G_timeframe_1024, G_period_1192, G_applied_price_1196, 0);
string text_684 = "";
string text_692 = "";
string text_700 = "";
string text_708 = "";
string text_716 = "";
string text_724 = "";
string text_732 = "";
string Ls_unused_740 = "";
string Ls_unused_748 = "";
text_732 = "-";
color color_756 = G_color_1240;
text_716 = "-";
color color_760 = G_color_1240;
text_684 = "-";
color color_764 = G_color_1240;
text_724 = "-";
color color_768 = G_color_1240;
text_692 = "-";
color color_772 = G_color_1240;
text_700 = "-";
color color_776 = G_color_1240;
text_708 = "-";
color color_780 = G_color_1240;
if (irsi_516 > 50.0 && istochastic_572 > 40.0 && icci_628 > 0.0) {
text_732 = "-";
color_756 = G_color_1232;
}
if (irsi_524 > 50.0 && istochastic_580 > 40.0 && icci_636 > 0.0) {
text_716 = "-";
color_760 = G_color_1232;
}
if (irsi_532 > 50.0 && istochastic_588 > 40.0 && icci_644 > 0.0) {
text_684 = "-";
color_764 = G_color_1232;
}
if (irsi_540 > 50.0 && istochastic_596 > 40.0 && icci_652 > 0.0) {
text_724 = "-";
color_768 = G_color_1232;
}
if (irsi_548 > 50.0 && istochastic_604 > 40.0 && icci_660 > 0.0) {
text_692 = "-";
color_772 = G_color_1232;
}
if (irsi_556 > 50.0 && istochastic_612 > 40.0 && icci_668 > 0.0) {
text_700 = "-";
color_776 = G_color_1232;
}
if (irsi_564 > 50.0 && istochastic_620 > 40.0 && icci_676 > 0.0) {
text_708 = "-";
color_780 = G_color_1232;
}
if (irsi_516 < 50.0 && istochastic_572 < 60.0 && icci_628 < 0.0) {
text_732 = "-";
color_756 = G_color_1236;
}
if (irsi_524 < 50.0 && istochastic_580 < 60.0 && icci_636 < 0.0) {
text_716 = "-";
color_760 = G_color_1236;
}
if (irsi_532 < 50.0 && istochastic_588 < 60.0 && icci_644 < 0.0) {
text_684 = "-";
color_764 = G_color_1236;
}
if (irsi_540 < 50.0 && istochastic_596 < 60.0 && icci_652 < 0.0) {
text_724 = "-";
color_768 = G_color_1236;
}
if (irsi_548 < 50.0 && istochastic_604 < 60.0 && icci_660 < 0.0) {
text_692 = "-";
color_772 = G_color_1236;
}
if (irsi_556 < 50.0 && istochastic_612 < 60.0 && icci_668 < 0.0) {
text_700 = "-";
color_776 = G_color_1236;
}
if (irsi_564 < 50.0 && istochastic_620 < 60.0 && icci_676 < 0.0) {
text_708 = "-";
color_780 = G_color_1236;
}
ObjectDelete("SSignalSTR_TEXT");
ObjectCreate("SSignalSTR_TEXT", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SSignalSTR_TEXT", "STR", 6, "Tahoma Narrow", G_color_1084);
ObjectSet("SSignalSTR_TEXT", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SSignalSTR_TEXT", OBJPROP_XDISTANCE, Gi_1060 + 153);
ObjectSet("SSignalSTR_TEXT", OBJPROP_YDISTANCE, Gi_1056 + 43);
ObjectDelete("SignalSTRM1");
ObjectCreate("SignalSTRM1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalSTRM1", text_708, 45, "Tahoma Narrow", color_780);
ObjectSet("SignalSTRM1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalSTRM1", OBJPROP_XDISTANCE, Gi_1060 + 130);
ObjectSet("SignalSTRM1", OBJPROP_YDISTANCE, Gi_1056 + 10);
ObjectDelete("SignalSTRM5");
ObjectCreate("SignalSTRM5", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalSTRM5", text_700, 45, "Tahoma Narrow", color_776);
ObjectSet("SignalSTRM5", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalSTRM5", OBJPROP_XDISTANCE, Gi_1060 + 110);
ObjectSet("SignalSTRM5", OBJPROP_YDISTANCE, Gi_1056 + 10);
ObjectDelete("SignalSTRM15");
ObjectCreate("SignalSTRM15", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalSTRM15", text_692, 45, "Tahoma Narrow", color_772);
ObjectSet("SignalSTRM15", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalSTRM15", OBJPROP_XDISTANCE, Gi_1060 + 90);
ObjectSet("SignalSTRM15", OBJPROP_YDISTANCE, Gi_1056 + 10);
ObjectDelete("SignalSTRM30");
ObjectCreate("SignalSTRM30", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalSTRM30", text_724, 45, "Tahoma Narrow", color_768);
ObjectSet("SignalSTRM30", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalSTRM30", OBJPROP_XDISTANCE, Gi_1060 + 70);
ObjectSet("SignalSTRM30", OBJPROP_YDISTANCE, Gi_1056 + 10);
ObjectDelete("SignalSTRH1");
ObjectCreate("SignalSTRH1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalSTRH1", text_684, 45, "Tahoma Narrow", color_764);
ObjectSet("SignalSTRH1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalSTRH1", OBJPROP_XDISTANCE, Gi_1060 + 50);
ObjectSet("SignalSTRH1", OBJPROP_YDISTANCE, Gi_1056 + 10);
ObjectDelete("SignalSTRH4");
ObjectCreate("SignalSTRH4", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalSTRH4", text_716, 45, "Tahoma Narrow", color_760);
ObjectSet("SignalSTRH4", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalSTRH4", OBJPROP_XDISTANCE, Gi_1060 + 30);
ObjectSet("SignalSTRH4", OBJPROP_YDISTANCE, Gi_1056 + 10);
ObjectDelete("SignalSTRD1");
ObjectCreate("SignalSTRD1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalSTRD1", text_732, 45, "Tahoma Narrow", color_756);
ObjectSet("SignalSTRD1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalSTRD1", OBJPROP_XDISTANCE, Gi_1060 + 10);
ObjectSet("SignalSTRD1", OBJPROP_YDISTANCE, Gi_1056 + 10);
double ima_784 = iMA(Symbol(), G_timeframe_1024, G_period_1252, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_792 = iMA(Symbol(), G_timeframe_1024, G_period_1256, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_800 = iMA(Symbol(), G_timeframe_1028, G_period_1252, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_808 = iMA(Symbol(), G_timeframe_1028, G_period_1256, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_816 = iMA(Symbol(), G_timeframe_1032, G_period_1252, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_824 = iMA(Symbol(), G_timeframe_1032, G_period_1256, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_832 = iMA(Symbol(), G_timeframe_1036, G_period_1252, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_840 = iMA(Symbol(), G_timeframe_1036, G_period_1256, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_848 = iMA(Symbol(), G_timeframe_1040, G_period_1252, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_856 = iMA(Symbol(), G_timeframe_1040, G_period_1256, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_864 = iMA(Symbol(), G_timeframe_1044, G_period_1252, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_872 = iMA(Symbol(), G_timeframe_1044, G_period_1256, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_880 = iMA(Symbol(), G_timeframe_1048, G_period_1252, 0, G_ma_method_1260, G_applied_price_1264, 0);
double ima_888 = iMA(Symbol(), G_timeframe_1048, G_period_1256, 0, G_ma_method_1260, G_applied_price_1264, 0);
string text_896 = "";
string text_904 = "";
string text_912 = "";
string text_920 = "";
string text_928 = "";
string text_936 = "";
string text_944 = "";
string Ls_unused_952 = "";
string Ls_unused_960 = "";
if (ima_784 > ima_792) {
text_896 = "-";
color_68 = G_color_1276;
}
if (ima_784 <= ima_792) {
text_896 = "-";
color_68 = G_color_1280;
}
if (ima_800 > ima_808) {
text_904 = "-";
color_72 = G_color_1276;
}
if (ima_800 <= ima_808) {
text_904 = "-";
color_72 = G_color_1280;
}
if (ima_816 > ima_824) {
text_912 = "-";
color_76 = G_color_1276;
}
if (ima_816 <= ima_824) {
text_912 = "-";
color_76 = G_color_1280;
}
if (ima_832 > ima_840) {
text_920 = "-";
color_80 = G_color_1276;
}
if (ima_832 <= ima_840) {
text_920 = "-";
color_80 = G_color_1280;
}
if (ima_848 > ima_856) {
text_928 = "-";
color_84 = G_color_1276;
}
if (ima_848 <= ima_856) {
text_928 = "-";
color_84 = G_color_1280;
}
if (ima_864 > ima_872) {
text_936 = "-";
color_88 = G_color_1276;
}
if (ima_864 <= ima_872) {
text_936 = "-";
color_88 = G_color_1280;
}
if (ima_880 > ima_888) {
text_944 = "-";
color_92 = G_color_1276;
}
if (ima_880 <= ima_888) {
text_944 = "-";
color_92 = G_color_1280;
}
ObjectDelete("SignalEMA_TEXT");
ObjectCreate("SignalEMA_TEXT", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalEMA_TEXT", "EMA", 6, "Tahoma Narrow", G_color_1084);
ObjectSet("SignalEMA_TEXT", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalEMA_TEXT", OBJPROP_XDISTANCE, Gi_1060 + 153);
ObjectSet("SignalEMA_TEXT", OBJPROP_YDISTANCE, Gi_1056 + 51);
ObjectDelete("SignalEMAM1");
ObjectCreate("SignalEMAM1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalEMAM1", text_896, 45, "Tahoma Narrow", color_68);
ObjectSet("SignalEMAM1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalEMAM1", OBJPROP_XDISTANCE, Gi_1060 + 130);
ObjectSet("SignalEMAM1", OBJPROP_YDISTANCE, Gi_1056 + 18);
ObjectDelete("SignalEMAM5");
ObjectCreate("SignalEMAM5", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalEMAM5", text_904, 45, "Tahoma Narrow", color_72);
ObjectSet("SignalEMAM5", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalEMAM5", OBJPROP_XDISTANCE, Gi_1060 + 110);
ObjectSet("SignalEMAM5", OBJPROP_YDISTANCE, Gi_1056 + 18);
ObjectDelete("SignalEMAM15");
ObjectCreate("SignalEMAM15", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalEMAM15", text_912, 45, "Tahoma Narrow", color_76);
ObjectSet("SignalEMAM15", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalEMAM15", OBJPROP_XDISTANCE, Gi_1060 + 90);
ObjectSet("SignalEMAM15", OBJPROP_YDISTANCE, Gi_1056 + 18);
ObjectDelete("SignalEMAM30");
ObjectCreate("SignalEMAM30", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalEMAM30", text_920, 45, "Tahoma Narrow", color_80);
ObjectSet("SignalEMAM30", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalEMAM30", OBJPROP_XDISTANCE, Gi_1060 + 70);
ObjectSet("SignalEMAM30", OBJPROP_YDISTANCE, Gi_1056 + 18);
ObjectDelete("SignalEMAH1");
ObjectCreate("SignalEMAH1", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalEMAH1", text_928, 45, "Tahoma Narrow", color_84);
ObjectSet("SignalEMAH1", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalEMAH1", OBJPROP_XDISTANCE, Gi_1060 + 50);
ObjectSet("SignalEMAH1", OBJPROP_YDISTANCE, Gi_1056 + 18);
ObjectDelete("SignalEMAH4");
ObjectCreate("SignalEMAH4", OBJ_LABEL, G_window_1064, 0, 0);
ObjectSetText("SignalEMAH4", text_936, 45, "Tahoma Narrow", color_88);
ObjectSet("SignalEMAH4", OBJPROP_CORNER, G_corner_1052);
ObjectSet("SignalEMAH4", OBJPROP_XDISTANCE, Gi_1060 + 30);
ObjectSet("SignalEMAH4", OBJPROP_YDISTANCE, Gi_1056 + 18);
ObjectDelete("SignalEMAD1");
Показано первые 50% кода (символов: 75960)
Открыть по тарифу
Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.
Разовая покупка файла
На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.
Зачем нужен email? После подтверждения оплаты файл сохранится в кабинете на этот email. Если аккаунта ещё нет, мы создадим его и пришлём ссылку для задания пароля. Если аккаунт уже есть, покупка добавится в него. Укажите адрес, к которому у вас есть доступ.
Чтобы оформить заказ, введите email и перейдите к оплате.