AF-Investing
Похожие материалы по тегам
Сообщите нам, если считаете, что материал размещён без разрешения.
Сообщить о материале
Обращение по товару «investing.mq4» отправится на рассмотрение. Укажите контакт для ответа и опишите причину.
О программе
AF-Investing — торговый советник для MetaTrader 4, реализующий одновременную работу нескольких торговых стратегий на разных таймфреймах. Программа отображает на графике данные о сигналах индикаторов MACD, RSI, Stochastic, CCI и EMA для множества таймфреймов, а также показывает информацию о балансе, эквити, спреде и волатильности счёта.
Советник предоставляет гибкую настройку торговых условий: фильтрацию по дням недели и часам торговли, сессионные фильтры (Лондон, Нью-Йорк), фильтры новостей с разделением по уровню влияния и фильтры валютных пар. Встроена система управления лотами с возможностью автоматического расчёта размера позиции на основе риска в процентах от депозита.
Поддерживаются стоп-лосс, тейк-профит, трейлинг-стоп и стоп по эквити. Для каждой из трёх встроенных стратегий задаются отдельные магические номера, максимальное количество сделок и параметры торговли. Продукт предназначен для работы на таймфреймах от M1 до D1.
Настройки программы
| Настройка | Описание |
|---|---|
| Menu | Текстовый параметр заголовка главного меню настроек |
| EAName | Название торгового советника |
| LabelInfo | Отображение информационных меток на графике |
| MagicNumber | Текстовый параметр, управляющий переопределением магического номера случайным образом |
| Magic | Магический номер для ручной идентификации ордеров |
| UseRandomMagic | Использование случайного магического номера в заданном диапазоне |
| RandomMagicLower | Нижняя граница диапазона случайных магических номеров |
| RandomMagicUpper | Верхняя граница диапазона случайных магических номеров |
| DayFilter | Текстовый параметр для выбора дней торговли |
| Monday | Разрешить торговлю в понедельник |
| Tuesday | Разрешить торговлю во вторник |
| Wednesday | Разрешить торговлю в среду |
| Thursday | Разрешить торговлю в четверг |
| Friday | Разрешить торговлю в пятницу |
| Saturday | Разрешить торговлю в субботу |
| Sunday | Разрешить торговлю в воскресенье |
| TradeMonthEnd | Разрешить торговлю в конце месяца |
| MonthEndOffset | Смещение в днях от конца месяца для торговли |
| TradeFirstDayOffset | Включение торговли с учётом смещения от первого дня месяца |
| DayOffset | Смещение в днях для торговли в первые дни месяца |
| GMTOffset | Смещение часового пояса GMT для фильтров сессий |
| TradeNFP | Разрешить торговлю вокруг публикации данных NFP |
| TradeMondayAfterNFP | Разрешить торговлю в понедельник после публикации NFP |
| TradeADP | Разрешить торговлю вокруг публикации данных ADP |
| HourFilter | Текстовый параметр для выбора торговых часов |
| Trading24h | Режим торговли круглосуточно без ограничений по часам |
| HoursFrom | Начальный час для ручного задания торговой сессии |
| HoursTo | Конечный час для ручного задания торговой сессии |
| Session_Filter | Текстовый параметр инструкции по сессионным фильтрам |
| Session_Filter1 | Текстовый параметр описания первой сессии |
| SessionFilter1 | Включение первого сессионного фильтра (Лондон) |
| SF1Hour_On | Час начала первой сессионной фильтрации |
| SF1MinuteOn | Минута начала первой сессионной фильтрации |
| SF1Hour_Off | Час окончания первой сессионной фильтрации |
| SF1MinuteOff | Минута окончания первой сессионной фильтрации |
| Session_Filter2 | Текстовый параметр описания второй сессии |
| SessionFilter2 | Включение второго сессионного фильтра (Нью-Йорк) |
| SF2Hour_On | Час начала второй сессионной фильтрации |
| SF2MinuteOn | Минута начала второй сессионной фильтрации |
| SF2Hour_Off | Час окончания второй сессионной фильтрации |
| SF2MinuteOff | Минута окончания второй сессионной фильтрации |
| info9 | Текстовый параметр раздела настроек фильтра новостей |
| AvoidNews | Фильтр новостей: избегать торговых сессий вблизи важных новостей |
| High_Impact | Фильтр новостей высокого влияния |
| MinsUntilNextHighNews | Количество минут до следующей новости высокого влияния |
| MinsSincePrevHighNews | Количество минут с последней новости высокого влияния |
| Medium_Impact | Фильтр новостей среднего влияния |
| MinsUntilNextMediumNews | Количество минут до следующей новости среднего влияния |
| MinsSincePrevMediumNews | Количество минут с последней новости среднего влияния |
| Low_Impact | Фильтр новостей низкого влияния |
| MinsUntilNextLowNews | Количество минут до следующей новости низкого влияния |
| MinsSincePrevLowNews | Количество минут с последней новости низкого влияния |
| info10 | Текстовый параметр раздела фильтра валютных пар |
| USD | Фильтр торговой пары USD (включить/выключить) |
| EUR | Фильтр торговой пары EUR (включить/выключить) |
| GBP | Фильтр торговой пары GBP (включить/выключить) |
| JPY | Фильтр торговой пары JPY (включить/выключить) |
| AUD | Фильтр торговой пары AUD (включить/выключить) |
| CAD | Фильтр торговой пары CAD (включить/выключить) |
| CHF | Фильтр торговой пары CHF (включить/выключить) |
| NZD | Фильтр торговой пары NZD (включить/выключить) |
| TSD_CalendarID | Идентификатор календаря экономических событий |
| info5 | Текстовый параметр раздела настроек ордеров |
| ATURANWAJIB | Групповая настройка основных параметров |
| Online Indicator. (OnlineIndicatorAddress) | Адрес онлайн-индикатора |
| UseOnlineIndicator | Использование онлайн-индикатора |
| Lots | Размер лота по умолчанию |
| MicroLot | Минимальный размер лота |
| LotExponent | Экспонента для расчёта размера лота в стратегиях |
| lotdecimal | Количество знаков после запятой в размере лота |
| PipStep | Шаг в пунктах для проверки расстояния между позициями |
| MaxLots | Максимально допустимый размер лота |
| ReverseOrder | Включение обратного направления ордера |
| SlipPage | Допустимое отклонение цены для исполнения ордера |
| RiskInPercent | Риск в процентах от депозита на одну позицию |
| AutoLotSize | Автоматический расчёт размера лота на основе заданного риска |
| UseTimeStop | Включение временного стопа для закрытия позиций |
| StopHours | Включение ограничения по часам торговли |
| StopMinutes | Включение ограничения по минутам торговли |
| MM | Включение/выключение менеджмента позиции |
| TakeProfit | Тейк-профит в пунктах |
| UseEquityStop | Стоп-лосс по эквити |
| TotalEquityRisk | Процент эквити для стоп-лосса по эквити |
| UseTrailingStop | Включение трейлинг-стопа |
| TrailStart | Прибыль в пунктах для активации трейлинг-стопа |
| TrailStop | Расстояние стоп-лосса в пунктах при трейлинг-стопе |
| slip | Допустимое отклонение цены для исполнения ордера (резервный параметр) |
| ATURANFIBO | Групповая настройка параметров стратегии FIBO |
| MaxTrades_Hilo | Максимальное количество одновременных сделок стратегии Hilo |
| MagicNumber_Hilo | Магический номер стратегии Hilo |
| ATURANRSI | Групповая настройка параметров стратегии RSI |
| MaxTrades_15 | Максимальное количество одновременных сделок стратегии AF-Scalper |
| g_magic_176_15 | Магический номер стратегии AF-Scalper |
| ATURANRANGE | Групповая настройка параметров стратегии DayRange |
| MaxTrades_16 | Максимальное количество одновременных сделок стратегии AF-TrendKiller |
| g_magic_176_16 | Магический номер стратегии AF-TrendKiller |
| UseNewsFilter | Включение фильтра новостей для всех стратегий |
Поиск по коду файла
#property version "19.0"
#property description "=Minimum Deposit 2500$/2 Pair"
#property description "=Recommended Pair EURUSD,EURJPY,USDCHF,GBPUSD,GBPJPY,EURGBP="
#property description "=TF M30="
extern string Menu = " AF-Investing Setup ";
extern string EAName = " AF-Investing.Cv ";
extern bool LabelInfo = True;
extern string MagicNumber = " Random Magic will overide manual set Magic Number ";
extern int Magic = 128738;
extern bool UseRandomMagic = False;
extern int RandomMagicLower = 100000;
extern int RandomMagicUpper = 200000;
extern string DayFilter = " Select the days for Indo Run to trade ";
extern bool Monday = True;
extern bool Tuesday = True;
extern bool Wednesday = True;
extern bool Thursday = True;
extern bool Friday = True;
extern bool Saturday = True;
extern bool Sunday = True;
extern bool TradeMonthEnd = True;
extern int MonthEndOffset = 3;
extern bool TradeFirstDayOffset = True;
extern int DayOffset = 0;
extern double GMTOffset = 0.0;
extern bool TradeNFP = True;
extern bool TradeMondayAfterNFP = True;
extern bool TradeADP = True;
extern string HourFilter = " Select the Trading Hours or set to 24h ";
extern bool Trading24h = True;
extern int HoursFrom = 10;
extern int HoursTo = 6;
extern string Session_Filter = " Only in 24 Mode: Use both Session Filter together only! ";
extern string Session_Filter1 = " Filters per default London Session (GMT)! ";
extern bool SessionFilter1 = false;
extern double SF1Hour_On = 5.0;
extern double SF1MinuteOn = 45.0;
extern double SF1Hour_Off = 9.0;
extern double SF1MinuteOff = 0.0;
extern string Session_Filter2 = " Filters per default NY Session (GMT)! ";
extern bool SessionFilter2 = false;
extern double SF2Hour_On = 11.0;
extern double SF2MinuteOn = 45.0;
extern double SF2Hour_Off = 17.0;
extern double SF2MinuteOff = 30.0;
extern string info9 = " News Filter Setup ";
extern bool AvoidNews = true;
extern bool High_Impact = true;
extern int MinsUntilNextHighNews = 60;
extern int MinsSincePrevHighNews = 60;
extern bool Medium_Impact = true;
extern int MinsUntilNextMediumNews = 40;
extern int MinsSincePrevMediumNews = 40;
extern bool Low_Impact = false;
extern int MinsUntilNextLowNews = 30;
extern int MinsSincePrevLowNews = 30;
extern string info10 = " News Currency Filter ";
extern bool USD = true;
extern bool EUR = true;
extern bool GBP = true;
extern bool JPY = true;
extern bool AUD = false;
extern bool CAD = false;
extern bool CHF = false;
extern bool NZD = false;
extern int TSD_CalendarID = 4;
extern string TSD_Calendar_URL = " ";
extern string info5 = " Main Order Setup ";
extern string ATURANWAJIB = "MENU SETTINGS";
extern string OnlineIndicatorAddress ="103.233.102.2"; //Online Indicator.
extern string IndicatorServer = ""; //Connecting to server
extern bool UseOnlineIndicator = true;
extern double Lots = 0.01;
extern double MicroLot = 0.01;
extern double LotExponent = 1.44;
extern int lotdecimal = 2;
extern double PipStep = 190.0;
extern double MaxLots = 99.0;
extern bool ReverseOrder = false;
extern double SlipPage = 4.0;
extern double RiskInPercent= 10.0;
extern bool AutoLotSize = true;
extern bool UseTimeStop = false;
extern bool StopHours = true;
extern bool StopMinutes = true;
extern bool MM = FALSE;
extern double TakeProfit = 50.0;
extern bool UseEquityStop = FALSE;
extern double TotalEquityRisk = 20.0;
extern bool UseTrailingStop = FALSE;
extern double TrailStart = 13.0;
extern double TrailStop = 3.0;
extern double slip = 5.0;
extern string ATURANFIBO = "FIBO-SETTINGS";
extern int MaxTrades_Hilo = 20;
bool gi_184 = FALSE;
double gd_188 = 48.0;
double g_pips_196 = 40.0;
double g_slippage_204;
extern int MagicNumber_Hilo = 10278;
double g_price_216;
double gd_224;
double gd_unused_232;
double gd_unused_240;
double gd_248;
double gd_256;
double g_price_264;
double g_bid_272;
double g_ask_280;
double gd_288;
double gd_296;
double gd_304;
bool gi_312;
string gs_316 = "AF-Investing.CV";
int gi_324 = 0;
int gi_328;
int gi_332 = 0;
double gd_336;
int g_pos_344 = 0;
int gi_348;
double gd_352 = 0.0;
bool gi_360 = FALSE;
bool gi_364 = FALSE;
bool gi_368 = FALSE;
int gi_372;
bool gi_376 = FALSE;
double gd_380;
double gd_388;
extern string ATURANRSI = "RSI-SETTINGS";
extern int MaxTrades_15 = 20;
int g_timeframe_408 = PERIOD_H1;
double g_pips_412 = 40.0;
bool gi_420 = FALSE;
double gd_424 = 48.0;
double g_slippage_432;
extern int g_magic_176_15 = 22324;
double g_price_444;
double gd_452;
double gd_unused_460;
double gd_unused_468;
double g_price_476;
double g_bid_484;
double g_ask_492;
double gd_500;
double gd_508;
double gd_516;
bool gi_524;
string gs_528 = "AF-Investing.Cv";
int gi_536 = 0;
int gi_540;
int gi_544 = 0;
double gd_548;
int g_pos_556 = 0;
int gi_560;
double gd_564 = 0.0;
bool gi_572 = FALSE;
bool gi_576 = FALSE;
bool gi_580 = FALSE;
int gi_584;
bool gi_588 = FALSE;
double gd_592;
double gd_600;
int g_datetime_608 = 1;
extern string ATURANRANGE = "DAYRANGE-SETTINGS";
extern int MaxTrades_16 = 20;
int g_timeframe_624 = PERIOD_M1;
double g_pips_628 = 40.0;
bool gi_636 = FALSE;
double gd_640 = 48.0;
double g_slippage_648;
extern int g_magic_176_16 = 23794;
extern bool UseNewsFilter = true;
double g_price_660;
double gd_668;
double gd_unused_676;
double gd_unused_684;
double g_price_692;
double g_bid_700;
double g_ask_708;
double gd_716;
double gd_724;
double gd_732;
bool gi_740;
string gs_744 = "AF-Investing.Cv";
int gi_752 = 0;
int gi_756;
int gi_760 = 0;
double gd_764;
int g_pos_772 = 0;
int gi_776;
double gd_780 = 0.0;
bool gi_788 = FALSE;
bool gi_792 = FALSE;
bool gi_796 = FALSE;
int gi_800;
bool gi_804 = FALSE;
bool cg =FALSE;
double gd_808;
double gd_816;
int g_datetime_824 = 1;
int g_timeframe_828 = PERIOD_M1;
int g_timeframe_832 = PERIOD_M5;
int g_timeframe_836 = PERIOD_M15;
int g_timeframe_840 = PERIOD_M30;
int g_timeframe_844 = PERIOD_H1;
int g_timeframe_848 = PERIOD_H4;
int g_timeframe_852 = PERIOD_D1;
bool g_corner_856 = TRUE;
int gi_860 = 0;
int gi_864 = 10;
int g_window_868 = 0;
bool gi_872 = TRUE;
bool gi_unused_876 = TRUE;
bool gi_880 = FALSE;
int g_color_884 = Gray;
int g_color_888 = Gray;
int g_color_892 = Gray;
int g_color_896 = DarkOrange;
int gi_unused_900 = 36095;
int g_color_904 = Lime;
int g_color_908 = OrangeRed;
int gi_912 = 65280;
int gi_916 = 17919;
int g_color_920 = Lime;
int g_color_924 = Red;
int g_color_928 = Orange;
int g_period_932 = 8;
int g_period_936 = 17;
int g_period_940 = 9;
int g_applied_price_944 = PRICE_CLOSE;
int g_color_948 = Lime;
int g_color_952 = Tomato;
int g_color_956 = Green;
int g_color_960 = Red;
string gs_unused_964 = "<<<< STR Indicator Settings >>>>>>>>>>>>>";
string gs_unused_972 = "<<<< RSI Settings >>>>>>>>>>>>>";
int g_period_980 = 9;
int g_applied_price_984 = PRICE_CLOSE;
string gs_unused_988 = "<<<< CCI Settings >>>>>>>>>>>>>>";
int g_period_996 = 13;
int g_applied_price_1000 = PRICE_CLOSE;
string gs_unused_1004 = "<<<< FIBO Settings >>>>>>>>>>>";
int g_period_1012 = 5;
int g_period_1016 = 3;
int g_slowing_1020 = 3;
int g_ma_method_1024 = MODE_EMA;
string gs_unused_1028 = "<<<< Daily Range >>>>>>>>>>>>>>>>";
int g_color_1036 = Lime;
int g_color_1040 = Red;
int g_color_1044 = Orange;
string gs_unused_1048 = "<<<< MA Settings >>>>>>>>>>>>>>";
int g_period_1056 = 5;
int g_period_1060 = 9;
int g_ma_method_1064 = MODE_EMA;
int g_applied_price_1068 = PRICE_CLOSE;
string gs_unused_1072 = "<<<< MA Colors >>>>>>>>>>>>>>";
int g_color_1080 = Lime;
int g_color_1084 = Red;
string gs_dummy_1088;
string g_text_1096;
string g_text_1104;
string g_dbl2str_1112 = "";
string g_dbl2str_1120 = "";
int g_color_1128 = ForestGreen;
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");
Comment("");
return (0);
}
int start()
{
// код доступен только после оплаты
}
Comment("Account Number:" + AccountNumber());
int password_status=-*;
string batas="2020.12.31 00:00"; //Year, Month, Date, Expiration
string count="1700051895";
int co=AccountInfoInteger(count);
int tt=StrToTime(batas);
Print("?Access allowed to AF-Investing.Cv!");
/*if(TimeCurrent()>tt)
{
Alert(" License expired contact support ");
return(0);
}*/
int li_0;
int li_4;
int li_8;
int li_12;
int li_16;
int li_20;
int li_24;
color color_28;
color color_32;
color color_36;
color color_40;
color color_44;
color color_48;
color color_52;
string ls_unused_56;
color color_64;
color color_68;
color color_72;
color color_76;
color color_80;
color color_84;
color color_88;
color color_92;
string ls_unused_96;
color color_104;
int li_unused_108;
double ihigh_112;
double ilow_120;
double iclose_128;
double iclose_136;
double ld_144;
double ld_152;
double ld_160;
int li_168;
int count_172;
double ld_176;
double ld_184;
int li_192;
int count_196;
int ind_counted_200 = IndicatorCounted();
if (Lots > MaxLots) Lots = MaxLots;
Comment("AFSID GROUP"
+ "\n"
+ ""
+ "\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 FiboScalper :" + CountTrades_Hilo()
+ "\n"
+ "Open Orders AF-Scalper :" + CountTrades_15()
+ "\n"
+ "Open Orders AF-TrendKiller :" + CountTrades_16()
+ "\n"
+ "ALL ORDERS :" + OrdersTotal()
+ "\n"
+ "_____________________________________________________"
+ "\n"
+ "Account BALANCE :" + DoubleToStr(AccountBalance(), 2)
+ "\n"
+ "Account EQUITY :" + DoubleToStr(AccountEquity(), 2)
+ "\n"
+ "AFSID GROUP");
gd_248 = NormalizeDouble(AccountBalance(), 2);
gd_256 = NormalizeDouble(AccountEquity(), 2);
if (gd_256 >= 5.0 * (gd_248 / 6.0)) g_color_1128 = DodgerBlue;
if (gd_256 >= 4.0 * (gd_248 / 6.0) && gd_256 < 5.0 * (gd_248 / 6.0)) g_color_1128 = DeepSkyBlue;
if (gd_256 >= 3.0 * (gd_248 / 6.0) && gd_256 < 4.0 * (gd_248 / 6.0)) g_color_1128 = Gold;
if (gd_256 >= 2.0 * (gd_248 / 6.0) && gd_256 < 3.0 * (gd_248 / 6.0)) g_color_1128 = OrangeRed;
if (gd_256 >= gd_248 / 6.0 && gd_256 < 2.0 * (gd_248 / 6.0)) g_color_1128 = Crimson;
if (gd_256 < gd_248 / 5.0) g_color_1128 = 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);
g_dbl2str_1112 = DoubleToStr(AccountBalance(), 2);
ObjectSetText("Lable2", "Account BALANCE: " + g_dbl2str_1112 + "", 10, "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);
g_dbl2str_1120 = DoubleToStr(AccountEquity(), 2);
ObjectSetText("Lable3", "Account EQUITY: " + g_dbl2str_1120 + "", 10, "Times New Roman", g_color_1128);
int ind_counted_204 = IndicatorCounted();
string text_208 = "";
string text_216 = "";
string text_224 = "";
string text_232 = "";
string text_240 = "";
string text_248 = "";
string text_256 = "";
if (g_timeframe_828 == PERIOD_M1) text_208 = "M1";
if (g_timeframe_828 == PERIOD_M5) text_208 = "M5";
if (g_timeframe_828 == PERIOD_M15) text_208 = "M15";
if (g_timeframe_828 == PERIOD_M30) text_208 = "M30";
if (g_timeframe_828 == PERIOD_H1) text_208 = "H1";
if (g_timeframe_828 == PERIOD_H4) text_208 = "H4";
if (g_timeframe_828 == PERIOD_D1) text_208 = "D1";
if (g_timeframe_828 == PERIOD_W1) text_208 = "W1";
if (g_timeframe_828 == PERIOD_MN1) text_208 = "MN";
if (g_timeframe_832 == PERIOD_M1) text_216 = "M1";
if (g_timeframe_832 == PERIOD_M5) text_216 = "M5";
if (g_timeframe_832 == PERIOD_M15) text_216 = "M15";
if (g_timeframe_832 == PERIOD_M30) text_216 = "M30";
if (g_timeframe_832 == PERIOD_H1) text_216 = "H1";
if (g_timeframe_832 == PERIOD_H4) text_216 = "H4";
if (g_timeframe_832 == PERIOD_D1) text_216 = "D1";
if (g_timeframe_832 == PERIOD_W1) text_216 = "W1";
if (g_timeframe_832 == PERIOD_MN1) text_216 = "MN";
if (g_timeframe_836 == PERIOD_M1) text_224 = "M1";
if (g_timeframe_836 == PERIOD_M5) text_224 = "M5";
if (g_timeframe_836 == PERIOD_M15) text_224 = "M15";
if (g_timeframe_836 == PERIOD_M30) text_224 = "M30";
if (g_timeframe_836 == PERIOD_H1) text_224 = "H1";
if (g_timeframe_836 == PERIOD_H4) text_224 = "H4";
if (g_timeframe_836 == PERIOD_D1) text_224 = "D1";
if (g_timeframe_836 == PERIOD_W1) text_224 = "W1";
if (g_timeframe_836 == PERIOD_MN1) text_224 = "MN";
if (g_timeframe_840 == PERIOD_M1) text_232 = "M1";
if (g_timeframe_840 == PERIOD_M5) text_232 = "M5";
if (g_timeframe_840 == PERIOD_M15) text_232 = "M15";
if (g_timeframe_840 == PERIOD_M30) text_232 = "M30";
if (g_timeframe_840 == PERIOD_H1) text_232 = "H1";
if (g_timeframe_840 == PERIOD_H4) text_232 = "H4";
if (g_timeframe_840 == PERIOD_D1) text_232 = "D1";
if (g_timeframe_840 == PERIOD_W1) text_232 = "W1";
if (g_timeframe_840 == PERIOD_MN1) text_232 = "MN";
if (g_timeframe_844 == PERIOD_M1) text_240 = "M1";
if (g_timeframe_844 == PERIOD_M5) text_240 = "M5";
if (g_timeframe_844 == PERIOD_M15) text_240 = "M15";
if (g_timeframe_844 == PERIOD_M30) text_240 = "M30";
if (g_timeframe_844 == PERIOD_H1) text_240 = "H1";
if (g_timeframe_844 == PERIOD_H4) text_240 = "H4";
if (g_timeframe_844 == PERIOD_D1) text_240 = "D1";
if (g_timeframe_844 == PERIOD_W1) text_240 = "W1";
if (g_timeframe_844 == PERIOD_MN1) text_240 = "MN";
if (g_timeframe_848 == PERIOD_M1) text_248 = "M1";
if (g_timeframe_848 == PERIOD_M5) text_248 = "M5";
if (g_timeframe_848 == PERIOD_M15) text_248 = "M15";
if (g_timeframe_848 == PERIOD_M30) text_248 = "M30";
if (g_timeframe_848 == PERIOD_H1) text_248 = "H1";
if (g_timeframe_848 == PERIOD_H4) text_248 = "H4";
if (g_timeframe_848 == PERIOD_D1) text_248 = "D1";
if (g_timeframe_848 == PERIOD_W1) text_248 = "W1";
if (g_timeframe_848 == PERIOD_MN1) text_248 = "MN";
if (g_timeframe_852 == PERIOD_M1) text_256 = "M1";
if (g_timeframe_852 == PERIOD_M5) text_256 = "M5";
if (g_timeframe_852 == PERIOD_M15) text_256 = "M15";
if (g_timeframe_852 == PERIOD_M30) text_256 = "M30";
if (g_timeframe_852 == PERIOD_H1) text_256 = "H1";
if (g_timeframe_852 == PERIOD_H4) text_256 = "H4";
if (g_timeframe_852 == PERIOD_D1) text_256 = "D1";
if (g_timeframe_852 == PERIOD_W1) text_256 = "W1";
if (g_timeframe_852 == PERIOD_MN1) text_256 = "MN";
if (g_timeframe_828 == PERIOD_M15) li_0 = -2;
if (g_timeframe_828 == PERIOD_M30) li_0 = -2;
if (g_timeframe_832 == PERIOD_M15) li_4 = -2;
if (g_timeframe_832 == PERIOD_M30) li_4 = -2;
if (g_timeframe_836 == PERIOD_M15) li_8 = -2;
if (g_timeframe_836 == PERIOD_M30) li_8 = -2;
if (g_timeframe_840 == PERIOD_M15) li_12 = -2;
if (g_timeframe_840 == PERIOD_M30) li_12 = -2;
if (g_timeframe_844 == PERIOD_M15) li_16 = -2;
if (g_timeframe_844 == PERIOD_M30) li_16 = -2;
if (g_timeframe_848 == PERIOD_M15) li_20 = -2;
if (g_timeframe_848 == PERIOD_M30) li_20 = -2;
if (g_timeframe_852 == PERIOD_M15) li_24 = -2;
if (g_timeframe_848 == PERIOD_M30) li_24 = -2;
if (gi_860 < 0) return (0);
ObjectDelete("SIG_BARS_TF1");
ObjectCreate("SIG_BARS_TF1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SIG_BARS_TF1", text_208, 7, "Arial Bold", g_color_884);
ObjectSet("SIG_BARS_TF1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SIG_BARS_TF1", OBJPROP_XDISTANCE, gi_864 + 134 + li_0);
ObjectSet("SIG_BARS_TF1", OBJPROP_YDISTANCE, gi_860 + 25);
ObjectDelete("SIG_BARS_TF2");
ObjectCreate("SIG_BARS_TF2", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SIG_BARS_TF2", text_216, 7, "Arial Bold", g_color_884);
ObjectSet("SIG_BARS_TF2", OBJPROP_CORNER, g_corner_856);
ObjectSet("SIG_BARS_TF2", OBJPROP_XDISTANCE, gi_864 + 114 + li_4);
ObjectSet("SIG_BARS_TF2", OBJPROP_YDISTANCE, gi_860 + 25);
ObjectDelete("SIG_BARS_TF3");
ObjectCreate("SIG_BARS_TF3", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SIG_BARS_TF3", text_224, 7, "Arial Bold", g_color_884);
ObjectSet("SIG_BARS_TF3", OBJPROP_CORNER, g_corner_856);
ObjectSet("SIG_BARS_TF3", OBJPROP_XDISTANCE, gi_864 + 94 + li_8);
ObjectSet("SIG_BARS_TF3", OBJPROP_YDISTANCE, gi_860 + 25);
ObjectDelete("SIG_BARS_TF4");
ObjectCreate("SIG_BARS_TF4", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SIG_BARS_TF4", text_232, 7, "Arial Bold", g_color_884);
ObjectSet("SIG_BARS_TF4", OBJPROP_CORNER, g_corner_856);
ObjectSet("SIG_BARS_TF4", OBJPROP_XDISTANCE, gi_864 + 74 + li_12);
ObjectSet("SIG_BARS_TF4", OBJPROP_YDISTANCE, gi_860 + 25);
ObjectDelete("SIG_BARS_TF5");
ObjectCreate("SIG_BARS_TF5", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SIG_BARS_TF5", text_240, 7, "Arial Bold", g_color_884);
ObjectSet("SIG_BARS_TF5", OBJPROP_CORNER, g_corner_856);
ObjectSet("SIG_BARS_TF5", OBJPROP_XDISTANCE, gi_864 + 54 + li_16);
ObjectSet("SIG_BARS_TF5", OBJPROP_YDISTANCE, gi_860 + 25);
ObjectDelete("SIG_BARS_TF6");
ObjectCreate("SIG_BARS_TF6", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SIG_BARS_TF6", text_248, 7, "Arial Bold", g_color_884);
ObjectSet("SIG_BARS_TF6", OBJPROP_CORNER, g_corner_856);
ObjectSet("SIG_BARS_TF6", OBJPROP_XDISTANCE, gi_864 + 34 + li_20);
ObjectSet("SIG_BARS_TF6", OBJPROP_YDISTANCE, gi_860 + 25);
ObjectDelete("SIG_BARS_TF7");
ObjectCreate("SIG_BARS_TF7", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SIG_BARS_TF7", text_256, 7, "Arial Bold", g_color_884);
ObjectSet("SIG_BARS_TF7", OBJPROP_CORNER, g_corner_856);
ObjectSet("SIG_BARS_TF7", OBJPROP_XDISTANCE, gi_864 + 14 + li_24);
ObjectSet("SIG_BARS_TF7", OBJPROP_YDISTANCE, gi_860 + 25);
string text_264 = "";
string text_272 = "";
string text_280 = "";
string text_288 = "";
string text_296 = "";
string text_304 = "";
string text_312 = "";
string ls_unused_320 = "";
string ls_unused_328 = "";
double imacd_336 = iMACD(NULL, g_timeframe_828, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_MAIN, 0);
double imacd_344 = iMACD(NULL, g_timeframe_828, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_SIGNAL, 0);
double imacd_352 = iMACD(NULL, g_timeframe_832, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_MAIN, 0);
double imacd_360 = iMACD(NULL, g_timeframe_832, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_SIGNAL, 0);
double imacd_368 = iMACD(NULL, g_timeframe_836, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_MAIN, 0);
double imacd_376 = iMACD(NULL, g_timeframe_836, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_SIGNAL, 0);
double imacd_384 = iMACD(NULL, g_timeframe_840, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_MAIN, 0);
double imacd_392 = iMACD(NULL, g_timeframe_840, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_SIGNAL, 0);
double imacd_400 = iMACD(NULL, g_timeframe_844, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_MAIN, 0);
double imacd_408 = iMACD(NULL, g_timeframe_844, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_SIGNAL, 0);
double imacd_416 = iMACD(NULL, g_timeframe_848, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_MAIN, 0);
double imacd_424 = iMACD(NULL, g_timeframe_848, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_SIGNAL, 0);
double imacd_432 = iMACD(NULL, g_timeframe_852, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_MAIN, 0);
double imacd_440 = iMACD(NULL, g_timeframe_852, g_period_932, g_period_936, g_period_940, g_applied_price_944, MODE_SIGNAL, 0);
if (imacd_336 > imacd_344) {
text_288 = "-";
color_40 = g_color_956;
}
if (imacd_336 <= imacd_344) {
text_288 = "-";
color_40 = g_color_952;
}
if (imacd_336 > imacd_344 && imacd_336 > 0.0) {
text_288 = "-";
color_40 = g_color_948;
}
if (imacd_336 <= imacd_344 && imacd_336 < 0.0) {
text_288 = "-";
color_40 = g_color_960;
}
if (imacd_352 > imacd_360) {
text_296 = "-";
color_44 = g_color_956;
}
if (imacd_352 <= imacd_360) {
text_296 = "-";
color_44 = g_color_952;
}
if (imacd_352 > imacd_360 && imacd_352 > 0.0) {
text_296 = "-";
color_44 = g_color_948;
}
if (imacd_352 <= imacd_360 && imacd_352 < 0.0) {
text_296 = "-";
color_44 = g_color_960;
}
if (imacd_368 > imacd_376) {
text_304 = "-";
color_48 = g_color_956;
}
if (imacd_368 <= imacd_376) {
text_304 = "-";
color_48 = g_color_952;
}
if (imacd_368 > imacd_376 && imacd_368 > 0.0) {
text_304 = "-";
color_48 = g_color_948;
}
if (imacd_368 <= imacd_376 && imacd_368 < 0.0) {
text_304 = "-";
color_48 = g_color_960;
}
if (imacd_384 > imacd_392) {
text_312 = "-";
color_52 = g_color_956;
}
if (imacd_384 <= imacd_392) {
text_312 = "-";
color_52 = g_color_952;
}
if (imacd_384 > imacd_392 && imacd_384 > 0.0) {
text_312 = "-";
color_52 = g_color_948;
}
if (imacd_384 <= imacd_392 && imacd_384 < 0.0) {
text_312 = "-";
color_52 = g_color_960;
}
if (imacd_400 > imacd_408) {
text_272 = "-";
color_32 = g_color_956;
}
if (imacd_400 <= imacd_408) {
text_272 = "-";
color_32 = g_color_952;
}
if (imacd_400 > imacd_408 && imacd_400 > 0.0) {
text_272 = "-";
color_32 = g_color_948;
}
if (imacd_400 <= imacd_408 && imacd_400 < 0.0) {
text_272 = "-";
color_32 = g_color_960;
}
if (imacd_416 > imacd_424) {
text_280 = "-";
color_36 = g_color_956;
}
if (imacd_416 <= imacd_424) {
text_280 = "-";
color_36 = g_color_952;
}
if (imacd_416 > imacd_424 && imacd_416 > 0.0) {
text_280 = "-";
color_36 = g_color_948;
}
if (imacd_416 <= imacd_424 && imacd_416 < 0.0) {
text_280 = "-";
color_36 = g_color_960;
}
if (imacd_432 > imacd_440) {
text_264 = "-";
color_28 = g_color_956;
}
if (imacd_432 <= imacd_440) {
text_264 = "-";
color_28 = g_color_952;
}
if (imacd_432 > imacd_440 && imacd_432 > 0.0) {
text_264 = "-";
color_28 = g_color_948;
}
if (imacd_432 <= imacd_440 && imacd_432 < 0.0) {
text_264 = "-";
color_28 = g_color_960;
}
ObjectDelete("SSignalMACD_TEXT");
ObjectCreate("SSignalMACD_TEXT", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalMACD_TEXT", "MACD", 6, "Tahoma Narrow", g_color_888);
ObjectSet("SSignalMACD_TEXT", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalMACD_TEXT", OBJPROP_XDISTANCE, gi_864 + 153);
ObjectSet("SSignalMACD_TEXT", OBJPROP_YDISTANCE, gi_860 + 35);
ObjectDelete("SSignalMACDM1");
ObjectCreate("SSignalMACDM1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalMACDM1", text_288, 45, "Tahoma Narrow", color_40);
ObjectSet("SSignalMACDM1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalMACDM1", OBJPROP_XDISTANCE, gi_864 + 130);
ObjectSet("SSignalMACDM1", OBJPROP_YDISTANCE, gi_860 + 2);
ObjectDelete("SSignalMACDM5");
ObjectCreate("SSignalMACDM5", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalMACDM5", text_296, 45, "Tahoma Narrow", color_44);
ObjectSet("SSignalMACDM5", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalMACDM5", OBJPROP_XDISTANCE, gi_864 + 110);
ObjectSet("SSignalMACDM5", OBJPROP_YDISTANCE, gi_860 + 2);
ObjectDelete("SSignalMACDM15");
ObjectCreate("SSignalMACDM15", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalMACDM15", text_304, 45, "Tahoma Narrow", color_48);
ObjectSet("SSignalMACDM15", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalMACDM15", OBJPROP_XDISTANCE, gi_864 + 90);
ObjectSet("SSignalMACDM15", OBJPROP_YDISTANCE, gi_860 + 2);
ObjectDelete("SSignalMACDM30");
ObjectCreate("SSignalMACDM30", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalMACDM30", text_312, 45, "Tahoma Narrow", color_52);
ObjectSet("SSignalMACDM30", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalMACDM30", OBJPROP_XDISTANCE, gi_864 + 70);
ObjectSet("SSignalMACDM30", OBJPROP_YDISTANCE, gi_860 + 2);
ObjectDelete("SSignalMACDH1");
ObjectCreate("SSignalMACDH1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalMACDH1", text_272, 45, "Tahoma Narrow", color_32);
ObjectSet("SSignalMACDH1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalMACDH1", OBJPROP_XDISTANCE, gi_864 + 50);
ObjectSet("SSignalMACDH1", OBJPROP_YDISTANCE, gi_860 + 2);
ObjectDelete("SSignalMACDH4");
ObjectCreate("SSignalMACDH4", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalMACDH4", text_280, 45, "Tahoma Narrow", color_36);
ObjectSet("SSignalMACDH4", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalMACDH4", OBJPROP_XDISTANCE, gi_864 + 30);
ObjectSet("SSignalMACDH4", OBJPROP_YDISTANCE, gi_860 + 2);
ObjectDelete("SSignalMACDD1");
ObjectCreate("SSignalMACDD1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalMACDD1", text_264, 45, "Tahoma Narrow", color_28);
ObjectSet("SSignalMACDD1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalMACDD1", OBJPROP_XDISTANCE, gi_864 + 10);
ObjectSet("SSignalMACDD1", OBJPROP_YDISTANCE, gi_860 + 2);
double irsi_448 = iRSI(NULL, g_timeframe_852, g_period_980, g_applied_price_984, 0);
double irsi_456 = iRSI(NULL, g_timeframe_848, g_period_980, g_applied_price_984, 0);
double irsi_464 = iRSI(NULL, g_timeframe_844, g_period_980, g_applied_price_984, 0);
double irsi_472 = iRSI(NULL, g_timeframe_840, g_period_980, g_applied_price_984, 0);
double irsi_480 = iRSI(NULL, g_timeframe_836, g_period_980, g_applied_price_984, 0);
double irsi_488 = iRSI(NULL, g_timeframe_832, g_period_980, g_applied_price_984, 0);
double irsi_496 = iRSI(NULL, g_timeframe_828, g_period_980, g_applied_price_984, 0);
double istochastic_504 = iStochastic(NULL, g_timeframe_852, g_period_1012, g_period_1016, g_slowing_1020, g_ma_method_1024, 0, MODE_MAIN, 0);
double istochastic_512 = iStochastic(NULL, g_timeframe_848, g_period_1012, g_period_1016, g_slowing_1020, g_ma_method_1024, 0, MODE_MAIN, 0);
double istochastic_520 = iStochastic(NULL, g_timeframe_844, g_period_1012, g_period_1016, g_slowing_1020, g_ma_method_1024, 0, MODE_MAIN, 0);
double istochastic_528 = iStochastic(NULL, g_timeframe_840, g_period_1012, g_period_1016, g_slowing_1020, g_ma_method_1024, 0, MODE_MAIN, 0);
double istochastic_536 = iStochastic(NULL, g_timeframe_836, g_period_1012, g_period_1016, g_slowing_1020, g_ma_method_1024, 0, MODE_MAIN, 0);
double istochastic_544 = iStochastic(NULL, g_timeframe_832, g_period_1012, g_period_1016, g_slowing_1020, g_ma_method_1024, 0, MODE_MAIN, 0);
double istochastic_552 = iStochastic(NULL, g_timeframe_828, g_period_1012, g_period_1016, g_slowing_1020, g_ma_method_1024, 0, MODE_MAIN, 0);
double icci_560 = iCCI(NULL, g_timeframe_852, g_period_996, g_applied_price_1000, 0);
double icci_568 = iCCI(NULL, g_timeframe_848, g_period_996, g_applied_price_1000, 0);
double icci_576 = iCCI(NULL, g_timeframe_844, g_period_996, g_applied_price_1000, 0);
double icci_584 = iCCI(NULL, g_timeframe_840, g_period_996, g_applied_price_1000, 0);
double icci_592 = iCCI(NULL, g_timeframe_836, g_period_996, g_applied_price_1000, 0);
double icci_600 = iCCI(NULL, g_timeframe_832, g_period_996, g_applied_price_1000, 0);
double icci_608 = iCCI(NULL, g_timeframe_828, g_period_996, g_applied_price_1000, 0);
string text_616 = "";
string text_624 = "";
string text_632 = "";
string text_640 = "";
string text_648 = "";
string text_656 = "";
string text_664 = "";
string ls_unused_672 = "";
string ls_unused_680 = "";
text_664 = "-";
color color_688 = g_color_1044;
text_648 = "-";
color color_692 = g_color_1044;
text_616 = "-";
color color_696 = g_color_1044;
text_656 = "-";
color color_700 = g_color_1044;
text_624 = "-";
color color_704 = g_color_1044;
text_632 = "-";
color color_708 = g_color_1044;
text_640 = "-";
color color_712 = g_color_1044;
if (irsi_448 > 50.0 && istochastic_504 > 40.0 && icci_560 > 0.0) {
text_664 = "-";
color_688 = g_color_1036;
}
if (irsi_456 > 50.0 && istochastic_512 > 40.0 && icci_568 > 0.0) {
text_648 = "-";
color_692 = g_color_1036;
}
if (irsi_464 > 50.0 && istochastic_520 > 40.0 && icci_576 > 0.0) {
text_616 = "-";
color_696 = g_color_1036;
}
if (irsi_472 > 50.0 && istochastic_528 > 40.0 && icci_584 > 0.0) {
text_656 = "-";
color_700 = g_color_1036;
}
if (irsi_480 > 50.0 && istochastic_536 > 40.0 && icci_592 > 0.0) {
text_624 = "-";
color_704 = g_color_1036;
}
if (irsi_488 > 50.0 && istochastic_544 > 40.0 && icci_600 > 0.0) {
text_632 = "-";
color_708 = g_color_1036;
}
if (irsi_496 > 50.0 && istochastic_552 > 40.0 && icci_608 > 0.0) {
text_640 = "-";
color_712 = g_color_1036;
}
if (irsi_448 < 50.0 && istochastic_504 < 60.0 && icci_560 < 0.0) {
text_664 = "-";
color_688 = g_color_1040;
}
if (irsi_456 < 50.0 && istochastic_512 < 60.0 && icci_568 < 0.0) {
text_648 = "-";
color_692 = g_color_1040;
}
if (irsi_464 < 50.0 && istochastic_520 < 60.0 && icci_576 < 0.0) {
text_616 = "-";
color_696 = g_color_1040;
}
if (irsi_472 < 50.0 && istochastic_528 < 60.0 && icci_584 < 0.0) {
text_656 = "-";
color_700 = g_color_1040;
}
if (irsi_480 < 50.0 && istochastic_536 < 60.0 && icci_592 < 0.0) {
text_624 = "-";
color_704 = g_color_1040;
}
if (irsi_488 < 50.0 && istochastic_544 < 60.0 && icci_600 < 0.0) {
text_632 = "-";
color_708 = g_color_1040;
}
if (irsi_496 < 50.0 && istochastic_552 < 60.0 && icci_608 < 0.0) {
text_640 = "-";
color_712 = g_color_1040;
}
ObjectDelete("SSignalSTR_TEXT");
ObjectCreate("SSignalSTR_TEXT", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SSignalSTR_TEXT", "STR", 6, "Tahoma Narrow", g_color_888);
ObjectSet("SSignalSTR_TEXT", OBJPROP_CORNER, g_corner_856);
ObjectSet("SSignalSTR_TEXT", OBJPROP_XDISTANCE, gi_864 + 153);
ObjectSet("SSignalSTR_TEXT", OBJPROP_YDISTANCE, gi_860 + 43);
ObjectDelete("SignalSTRM1");
ObjectCreate("SignalSTRM1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalSTRM1", text_640, 45, "Tahoma Narrow", color_712);
ObjectSet("SignalSTRM1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalSTRM1", OBJPROP_XDISTANCE, gi_864 + 130);
ObjectSet("SignalSTRM1", OBJPROP_YDISTANCE, gi_860 + 10);
ObjectDelete("SignalSTRM5");
ObjectCreate("SignalSTRM5", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalSTRM5", text_632, 45, "Tahoma Narrow", color_708);
ObjectSet("SignalSTRM5", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalSTRM5", OBJPROP_XDISTANCE, gi_864 + 110);
ObjectSet("SignalSTRM5", OBJPROP_YDISTANCE, gi_860 + 10);
ObjectDelete("SignalSTRM15");
ObjectCreate("SignalSTRM15", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalSTRM15", text_624, 45, "Tahoma Narrow", color_704);
ObjectSet("SignalSTRM15", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalSTRM15", OBJPROP_XDISTANCE, gi_864 + 90);
ObjectSet("SignalSTRM15", OBJPROP_YDISTANCE, gi_860 + 10);
ObjectDelete("SignalSTRM30");
ObjectCreate("SignalSTRM30", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalSTRM30", text_656, 45, "Tahoma Narrow", color_700);
ObjectSet("SignalSTRM30", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalSTRM30", OBJPROP_XDISTANCE, gi_864 + 70);
ObjectSet("SignalSTRM30", OBJPROP_YDISTANCE, gi_860 + 10);
ObjectDelete("SignalSTRH1");
ObjectCreate("SignalSTRH1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalSTRH1", text_616, 45, "Tahoma Narrow", color_696);
ObjectSet("SignalSTRH1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalSTRH1", OBJPROP_XDISTANCE, gi_864 + 50);
ObjectSet("SignalSTRH1", OBJPROP_YDISTANCE, gi_860 + 10);
ObjectDelete("SignalSTRH4");
ObjectCreate("SignalSTRH4", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalSTRH4", text_648, 45, "Tahoma Narrow", color_692);
ObjectSet("SignalSTRH4", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalSTRH4", OBJPROP_XDISTANCE, gi_864 + 30);
ObjectSet("SignalSTRH4", OBJPROP_YDISTANCE, gi_860 + 10);
ObjectDelete("SignalSTRD1");
ObjectCreate("SignalSTRD1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalSTRD1", text_664, 45, "Tahoma Narrow", color_688);
ObjectSet("SignalSTRD1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalSTRD1", OBJPROP_XDISTANCE, gi_864 + 10);
ObjectSet("SignalSTRD1", OBJPROP_YDISTANCE, gi_860 + 10);
double ima_716 = iMA(Symbol(), g_timeframe_828, g_period_1056, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_724 = iMA(Symbol(), g_timeframe_828, g_period_1060, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_732 = iMA(Symbol(), g_timeframe_832, g_period_1056, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_740 = iMA(Symbol(), g_timeframe_832, g_period_1060, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_748 = iMA(Symbol(), g_timeframe_836, g_period_1056, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_756 = iMA(Symbol(), g_timeframe_836, g_period_1060, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_764 = iMA(Symbol(), g_timeframe_840, g_period_1056, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_772 = iMA(Symbol(), g_timeframe_840, g_period_1060, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_780 = iMA(Symbol(), g_timeframe_844, g_period_1056, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_788 = iMA(Symbol(), g_timeframe_844, g_period_1060, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_796 = iMA(Symbol(), g_timeframe_848, g_period_1056, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_804 = iMA(Symbol(), g_timeframe_848, g_period_1060, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_812 = iMA(Symbol(), g_timeframe_852, g_period_1056, 0, g_ma_method_1064, g_applied_price_1068, 0);
double ima_820 = iMA(Symbol(), g_timeframe_852, g_period_1060, 0, g_ma_method_1064, g_applied_price_1068, 0);
string text_828 = "";
string text_836 = "";
string text_844 = "";
string text_852 = "";
string text_860 = "";
string text_868 = "";
string text_876 = "";
string ls_unused_884 = "";
string ls_unused_892 = "";
if (ima_716 > ima_724) {
text_828 = "-";
color_64 = g_color_1080;
}
if (ima_716 <= ima_724) {
text_828 = "-";
color_64 = g_color_1084;
}
if (ima_732 > ima_740) {
text_836 = "-";
color_68 = g_color_1080;
}
if (ima_732 <= ima_740) {
text_836 = "-";
color_68 = g_color_1084;
}
if (ima_748 > ima_756) {
text_844 = "-";
color_72 = g_color_1080;
}
if (ima_748 <= ima_756) {
text_844 = "-";
color_72 = g_color_1084;
}
if (ima_764 > ima_772) {
text_852 = "-";
color_76 = g_color_1080;
}
if (ima_764 <= ima_772) {
text_852 = "-";
color_76 = g_color_1084;
}
if (ima_780 > ima_788) {
text_860 = "-";
color_80 = g_color_1080;
}
if (ima_780 <= ima_788) {
text_860 = "-";
color_80 = g_color_1084;
}
if (ima_796 > ima_804) {
text_868 = "-";
color_84 = g_color_1080;
}
if (ima_796 <= ima_804) {
text_868 = "-";
color_84 = g_color_1084;
}
if (ima_812 > ima_820) {
text_876 = "-";
color_88 = g_color_1080;
}
if (ima_812 <= ima_820) {
text_876 = "-";
color_88 = g_color_1084;
}
ObjectDelete("SignalEMA_TEXT");
ObjectCreate("SignalEMA_TEXT", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalEMA_TEXT", "EMA", 6, "Tahoma Narrow", g_color_888);
ObjectSet("SignalEMA_TEXT", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalEMA_TEXT", OBJPROP_XDISTANCE, gi_864 + 153);
ObjectSet("SignalEMA_TEXT", OBJPROP_YDISTANCE, gi_860 + 51);
ObjectDelete("SignalEMAM1");
ObjectCreate("SignalEMAM1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalEMAM1", text_828, 45, "Tahoma Narrow", color_64);
ObjectSet("SignalEMAM1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalEMAM1", OBJPROP_XDISTANCE, gi_864 + 130);
ObjectSet("SignalEMAM1", OBJPROP_YDISTANCE, gi_860 + 18);
ObjectDelete("SignalEMAM5");
ObjectCreate("SignalEMAM5", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalEMAM5", text_836, 45, "Tahoma Narrow", color_68);
ObjectSet("SignalEMAM5", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalEMAM5", OBJPROP_XDISTANCE, gi_864 + 110);
ObjectSet("SignalEMAM5", OBJPROP_YDISTANCE, gi_860 + 18);
ObjectDelete("SignalEMAM15");
ObjectCreate("SignalEMAM15", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalEMAM15", text_844, 45, "Tahoma Narrow", color_72);
ObjectSet("SignalEMAM15", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalEMAM15", OBJPROP_XDISTANCE, gi_864 + 90);
ObjectSet("SignalEMAM15", OBJPROP_YDISTANCE, gi_860 + 18);
ObjectDelete("SignalEMAM30");
ObjectCreate("SignalEMAM30", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalEMAM30", text_852, 45, "Tahoma Narrow", color_76);
ObjectSet("SignalEMAM30", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalEMAM30", OBJPROP_XDISTANCE, gi_864 + 70);
ObjectSet("SignalEMAM30", OBJPROP_YDISTANCE, gi_860 + 18);
ObjectDelete("SignalEMAH1");
ObjectCreate("SignalEMAH1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalEMAH1", text_860, 45, "Tahoma Narrow", color_80);
ObjectSet("SignalEMAH1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalEMAH1", OBJPROP_XDISTANCE, gi_864 + 50);
ObjectSet("SignalEMAH1", OBJPROP_YDISTANCE, gi_860 + 18);
ObjectDelete("SignalEMAH4");
ObjectCreate("SignalEMAH4", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalEMAH4", text_868, 45, "Tahoma Narrow", color_84);
ObjectSet("SignalEMAH4", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalEMAH4", OBJPROP_XDISTANCE, gi_864 + 30);
ObjectSet("SignalEMAH4", OBJPROP_YDISTANCE, gi_860 + 18);
ObjectDelete("SignalEMAD1");
ObjectCreate("SignalEMAD1", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("SignalEMAD1", text_876, 45, "Tahoma Narrow", color_88);
ObjectSet("SignalEMAD1", OBJPROP_CORNER, g_corner_856);
ObjectSet("SignalEMAD1", OBJPROP_XDISTANCE, gi_864 + 10);
ObjectSet("SignalEMAD1", OBJPROP_YDISTANCE, gi_860 + 18);
double ld_900 = NormalizeDouble(MarketInfo(Symbol(), MODE_BID), Digits);
double ima_908 = iMA(Symbol(), PERIOD_M1, 1, 0, MODE_EMA, PRICE_CLOSE, 1);
string ls_unused_916 = "";
if (ima_908 > ld_900) {
ls_unused_916 = "";
color_92 = g_color_924;
}
if (ima_908 < ld_900) {
ls_unused_916 = "";
color_92 = g_color_920;
}
if (ima_908 == ld_900) {
ls_unused_916 = "";
color_92 = g_color_928;
}
ObjectDelete("cja");
ObjectCreate("cja", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("cja", "cja", 8, "Tahoma Narrow", DimGray);
ObjectSet("cja", OBJPROP_CORNER, g_corner_856);
ObjectSet("cja", OBJPROP_XDISTANCE, gi_864 + 153);
ObjectSet("cja", OBJPROP_YDISTANCE, gi_860 + 23);
if (gi_880 == FALSE) {
if (gi_872 == TRUE) {
ObjectDelete("Signalprice");
ObjectCreate("Signalprice", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("Signalprice", DoubleToStr(ld_900, Digits), 35, "Arial", color_92);
ObjectSet("Signalprice", OBJPROP_CORNER, g_corner_856);
ObjectSet("Signalprice", OBJPROP_XDISTANCE, gi_864 + 10);
ObjectSet("Signalprice", OBJPROP_YDISTANCE, gi_860 + 56);
}
}
if (gi_880 == TRUE) {
if (gi_872 == TRUE) {
ObjectDelete("Signalprice");
ObjectCreate("Signalprice", OBJ_LABEL, g_window_868, 0, 0);
ObjectSetText("Signalprice", DoubleToStr(ld_900, Digits), 15, "Arial", color_92);
ObjectSet("Signalprice", OBJPROP_CORNER, g_corner_856);
ObjectSet("Signalprice", OBJPROP_XDISTANCE, gi_864 + 10);
ObjectSet("Signalprice", OBJPROP_YDISTANCE, gi_860 + 60);
}
}
int li_924 = 0;
int li_928 = 0;
int li_932 = 0;
int li_936 = 0;
int li_940 = 0;
int li_944 = 0;
li_924 = (iHigh(NULL, PERIOD_D1, 1) - iLow(NULL, PERIOD_D1, 1)) / Point;
for (li_944 = 1; li_944 <= 5; li_944++) li_928 = li_928 + (iHigh(NULL, PERIOD_D1, li_944) - iLow(NULL, PERIOD_D1, li_944)) / Point;
for (li_944 = 1; li_944 <= 10; li_944++) li_932 = li_932 + (iHigh(NULL, PERIOD_D1, li_944) - iLow(NULL, PERIOD_D1, li_944)) / Point;
for (li_944 = 1; li_944 <= 20; li_944++) li_936 = li_936 + (iHigh(NULL, PERIOD_D1, li_944) - iLow(NULL, PERIOD_D1, li_944)) / Point;
li_928 /= 5;
li_932 /= 10;
li_936 /= 20;
li_940 = (li_924 + li_928 + li_932 + li_936) / 4;
string ls_unused_948 = "";
string ls_unused_956 = "";
string dbl2str_964 = "";
string dbl2str_972 = "";
string dbl2str_980 = "";
string dbl2str_988 = "";
string ls_unused_996 = "";
string ls_unused_1004 = "";
string ls_1012 = "";
double iopen_1020 = iOpen(NULL, PERIOD_D1, 0);
double iclose_1028 = iClose(NULL, PERIOD_D1, 0);
double ld_1036 = (Ask - Bid) / Point;
double ihigh_1044 = iHigh(NULL, PERIOD_D1, 0);
double ilowПоказано первые 50% кода (символов: 66805)
Открыть по тарифу
Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.
Разовая покупка файла
На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.
Зачем нужен email? После подтверждения оплаты файл сохранится в кабинете на этот email. Если аккаунта ещё нет, мы создадим его и пришлём ссылку для задания пароля. Если аккаунт уже есть, покупка добавится в него. Укажите адрес, к которому у вас есть доступ.
Чтобы оформить заказ, введите email и перейдите к оплате.