trio_dancer3_5.mq4
Похожие материалы по тегам
Сообщите нам, если считаете, что материал размещён без разрешения.
Сообщить о материале
Обращение по товару «trio_dancer3_5.mq4» отправится на рассмотрение. Укажите контакт для ответа и опишите причину.
О программе
Trio Dancer 3.5 — это торговый советник для MetaTrader 4, одновременно запускающий три стратегии (Dancing Jaipong, Dancing Keroncong, Dancing Tortor) на одном символе с разными магическими числами. Каждая стратегия работает на своём таймфрейме и имеет собственные параметры количества сделок, траилинга и проскальзывания.
Советник использует мультитаймфреймовый анализ индикаторов MACD, RSI, Stochastic, CCI и EMA для формирования сигналов на нескольких таймфреймах одновременно. Внутренние функции рассчитывают средневзвешенную цену открытых позиций, управляют модификацией ордеров и отслеживают профит по текущим сделкам.
Встроены механизмы управления рисками: стоп-лосс по эквити (в процентах и в деньгах), трейлинг-стоп, ограничение по убытку (Lock), временные окна торговли и возможность закрытия всех позиций в заданное время. На графике отображаются сигналы индикаторов, спред, волатильность и данные счёта.
В коде реализована система лицензирования через ключ KEY с проверкой даты истечения. Советник отправляет ордера через OrderSend с обработкой ошибок и повторными попытками, а также воспроизводит звуковые сигналы при открытии позиций.
Настройки программы
| Настройка | Описание |
|---|---|
| t1 | Глобальные настройки — Заголовок группы глобальных настроек. |
| BeginHour | Час начала — Час начала торговой сессии. |
| BeginMin | Минута начала — Минута начала торговой сессии. |
| EndHour | Час окончания — Час окончания торговой сессии. |
| EndMin | Минута окончания — Минута окончания торговой сессии. |
| StopNewSeries | Стоп на новой серии — Переключатель остановки торговли при появлении новой свечи. |
| CloseAll | Закрыть все — Переключатель автоматического закрытия всех позиций в заданное время. |
| CloseHour | Час закрытия — Час закрытия торговой сессии. |
| CloseMin | Минута закрытия — Минута закрытия торговой сессии. |
| Lots | Размер лота — Начальный размер лота. |
| LotExponent | Экспонента лота — Экспонента для расчёта размера лота (мартингейл). |
| MaxLots | Макс. лот — Максимально допустимый размер лота. |
| MM | Управление объёмом — Переключатель управления объёмом (Money Management). |
| TakeProfit | Тейк-профит — Тейк-профит в пунктах для стратегии Jaipong. |
| UseEquityStop | Стоп по эквити (%) — Переключатель стопа по эквити в процентах. |
| TotalEquityRisk | Риск эквити (%) — Процент риска эквити для стопа по эквити. |
| UseEquityStopInMoney | Стоп по эквити (деньги) — Переключатель стопа по эквити в деньгах. |
| TotalEquityRiskInMoney | Риск эквити (деньги) — Сумма риска эквити в деньгах для стопа по эквити. |
| t2 | Настройки времени — Заголовок группы настроек времени. |
| CloseFriday | Закрытие в пятницу — Переключатель закрытия позиций в пятницу. |
| CloseFridayHour | Час закрытия в пятницу — Час закрытия позиций в пятницу. |
| OpenMondey | Открытие в понедельник — Переключатель открытия позиций в понедельник. |
| OpenMondeyHour | Час открытия в понедельник — Час открытия позиций в понедельник. |
| t3 | Настройки Jaipong — Заголовок группы настроек стратегии Jaipong. |
| MaxTrades_Hilo | Макс. сделки Jaipong — Максимальное количество одновременных сделок для стратегии Jaipong. |
| UseTrailingStop_Hilo | Трейлинг Jaipong — Переключатель трейлинг-стопа для стратегии Jaipong. |
| TrailStart_Hilo | Старт трейлинга Jaipong — Уровень прибыли в пунктах для активации трейлинга стратегии Jaipong. |
| TrailStop_Hilo | Трейл-стоп Jaipong — Расстояние стопа в пунктах для трейлинга стратегии Jaipong. |
| PipStep_Hilo | Шаг пипсов Jaipong — Шаг в пунктах для входа в сделку стратегии Jaipong. |
| slip_Hilo | Проскальзывание Jaipong — Допустимое проскальзывание для стратегии Jaipong. |
| MagicNumber_Hilo | Маг. номер Jaipong — Магическое число для стратегии Dancing Jaipong. |
| Lock | Блокировка — Переключатель функции блокировки (Lock) при достижении лимита убытка. |
| MagicLock | Маг. номер блокировки — Магическое число для ордеров блокировки. |
| Loss | Лимит убытка — Лимит убытка в деньгах для активации блокировки. |
| t4 | Настройки Keroncong — Заголовок группы настроек стратегии Keroncong. |
| MaxTrades_15 | Макс. сделки Keroncong — Максимальное количество одновременных сделок для стратегии Keroncong. |
| UseTrailingStop_15 | Трейлинг Keroncong — Переключатель трейлинг-стопа для стратегии Keroncong. |
| TrailStart_15 | Старт трейлинга Keroncong — Уровень прибыли в пунктах для активации трейлинга стратегии Keroncong. |
| TrailStop_15 | Трейл-стоп Keroncong — Расстояние стопа в пунктах для трейлинга стратегии Keroncong. |
| PipStep_15 | Шаг пипсов Keroncong — Шаг в пунктах для входа в сделку стратегии Keroncong. |
| slip_15 | Проскальзывание Keroncong — Допустимое проскальзывание для стратегии Keroncong. |
| G_magic_176_15 | Маг. номер Keroncong — Магическое число для стратегии Dancing Keroncong. |
| t5 | Настройки Tortor — Заголовок группы настроек стратегии Tortor. |
| MaxTrades_16 | Макс. сделки Tortor — Максимальное количество одновременных сделок для стратегии Tortor. |
| UseTrailingStop_16 | Трейлинг Tortor — Переключатель трейлинг-стопа для стратегии Tortor. |
| TrailStart_16 | Старт трейлинга Tortor — Уровень прибыли в пунктах для активации трейлинга стратегии Tortor. |
| TrailStop_16 | Трейл-стоп Tortor — Расстояние стопа в пунктах для трейлинга стратегии Tortor. |
| PipStep_16 | Шаг пипсов Tortor — Шаг в пунктах для входа в сделку стратегии Tortor. |
| slip_16 | Проскальзывание Tortor — Допустимое проскальзывание для стратегии Tortor. |
| G_magic_176_16 | Маг. номер Tortor — Магическое число для стратегии Dancing Tortor. |
Поиск по коду файла
extern string t1 = "Global Setting";
extern int BeginHour=0;
extern int BeginMin=0;
extern int EndHour=20;
extern int EndMin=0;
extern bool StopNewSeries=false;
extern bool CloseAll=false;
extern int CloseHour=23;
extern int CloseMin=0;
int clos,close,clos1,clos2,clos3,clos4,clos5,clos6;
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 bool UseEquityStopInMoney=true;
extern double TotalEquityRiskInMoney = 20.0;
extern string t2 = "Time Setting";
extern bool CloseFriday = TRUE;
extern int CloseFridayHour = 17;
extern bool OpenMondey = TRUE;
extern int OpenMondeyHour = 0;
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;
extern bool Lock=true;
extern int MagicLock=456;
extern double Loss=500;
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;
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 magicNumber_Hilo=MagicNumber_Hilo;
int g_magic_176_15=G_magic_176_15;
int g_magic_176_16=G_magic_176_16;
int start() {
// код доступен только после оплаты
}
int k1,k;
datetime ot;
int ko1,ko2,ko3,ko4,ko5,ko6;
for(int m1=1; m1<=OrdersTotal(); m1++)
{
if(OrderSelect(m1-1,SELECT_BY_POS))
{
int typ=OrderType();
int mn=OrderMagicNumber();
if(OrderSymbol()==Symbol())
{
if (mn==MagicLock)
{
k1=k1+1;
ot=OrderOpenTime();
} }}}
if(k1>0)
{
magicNumber_Hilo=MagicNumber_Hilo+1;
g_magic_176_15=G_magic_176_15+1;
g_magic_176_16=G_magic_176_16+1;
}
if(k1==0)
{
magicNumber_Hilo=MagicNumber_Hilo;
g_magic_176_15=G_magic_176_15;
g_magic_176_16=G_magic_176_16;
}
int ka=0;
for( m1=1; m1<=OrdersTotal(); m1++)
{
if(OrderSelect(m1-1,SELECT_BY_POS))
{
typ=OrderType();
mn=OrderMagicNumber();
if(OrderSymbol()==Symbol())
{
if (mn==magicNumber_Hilo || mn==g_magic_176_15 || mn==g_magic_176_16)
k=k+1;
if (mn==magicNumber_Hilo-1 || mn==g_magic_176_15-1 || mn==g_magic_176_16-1)
ka=ka+1;
if (mn==magicNumber_Hilo && typ==0)
ko1=ko1+1;
if (mn==g_magic_176_15 && typ==0)
ko2=ko2+1;
if (mn==g_magic_176_16 && typ==0)
ko3=ko3+1;
if (mn==magicNumber_Hilo && typ==1)
ko4=ko4+1;
if (mn==g_magic_176_15 && typ==1)
ko5=ko5+1;
if (mn==g_magic_176_16 && typ==1)
ko6=ko6+1;
}
}
}
double lot1,lot2,lot3,lot4,lot5,lot6;
if(ko1==0) {clos1=0; ObjectDelete(0,"Line1");}
if(ko2==0) {clos2=0; ObjectDelete(0,"Line2");}
if(ko3==0) {clos3=0; ObjectDelete(0,"Line3");}
if(ko4==0) {clos4=0; ObjectDelete(0,"Line4");}
if(ko5==0) {clos5=0; ObjectDelete(0,"Line5");}
if(ko6==0) {clos6=0; ObjectDelete(0,"Line6");}
lot1=GetAmountLotFromOpenPos(Symbol(), 0, magicNumber_Hilo);
lot2=GetAmountLotFromOpenPos(Symbol(), 0, g_magic_176_15);
lot3=GetAmountLotFromOpenPos(Symbol(), 0, g_magic_176_16);
lot4=GetAmountLotFromOpenPos(Symbol(), 1, magicNumber_Hilo);
lot5=GetAmountLotFromOpenPos(Symbol(), 1, g_magic_176_15);
lot6=GetAmountLotFromOpenPos(Symbol(), 1, g_magic_176_16);
double pr=GetProfitOpenPosInCurrency(Symbol(),-1,magicNumber_Hilo)+
GetProfitOpenPosInCurrency(Symbol(),-1,g_magic_176_15)+
GetProfitOpenPosInCurrency(Symbol(),-1,g_magic_176_16);
double lt1=lot1+lot2+lot3;
double lt2=lot4+lot5+lot6;
double bp1,bp2,bp3,sp1,sp2,sp3;
double prb1=GetProfitOpenPosInPoint(Symbol(),0,magicNumber_Hilo);
double prb2=GetProfitOpenPosInPoint(Symbol(),0,g_magic_176_15);
double prb3=GetProfitOpenPosInPoint(Symbol(),0,g_magic_176_16);
double prs1=GetProfitOpenPosInPoint(Symbol(),1,magicNumber_Hilo);
double prs2=GetProfitOpenPosInPoint(Symbol(),1,g_magic_176_15);
double prs3=GetProfitOpenPosInPoint(Symbol(),1,g_magic_176_16);
if(lot1>0)
{
bp1=prb1/lot1+TakeProfit*Point;
ObjectCreate(0,"Line1",OBJ_HLINE,0,0,bp1);
ObjectSet("Line1",OBJPROP_PRICE1,bp1);
ObjectSet("Line1",OBJPROP_COLOR,Lime);
}
if(lot2>0)
{
bp2=prb2/lot2+TakeProfit*Point;
ObjectCreate(0,"Line2",OBJ_HLINE,0,0,bp2);
ObjectSet("Line2",OBJPROP_PRICE1,bp2);
ObjectSet("Line2",OBJPROP_COLOR,Lime);
}
if(lot3>0)
{
bp3=prb3/lot3+TakeProfit*Point;
ObjectCreate(0,"Line3",OBJ_HLINE,0,0,bp3);
ObjectSet("Line3",OBJPROP_PRICE1,bp3);
ObjectSet("Line3",OBJPROP_COLOR,Lime);
}
if(lot4>0)
{
sp1=prs1/lot4-TakeProfit*Point;
ObjectCreate(0,"Line4",OBJ_HLINE,0,0,sp1);
ObjectSet("Line4",OBJPROP_PRICE1,sp1);
ObjectSet("Line4",OBJPROP_COLOR,Red);
}
if(lot5>0)
{
sp2=prs2/lot5-TakeProfit*Point;
ObjectCreate(0,"Line5",OBJ_HLINE,0,0,sp2);
ObjectSet("Line5",OBJPROP_PRICE1,sp2);
ObjectSet("Line5",OBJPROP_COLOR,Red);
}
if(lot6>0)
{
sp3=prs3/lot6-TakeProfit*Point;
ObjectCreate(0,"Line6",OBJ_HLINE,0,0,sp3);
ObjectSet("Line6",OBJPROP_PRICE1,sp3);
ObjectSet("Line6",OBJPROP_COLOR,Red);
}
if(Bid>=bp1 && bp1>0) clos1=1;
if(Bid>=bp2 && bp2>0) clos2=1;
if(Bid>=bp3 && bp3>0) clos3=1;
if(Ask<=sp1) clos4=1;
if(Ask<=sp2) clos5=1;
if(Ask<=sp3) clos6=1;
if(k1==0 && Lock && pr<=-Loss)
{
if(lt1>lt2)
int send=OrderSend(Symbol(),1,lt1-lt2,Bid,5,0,0,"Lock",MagicLock);
if(lt1<lt2)
send=OrderSend(Symbol(),0,lt2-lt1,Ask,5,0,0,"Lock",MagicLock);
}
double prd=GetProfitFromDateInCurrency(Symbol(),-1,magicNumber_Hilo,ot)+
GetProfitFromDateInCurrency(Symbol(),-1,g_magic_176_15,ot)+
GetProfitFromDateInCurrency(Symbol(),-1,g_magic_176_16,ot)+pr;
bool work;
if( ((Hour()==BeginHour && Minute()>=BeginMin) || Hour()>BeginHour)
&& (Hour()<EndHour || (Hour()==EndHour && Minute()<EndMin)) && BeginHour<=EndHour) work=true;
if( (((Hour()==BeginHour && Minute()>=BeginMin) || Hour()>BeginHour)
|| (Hour()<EndHour || (Hour()==EndHour && Minute()<EndMin))) && BeginHour>EndHour) work=true;
if(StopNewSeries) work=false;
int stop;
if(CloseAll)
{
if((Hour()==CloseHour && Minute()>=CloseMin) || Hour()>CloseHour)
{
work=false;
stop=1;
}
}
for(int h=1; h<=OrdersTotal(); h++)
{
if(OrderSelect(h-1,SELECT_BY_POS))
{
if(OrderSymbol()==Symbol())
{
int types=OrderType();
double lotes=OrderLots();
double price=OrderClosePrice();
int ticket=OrderTicket();
int magic=OrderMagicNumber();
double sl=OrderStopLoss();
double tp=OrderTakeProfit();
if (types<2 && stop==1 && (magic==magicNumber_Hilo || magic==g_magic_176_15 || magic==g_magic_176_16))
bool cl=OrderClose(ticket,lotes,price,5);
if ((magic==magicNumber_Hilo-1 || magic==g_magic_176_15-1 || magic==g_magic_176_16-1) && (sl!=0 || tp!=0) && k1>0)
cl=OrderModify(ticket,OrderOpenPrice(),0,0,0);
if ((magic==magicNumber_Hilo-1 || magic==g_magic_176_15-1 || magic==g_magic_176_16-1
|| magic==magicNumber_Hilo || magic==g_magic_176_15 || magic==g_magic_176_16) && (prd>=Loss || close==1) && k1>0)
{
cl=OrderClose(ticket,lotes,price,5);
close=1;
}
if(close==1 && magic==MagicLock && k+ka==0)
{
cl=OrderClose(ticket,lotes,price,5);
close=0;
}
if(clos1==1 && magic==magicNumber_Hilo && types==0)
cl=OrderClose(ticket,lotes,price,5);
if(clos2==1 && magic==g_magic_176_15 && types==0)
cl=OrderClose(ticket,lotes,price,5);
if(clos3==1 && magic==g_magic_176_16 && types==0)
cl=OrderClose(ticket,lotes,price,5);
if(clos4==1 && magic==magicNumber_Hilo && types==1)
cl=OrderClose(ticket,lotes,price,5);
if(clos5==1 && magic==g_magic_176_15 && types==1)
cl=OrderClose(ticket,lotes,price,5);
if(clos6==1 && magic==g_magic_176_16 && types==1)
cl=OrderClose(ticket,lotes,price,5);
}
}
}
if(stop>0 || close==1) return;
if(clos1+clos2+clos3+clos4+clos5+clos6>0) return;
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;
}
if (Gi_1492 == 2) {
Alert("Invalid license KEY! Please enter a valid license KEY!");
return;
}
if (Gi_1492 == 3) {
Alert("The license KEY has expired!");
return;
}
int ind_counted_0 = IndicatorCounted();
/* if (!IsDemo())
if (AccountNumber() != Account) return (0);*/
if (Lots > MaxLots) Lots = MaxLots;
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"
+ "=====================");
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("SignПоказано первые 50% кода (символов: 81469)
Открыть по тарифу
Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.
Разовая покупка файла
На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.
Зачем нужен email? После подтверждения оплаты файл сохранится в кабинете на этот email. Если аккаунта ещё нет, мы создадим его и пришлём ссылку для задания пароля. Если аккаунт уже есть, покупка добавится в него. Укажите адрес, к которому у вас есть доступ.
Чтобы оформить заказ, введите email и перейдите к оплате.