FerruFx_Multi_info+
Похожие материалы по тегам
Сообщите нам, если считаете, что материал размещён без разрешения.
Сообщить о материале
Обращение по товару «ferrufx_multi_info+_5348385974705487114.mq4» отправится на рассмотрение. Укажите контакт для ответа и опишите причину.
О программе
Этот файл является индикатором для торговой платформы MetaTrader 4, а не скриптом TradingView. Он написан на языке MQL4. Индикатор отображается в отдельном окне и служит информационной панелью, которая показывает текущее состояние открытой торговой позиции и рыночную ситуацию по нескольким техническим индикаторам на разных таймфреймах.
Панель выводит данные о стоп-лоссе, количестве пунктов до стопа, прибыли в пунктах и проценте от баланса, а также максимально допустимый лот для торговли с учётом заданного плеча. Кроме того, индикатор рассчитывает и отображает направление тренда по скользящим средним, CCI, MACD, ADX, быкам и медведям на таймфреймах от M1 до W1, а также формирует суммарные значения UP и DOWN.
Индикатор не совершает торговых операций и не является автоматическим советником. Он предназначен для визуального анализа и вспомогательной оценки открытой позиции.
Настройки программы
| Настройка | Описание |
|---|---|
| Leverage which you want to trade per position (e.g. you have a 200:1 account and you want to trade 1 (LeverageToTrade) | Плечо для торговли — Плечо, которое вы хотите использовать для торговли на одну позицию (например, при счёте 200:1, если вы хотите торговать с плечом 10:1, укажите 10). |
| Pip Value (PipValue) | Стоимость пункта — Значение одного пункта, используемое для расчёта прибыли в пунктах. |
| Shift_Settings_test_only | Настройки сдвига (только для теста) — Текстовый параметр, задающий формат даты и времени для режима тестирования. |
| Shift for test if "test" is true (look_time_shift) | Сдвиг времени для теста — Дата и время, на которые выполняется сдвиг при включённом режиме тестирования. |
| Shift for indicators if "test" is false (shift_indicators) | Сдвиг индикаторов — Сдвиг для индикаторов, применяемый когда режим тестирования выключен. |
| test | Режим тестирования — Переключатель, включающий режим тестирования, при котором используется сдвиг по заданной дате и времени. |
Поиск по коду файла
#property indicator_separate_window
#property indicator_minimum 0
#property indicator_maximum 1
#property indicator_buffers 2
#property indicator_color1 Lime
#property indicator_color2 Red
double UPBuffer[];
double DOWNBuffer[];
extern bool AccountMini = true; // If false, account is standard
extern double LeverageToTrade = 10.0; // Leverage which you want to trade per position (e.g. you have a 200:1 account and you want to trade 10:1 of this leverage, just put 10)
extern double PipValue = 0.832; // Pip Value
extern string Shift_Settings_test_only = "=== Format: 2007.05.07 00:00 ===";
extern datetime look_time_shift = D'2007.05.07 00:00'; // Shift for test if "test" is true
extern double shift_indicators = 0; // Shift for indicators if "test" is false
extern bool test = false;
string MA_Settings = "=== Moving Average Settings ===";
int FastMAPeriod = 20; // Fast Moving Average period
int MediumMAPeriod = 50; // Medium Moving Average period
int SlowMAPeriod = 100; // Slow Moving Average period
int MAMethod = MODE_EMA; // Moving Average method
int MAPrice = PRICE_CLOSE; // Moving Average price
string CCI_Settings = "=== CCI Settings ===";
int CCIPeriod = 14; // Commodity Channel Index period
int CCIPrice = PRICE_CLOSE; // CCI price
string MACD_Settings = "=== MACD Settings ===";
int MACDFast = 12; // MACD fast EMA period
int MACDSlow = 26; // MACD slow EMA period
int MACDSignal = 9; // MACD signal SMA period
string ADX_Settings = "=== ADX Settings ===";
int ADXPeriod = 14; // Average Directional movement period
int ADXPrice = PRICE_CLOSE; // ADX price
string BULLS_Settings = "=== BULLS Settings ===";
int BULLSPeriod = 13; // Bulls Power period
int BULLSPrice = PRICE_CLOSE; // Bulls Power price
string BEARS_Settings = "=== BEARS Settings ===";
int BEARSPeriod = 13; // Bears Power period
int BEARSPrice = PRICE_CLOSE; // Bears Power price
double UP_1, UP_2, UP_3, UP_4, UP_5, UP_6, UP_7, UP_8, UP_9, UP_10;
double UP_11, UP_12, UP_13, UP_14, UP_15, UP_16, UP_17, UP_18, UP_19, UP_20;
double UP_21, UP_22, UP_23, UP_24, UP_25, UP_26, UP_27, UP_28, UP_29, UP_30;
double UP_31, UP_32, UP_33, UP_34, UP_35, UP_36, UP_37, UP_38, UP_39, UP_40;
double UP_41, UP_42, UP_43, UP_44, UP_45, UP_46, UP_47, UP_48, UP_49, UP_50;
double UP_51, UP_52, UP_53, UP_54, UP_55, UP_56, UP_57, UP_58, UP_59, UP_60;
double UP_61, UP_62, UP_63, UP_64;
double DOWN_1, DOWN_2, DOWN_3, DOWN_4, DOWN_5, DOWN_6, DOWN_7, DOWN_8, DOWN_9, DOWN_10;
double DOWN_11, DOWN_12, DOWN_13, DOWN_14, DOWN_15, DOWN_16, DOWN_17, DOWN_18, DOWN_19, DOWN_20;
double DOWN_21, DOWN_22, DOWN_23, DOWN_24, DOWN_25, DOWN_26, DOWN_27, DOWN_28, DOWN_29, DOWN_30;
double DOWN_31, DOWN_32, DOWN_33, DOWN_34, DOWN_35, DOWN_36, DOWN_37, DOWN_38, DOWN_39, DOWN_40;
double DOWN_41, DOWN_42, DOWN_43, DOWN_44, DOWN_45, DOWN_46, DOWN_47, DOWN_48, DOWN_49, DOWN_50;
double DOWN_51, DOWN_52, DOWN_53, DOWN_54, DOWN_55, DOWN_56, DOWN_57, DOWN_58, DOWN_59, DOWN_60;
double DOWN_61, DOWN_62, DOWN_63, DOWN_64;
int init()
{
// код доступен только после оплаты
}
int deinit()
{
return(0);
}
int start()
{
// код доступен только после оплаты
}
int j,total=OrdersTotal();
for(j=0;j<total;j++)
{
OrderSelect(j, SELECT_BY_POS, MODE_TRADES);
}
color color_common_line = White;
color color_common_text = White;
color color_connection;
string Timeframe = "";
color color_timeframe=SkyBlue;
double time_frame=Period();
string symbol=Symbol();
if(time_frame==1) { Timeframe = "M1"; }
if(time_frame==5) { Timeframe = "M5"; }
if(time_frame==15) { Timeframe = "M15"; }
if(time_frame==30) { Timeframe = "M30"; }
if(time_frame==60) { Timeframe = "H1"; }
if(time_frame==240) { Timeframe = "H4"; }
if(time_frame==1440) { Timeframe = "D1"; }
if(time_frame==10080) { Timeframe = "W1"; }
if(time_frame==43200) { Timeframe = "MN"; }
ObjectCreate("timeframe", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("timeframe",symbol+" "+Timeframe,7, "Verdana", color_timeframe);
ObjectSet("timeframe", OBJPROP_CORNER, 0);
ObjectSet("timeframe", OBJPROP_XDISTANCE, 35);
ObjectSet("timeframe", OBJPROP_YDISTANCE, 17);
ObjectCreate("line1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("line1","--------------------------",7, "Verdana", color_common_line);
ObjectSet("line1", OBJPROP_CORNER, 0);
ObjectSet("line1", OBJPROP_XDISTANCE, 2);
ObjectSet("line1", OBJPROP_YDISTANCE, 27);
ObjectCreate("stoploss", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("stoploss","Stop Loss",7, "Verdana", color_common_text);
ObjectSet("stoploss", OBJPROP_CORNER, 0);
ObjectSet("stoploss", OBJPROP_XDISTANCE, 3);
ObjectSet("stoploss", OBJPROP_YDISTANCE, 39);
string Stop_Loss = "";
color color_stop;
if(OrderStopLoss() > 0) { Stop_Loss = DoubleToStr(OrderStopLoss(),2); color_stop = Orange; }
if(total == 0 || OrderStopLoss() == 0) { Stop_Loss = "-------"; color_stop = Red; }
ObjectCreate("Stop", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Stop",Stop_Loss,7, "Verdana", color_stop);
ObjectSet("Stop", OBJPROP_CORNER, 1);
ObjectSet("Stop", OBJPROP_XDISTANCE, 1104);
ObjectSet("Stop", OBJPROP_YDISTANCE, 39);
ObjectCreate("pipstostop", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("pipstostop","Pips to Stop",7, "Verdana", color_common_text);
ObjectSet("pipstostop", OBJPROP_CORNER, 0);
ObjectSet("pipstostop", OBJPROP_XDISTANCE, 3);
ObjectSet("pipstostop", OBJPROP_YDISTANCE, 54);
string Pips_To_Stop = "";
color color_pips_stop;
if(OrderStopLoss() > 0 && OrderType()==OP_BUY) { Pips_To_Stop = DoubleToStr((Bid - OrderStopLoss())*100,0)+" pips"; color_pips_stop = Orange; }
if(OrderStopLoss() > 0 && OrderType()==OP_SELL) { Pips_To_Stop = DoubleToStr((OrderStopLoss() - Ask)*100,0)+" pips"; color_pips_stop = Orange; }
if(total == 0 || OrderStopLoss() == 0) { Pips_To_Stop = "-------"; color_pips_stop = Red; }
ObjectCreate("PipsStop", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("PipsStop",Pips_To_Stop,7, "Verdana", color_pips_stop);
ObjectSet("PipsStop", OBJPROP_CORNER, 1);
ObjectSet("PipsStop", OBJPROP_XDISTANCE, 1104);
ObjectSet("PipsStop", OBJPROP_YDISTANCE, 54);
ObjectCreate("line2", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("line2","--------------------------",7, "Verdana", color_common_line);
ObjectSet("line2", OBJPROP_CORNER, 0);
ObjectSet("line2", OBJPROP_XDISTANCE, 2);
ObjectSet("line2", OBJPROP_YDISTANCE, 67);
ObjectCreate("pipsprofit", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("pipsprofit","Pips Profit",7, "Verdana", color_common_text);
ObjectSet("pipsprofit", OBJPROP_CORNER, 0);
ObjectSet("pipsprofit", OBJPROP_XDISTANCE, 3);
ObjectSet("pipsprofit", OBJPROP_YDISTANCE, 79);
string pips_profit = "";
color color_pipsprofit;
if(total == 0) { pips_profit = "-------"; color_pipsprofit = Red; }
else
{
pips_profit = DoubleToStr((OrderProfit() / (OrderLots()*PipValue)),0) + " pips";
if(StrToDouble(pips_profit) >= 0) { color_pipsprofit = Lime; }
else {color_pipsprofit = Red; }
}
ObjectCreate("pips_profit", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("pips_profit",pips_profit,7, "Verdana", color_pipsprofit);
ObjectSet("pips_profit", OBJPROP_CORNER, 1);
ObjectSet("pips_profit", OBJPROP_XDISTANCE, 1104);
ObjectSet("pips_profit", OBJPROP_YDISTANCE, 79);
ObjectCreate("percentbalance", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("percentbalance","% of Balance",7, "Verdana", color_common_text);
ObjectSet("percentbalance", OBJPROP_CORNER, 0);
ObjectSet("percentbalance", OBJPROP_XDISTANCE, 3);
ObjectSet("percentbalance", OBJPROP_YDISTANCE, 97);
string percent_profit = "";
color color_percentprofit;
if(total == 0) { percent_profit = "-------"; color_percentprofit = Red; }
else
{
percent_profit = DoubleToStr((((OrderProfit()-OrderSwap()) / AccountBalance())*100),2) + " %";
if(StrToDouble(percent_profit) >= 0) { color_percentprofit = Lime; }
else {color_percentprofit = Red; }
}
ObjectCreate("percent_profit", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("percent_profit",percent_profit,7, "Verdana", color_percentprofit);
ObjectSet("percent_profit", OBJPROP_CORNER, 1);
ObjectSet("percent_profit", OBJPROP_XDISTANCE, 1104);
ObjectSet("percent_profit", OBJPROP_YDISTANCE, 97);
ObjectCreate("line3", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("line3","--------------------------",7, "Verdana", color_common_line);
ObjectSet("line3", OBJPROP_CORNER, 0);
ObjectSet("line3", OBJPROP_XDISTANCE, 2);
ObjectSet("line3", OBJPROP_YDISTANCE, 109);
ObjectCreate("maxlot1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("maxlot1","Max lot to trade",7, "Verdana", color_common_text);
ObjectSet("maxlot1", OBJPROP_CORNER, 0);
ObjectSet("maxlot1", OBJPROP_XDISTANCE, 3);
ObjectSet("maxlot1", OBJPROP_YDISTANCE, 121);
string MaxLot = "";
color color_maxlot = Orange;
if(total>0)
{
if(AccountMini == true)
{
MaxLot = DoubleToStr((((AccountBalance()/10000)*LeverageToTrade)-OrderLots()),2);
}
else
{
MaxLot = DoubleToStr((((AccountBalance()/100000)*LeverageToTrade)-OrderLots()),2);
}
}
else
{
if(AccountMini == true)
{
MaxLot = DoubleToStr((((AccountBalance()/10000)*LeverageToTrade)),2);
}
else
{
MaxLot = DoubleToStr((((AccountBalance()/100000)*LeverageToTrade)),2);
}
}
ObjectCreate("maxlot2", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("maxlot2",MaxLot,7, "Verdana", color_maxlot);
ObjectSet("maxlot2", OBJPROP_CORNER, 1);
ObjectSet("maxlot2", OBJPROP_XDISTANCE, 1104);
ObjectSet("maxlot2", OBJPROP_YDISTANCE, 121);
ObjectCreate("line4", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("line4","--------------------------",7, "Verdana", color_common_line);
ObjectSet("line4", OBJPROP_CORNER, 0);
ObjectSet("line4", OBJPROP_XDISTANCE, 2);
ObjectSet("line4", OBJPROP_YDISTANCE, 132);
color color_tf = PaleGoldenrod;
ObjectCreate("m1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("m1","M1",9, "Verdana", color_tf);
ObjectSet("m1", OBJPROP_CORNER, 0);
ObjectSet("m1", OBJPROP_XDISTANCE, 170);
ObjectSet("m1", OBJPROP_YDISTANCE, 21);
ObjectCreate("m5", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("m5","M5",9, "Verdana", color_tf);
ObjectSet("m5", OBJPROP_CORNER, 0);
ObjectSet("m5", OBJPROP_XDISTANCE, 170);
ObjectSet("m5", OBJPROP_YDISTANCE, 36);
ObjectCreate("m15", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("m15","M15",9, "Verdana", color_tf);
ObjectSet("m15", OBJPROP_CORNER, 0);
ObjectSet("m15", OBJPROP_XDISTANCE, 170);
ObjectSet("m15", OBJPROP_YDISTANCE, 51);
ObjectCreate("m30", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("m30","M30",9, "Verdana", color_tf);
ObjectSet("m30", OBJPROP_CORNER, 0);
ObjectSet("m30", OBJPROP_XDISTANCE, 170);
ObjectSet("m30", OBJPROP_YDISTANCE, 66);
ObjectCreate("h1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("h1","H1",9, "Verdana", color_tf);
ObjectSet("h1", OBJPROP_CORNER, 0);
ObjectSet("h1", OBJPROP_XDISTANCE, 170);
ObjectSet("h1", OBJPROP_YDISTANCE, 81);
ObjectCreate("h4", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("h4","H4",9, "Verdana", color_tf);
ObjectSet("h4", OBJPROP_CORNER, 0);
ObjectSet("h4", OBJPROP_XDISTANCE, 170);
ObjectSet("h4", OBJPROP_YDISTANCE, 96);
ObjectCreate("d1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("d1","D1",9, "Verdana", color_tf);
ObjectSet("d1", OBJPROP_CORNER, 0);
ObjectSet("d1", OBJPROP_XDISTANCE, 170);
ObjectSet("d1", OBJPROP_YDISTANCE, 111);
ObjectCreate("w1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("w1","W1",9, "Verdana", color_tf);
ObjectSet("w1", OBJPROP_CORNER, 0);
ObjectSet("w1", OBJPROP_XDISTANCE, 170);
ObjectSet("w1", OBJPROP_YDISTANCE, 126);
double shift_1, shift_5, shift_15, shift_30, shift_60, shift_240, shift_1440, shift_10080;
if( test == true )
{
shift_1=iBarShift(NULL,PERIOD_M1,look_time_shift,false);
shift_5=iBarShift(NULL,PERIOD_M5,look_time_shift,false);
shift_15=iBarShift(NULL,PERIOD_M15,look_time_shift,false);
shift_30=iBarShift(NULL,PERIOD_M30,look_time_shift,false);
shift_60=iBarShift(NULL,PERIOD_H1,look_time_shift,false);
shift_240=iBarShift(NULL,PERIOD_H4,look_time_shift,false);
shift_1440=iBarShift(NULL,PERIOD_D1,look_time_shift,false);
shift_10080=iBarShift(NULL,PERIOD_W1,look_time_shift,false);
}
else
{
shift_1=shift_indicators;
shift_5=shift_indicators;
shift_15=shift_indicators;
shift_30=shift_indicators;
shift_60=shift_indicators;
shift_240=shift_indicators;
shift_1440=shift_indicators;
shift_10080=shift_indicators;
}
color color_ind = PowderBlue;
string MAfast_Trend_1, MAfast_Trend_5, MAfast_Trend_15, MAfast_Trend_30, MAfast_Trend_60, MAfast_Trend_240, MAfast_Trend_1440, MAfast_Trend_10080;
string MAmedium_Trend_1, MAmedium_Trend_5, MAmedium_Trend_15, MAmedium_Trend_30, MAmedium_Trend_60, MAmedium_Trend_240, MAmedium_Trend_1440, MAmedium_Trend_10080;
string MAslow_Trend_1, MAslow_Trend_5, MAslow_Trend_15, MAslow_Trend_30, MAslow_Trend_60, MAslow_Trend_240, MAslow_Trend_1440, MAslow_Trend_10080;
double x;
color color_indic;
double l;
if(FastMAPeriod < 10) { l=210; }
if(FastMAPeriod >= 10) { l=206; }
if(FastMAPeriod >= 100) { l=202; }
ObjectCreate("mafast", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("mafast","MA"+DoubleToStr(FastMAPeriod,0),9, "Verdana", color_ind);
ObjectSet("mafast", OBJPROP_CORNER, 0);
ObjectSet("mafast", OBJPROP_XDISTANCE, l);
ObjectSet("mafast", OBJPROP_YDISTANCE, 5);
double FastMA_1_1 = iMA(NULL,PERIOD_M1,FastMAPeriod,0,MAMethod,MAPrice,shift_1);
double FastMA_2_1 = iMA(NULL,PERIOD_M1,FastMAPeriod,0,MAMethod,MAPrice,shift_1+1);
if ((FastMA_1_1 > FastMA_2_1)) { MAfast_Trend_1 = "UP"; x = 216; color_indic = Lime; UP_1 = 1; DOWN_1 = 0; }
if ((FastMA_1_1 < FastMA_2_1)) { MAfast_Trend_1 = "DOWN"; x = 206; color_indic = Red; UP_1 = 0; DOWN_1 = 1; }
ObjectCreate("Trend_MAfast_1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAfast_1",MAfast_Trend_1,7, "Verdana", color_indic);
ObjectSet("Trend_MAfast_1", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAfast_1", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAfast_1", OBJPROP_YDISTANCE, 22);
double FastMA_1_5 = iMA(NULL,PERIOD_M5,FastMAPeriod,0,MAMethod,MAPrice,shift_5);
double FastMA_2_5 = iMA(NULL,PERIOD_M5,FastMAPeriod,0,MAMethod,MAPrice,shift_5+1);
if ((FastMA_1_5 > FastMA_2_5)) { MAfast_Trend_5 = "UP"; x = 216; color_indic = Lime; UP_2 = 1; DOWN_2 = 0; }
if ((FastMA_1_5 < FastMA_2_5)) { MAfast_Trend_5 = "DOWN"; x = 206; color_indic = Red; UP_2 = 0; DOWN_2 = 1; }
ObjectCreate("Trend_MAfast_5", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAfast_5",MAfast_Trend_5,7, "Verdana", color_indic);
ObjectSet("Trend_MAfast_5", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAfast_5", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAfast_5", OBJPROP_YDISTANCE, 37);
double FastMA_1_15 = iMA(NULL,PERIOD_M15,FastMAPeriod,0,MAMethod,MAPrice,shift_15);
double FastMA_2_15 = iMA(NULL,PERIOD_M15,FastMAPeriod,0,MAMethod,MAPrice,shift_15+1);
if ((FastMA_1_15 > FastMA_2_15)) { MAfast_Trend_15 = "UP"; x = 216; color_indic = Lime; UP_3 = 1; DOWN_3 = 0; }
if ((FastMA_1_15 < FastMA_2_15)) { MAfast_Trend_15 = "DOWN"; x = 206; color_indic = Red; UP_3 = 0; DOWN_3 = 1; }
ObjectCreate("Trend_MAfast_15", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAfast_15",MAfast_Trend_15,7, "Verdana", color_indic);
ObjectSet("Trend_MAfast_15", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAfast_15", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAfast_15", OBJPROP_YDISTANCE, 52);
double FastMA_1_30 = iMA(NULL,PERIOD_M30,FastMAPeriod,0,MAMethod,MAPrice,shift_30);
double FastMA_2_30 = iMA(NULL,PERIOD_M30,FastMAPeriod,0,MAMethod,MAPrice,shift_30+1);
if ((FastMA_1_30 > FastMA_2_30)) { MAfast_Trend_30 = "UP"; x = 216; color_indic = Lime; UP_4 = 1; DOWN_4 = 0; }
if ((FastMA_1_30 < FastMA_2_30)) { MAfast_Trend_30 = "DOWN"; x = 206; color_indic = Red; UP_4 = 0; DOWN_4 = 1; }
ObjectCreate("Trend_MAfast_30", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAfast_30",MAfast_Trend_30,7, "Verdana", color_indic);
ObjectSet("Trend_MAfast_30", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAfast_30", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAfast_30", OBJPROP_YDISTANCE, 67);
double FastMA_1_60 = iMA(NULL,PERIOD_H1,FastMAPeriod,0,MAMethod,MAPrice,shift_60);
double FastMA_2_60 = iMA(NULL,PERIOD_H1,FastMAPeriod,0,MAMethod,MAPrice,shift_60+1);
if ((FastMA_1_60 > FastMA_2_60)) { MAfast_Trend_60 = "UP"; x = 216; color_indic = Lime; UP_5 = 1; DOWN_5 = 0; }
if ((FastMA_1_60 < FastMA_2_60)) { MAfast_Trend_60 = "DOWN"; x = 206; color_indic = Red; UP_5 = 0; DOWN_5 = 1; }
ObjectCreate("Trend_MAfast_60", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAfast_60",MAfast_Trend_60,7, "Verdana", color_indic);
ObjectSet("Trend_MAfast_60", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAfast_60", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAfast_60", OBJPROP_YDISTANCE, 82);
double FastMA_1_240 = iMA(NULL,PERIOD_H4,FastMAPeriod,0,MAMethod,MAPrice,shift_240);
double FastMA_2_240 = iMA(NULL,PERIOD_H4,FastMAPeriod,0,MAMethod,MAPrice,shift_240+1);
if ((FastMA_1_240 > FastMA_2_240)) { MAfast_Trend_240 = "UP"; x = 216; color_indic = Lime; UP_6 = 1; DOWN_6 = 0; }
if ((FastMA_1_240 < FastMA_2_240)) { MAfast_Trend_240 = "DOWN"; x = 206; color_indic = Red; UP_6 = 0; DOWN_6 = 1; }
ObjectCreate("Trend_MAfast_240", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAfast_240",MAfast_Trend_240,7, "Verdana", color_indic);
ObjectSet("Trend_MAfast_240", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAfast_240", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAfast_240", OBJPROP_YDISTANCE, 97);
double FastMA_1_1440 = iMA(NULL,PERIOD_D1,FastMAPeriod,0,MAMethod,MAPrice,shift_1440);
double FastMA_2_1440 = iMA(NULL,PERIOD_D1,FastMAPeriod,0,MAMethod,MAPrice,shift_1440+1);
if ((FastMA_1_1440 > FastMA_2_1440)) { MAfast_Trend_1440 = "UP"; x = 216; color_indic = Lime; UP_7 = 1; DOWN_7 = 0; }
if ((FastMA_1_1440 < FastMA_2_1440)) { MAfast_Trend_1440 = "DOWN"; x = 206; color_indic = Red; UP_7 = 0; DOWN_7 = 1; }
ObjectCreate("Trend_MAfast_1440", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAfast_1440",MAfast_Trend_1440,7, "Verdana", color_indic);
ObjectSet("Trend_MAfast_1440", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAfast_1440", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAfast_1440", OBJPROP_YDISTANCE, 112);
double FastMA_1_10080 = iMA(NULL,PERIOD_W1,FastMAPeriod,0,MAMethod,MAPrice,shift_10080);
double FastMA_2_10080 = iMA(NULL,PERIOD_W1,FastMAPeriod,0,MAMethod,MAPrice,shift_10080+1);
if ((FastMA_1_10080 > FastMA_2_10080)) { MAfast_Trend_10080 = "UP"; x = 216; color_indic = Lime; UP_8 = 1; DOWN_8 = 0; }
if ((FastMA_1_10080 < FastMA_2_10080)) { MAfast_Trend_10080 = "DOWN"; x = 206; color_indic = Red; UP_8 = 0; DOWN_8 = 1; }
ObjectCreate("Trend_MAfast_10080", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAfast_10080",MAfast_Trend_10080,7, "Verdana", color_indic);
ObjectSet("Trend_MAfast_10080", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAfast_10080", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAfast_10080", OBJPROP_YDISTANCE, 127);
double m;
if(MediumMAPeriod < 10) { m=260; }
if(MediumMAPeriod >= 10) { m=256; }
if(MediumMAPeriod >= 100) { m=252; }
ObjectCreate("mamedium", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("mamedium","MA"+DoubleToStr(MediumMAPeriod,0),9, "Verdana", color_ind);
ObjectSet("mamedium", OBJPROP_CORNER, 0);
ObjectSet("mamedium", OBJPROP_XDISTANCE, m);
ObjectSet("mamedium", OBJPROP_YDISTANCE, 5);
double MediumMA_1_1 = iMA(NULL,PERIOD_M1,MediumMAPeriod,0,MAMethod,MAPrice,shift_1);
double MediumMA_2_1 = iMA(NULL,PERIOD_M1,MediumMAPeriod,0,MAMethod,MAPrice,shift_1+1);
if ((MediumMA_1_1 > MediumMA_2_1)) { MAmedium_Trend_1 = "UP"; x = 266; color_indic = Lime; UP_9 = 1; DOWN_9 = 0; }
if ((MediumMA_1_1 < MediumMA_2_1)) { MAmedium_Trend_1 = "DOWN"; x = 256; color_indic = Red; UP_9 = 0; DOWN_9 = 1; }
ObjectCreate("Trend_MAmedium_1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAmedium_1",MAmedium_Trend_1,7, "Verdana", color_indic);
ObjectSet("Trend_MAmedium_1", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAmedium_1", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAmedium_1", OBJPROP_YDISTANCE, 22);
double MediumMA_1_5 = iMA(NULL,PERIOD_M5,MediumMAPeriod,0,MAMethod,MAPrice,shift_5);
double MediumMA_2_5 = iMA(NULL,PERIOD_M5,MediumMAPeriod,0,MAMethod,MAPrice,shift_5+1);
if ((MediumMA_1_5 > MediumMA_2_5)) { MAmedium_Trend_5 = "UP"; x = 266; color_indic = Lime; UP_10 = 1; DOWN_10 = 0; }
if ((MediumMA_1_5 < MediumMA_2_5)) { MAmedium_Trend_5 = "DOWN"; x = 256; color_indic = Red; UP_10 = 0; DOWN_10 = 1; }
ObjectCreate("Trend_MAmedium_5", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAmedium_5",MAmedium_Trend_5,7, "Verdana", color_indic);
ObjectSet("Trend_MAmedium_5", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAmedium_5", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAmedium_5", OBJPROP_YDISTANCE, 37);
double MediumMA_1_15 = iMA(NULL,PERIOD_M15,MediumMAPeriod,0,MAMethod,MAPrice,shift_15);
double MediumMA_2_15 = iMA(NULL,PERIOD_M15,MediumMAPeriod,0,MAMethod,MAPrice,shift_15+1);
if ((MediumMA_1_15 > MediumMA_2_15)) { MAmedium_Trend_15 = "UP"; x = 266; color_indic = Lime; UP_11 = 1; DOWN_11 = 0; }
if ((MediumMA_1_15 < MediumMA_2_15)) { MAmedium_Trend_15 = "DOWN"; x = 256; color_indic = Red; UP_11 = 0; DOWN_11 = 1; }
ObjectCreate("Trend_MAmedium_15", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAmedium_15",MAmedium_Trend_15,7, "Verdana", color_indic);
ObjectSet("Trend_MAmedium_15", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAmedium_15", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAmedium_15", OBJPROP_YDISTANCE, 52);
double MediumMA_1_30 = iMA(NULL,PERIOD_M30,MediumMAPeriod,0,MAMethod,MAPrice,shift_30);
double MediumMA_2_30 = iMA(NULL,PERIOD_M30,MediumMAPeriod,0,MAMethod,MAPrice,shift_30+1);
if ((MediumMA_1_30 > MediumMA_2_30)) { MAmedium_Trend_30 = "UP"; x = 266; color_indic = Lime; UP_12 = 1; DOWN_12 = 0; }
if ((MediumMA_1_30 < MediumMA_2_30)) { MAmedium_Trend_30 = "DOWN"; x = 256; color_indic = Red; UP_12 = 0; DOWN_12 = 1; }
ObjectCreate("Trend_MAmedium_30", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAmedium_30",MAmedium_Trend_30,7, "Verdana", color_indic);
ObjectSet("Trend_MAmedium_30", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAmedium_30", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAmedium_30", OBJPROP_YDISTANCE, 67);
double MediumMA_1_60 = iMA(NULL,PERIOD_H1,MediumMAPeriod,0,MAMethod,MAPrice,shift_60);
double MediumMA_2_60 = iMA(NULL,PERIOD_H1,MediumMAPeriod,0,MAMethod,MAPrice,shift_60+1);
if ((MediumMA_1_60 > MediumMA_2_60)) { MAmedium_Trend_60 = "UP"; x = 266; color_indic = Lime; UP_13 = 1; DOWN_13 = 0; }
if ((MediumMA_1_60 < MediumMA_2_60)) { MAmedium_Trend_60 = "DOWN"; x = 256; color_indic = Red; UP_13 = 0; DOWN_13 = 1; }
ObjectCreate("Trend_MAmedium_60", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAmedium_60",MAmedium_Trend_60,7, "Verdana", color_indic);
ObjectSet("Trend_MAmedium_60", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAmedium_60", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAmedium_60", OBJPROP_YDISTANCE, 82);
double MediumMA_1_240 = iMA(NULL,PERIOD_H4,MediumMAPeriod,0,MAMethod,MAPrice,shift_240);
double MediumMA_2_240 = iMA(NULL,PERIOD_H4,MediumMAPeriod,0,MAMethod,MAPrice,shift_240+1);
if ((MediumMA_1_240 > MediumMA_2_240)) { MAmedium_Trend_240 = "UP"; x = 266; color_indic = Lime; UP_14 = 1; DOWN_14 = 0; }
if ((MediumMA_1_240 < MediumMA_2_240)) { MAmedium_Trend_240 = "DOWN"; x = 256; color_indic = Red; UP_14 = 0; DOWN_14 = 1; }
ObjectCreate("Trend_MAmedium_240", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAmedium_240",MAmedium_Trend_240,7, "Verdana", color_indic);
ObjectSet("Trend_MAmedium_240", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAmedium_240", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAmedium_240", OBJPROP_YDISTANCE, 97);
double MediumMA_1_1440 = iMA(NULL,PERIOD_D1,MediumMAPeriod,0,MAMethod,MAPrice,shift_1440);
double MediumMA_2_1440 = iMA(NULL,PERIOD_D1,MediumMAPeriod,0,MAMethod,MAPrice,shift_1440+1);
if ((MediumMA_1_1440 > MediumMA_2_1440)) { MAmedium_Trend_1440 = "UP"; x = 266; color_indic = Lime; UP_15 = 1; DOWN_15 = 0; }
if ((MediumMA_1_1440 < MediumMA_2_1440)) { MAmedium_Trend_1440 = "DOWN"; x = 256; color_indic = Red; UP_15 = 0; DOWN_15 = 1; }
ObjectCreate("Trend_MAmedium_1440", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAmedium_1440",MAmedium_Trend_1440,7, "Verdana", color_indic);
ObjectSet("Trend_MAmedium_1440", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAmedium_1440", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAmedium_1440", OBJPROP_YDISTANCE, 112);
double MediumMA_1_10080 = iMA(NULL,PERIOD_W1,MediumMAPeriod,0,MAMethod,MAPrice,shift_10080);
double MediumMA_2_10080 = iMA(NULL,PERIOD_W1,MediumMAPeriod,0,MAMethod,MAPrice,shift_10080+1);
if ((MediumMA_1_10080 > MediumMA_2_10080)) { MAmedium_Trend_10080 = "UP"; x = 266; color_indic = Lime; UP_16 = 1; DOWN_16 = 0; }
if ((MediumMA_1_10080 < MediumMA_2_10080)) { MAmedium_Trend_10080 = "DOWN"; x = 256; color_indic = Red; UP_16 = 0; DOWN_16 = 1; }
ObjectCreate("Trend_MAmedium_10080", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAmedium_10080",MAmedium_Trend_10080,7, "Verdana", color_indic);
ObjectSet("Trend_MAmedium_10080", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAmedium_10080", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAmedium_10080", OBJPROP_YDISTANCE, 127);
double n;
if(SlowMAPeriod < 10) { n=310; }
if(SlowMAPeriod >= 10) { n=306; }
if(SlowMAPeriod >= 100) { n=302; }
ObjectCreate("maslow", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("maslow","MA"+DoubleToStr(SlowMAPeriod,0),9, "Verdana", color_ind);
ObjectSet("maslow", OBJPROP_CORNER, 0);
ObjectSet("maslow", OBJPROP_XDISTANCE, n);
ObjectSet("maslow", OBJPROP_YDISTANCE, 5);
double SlowMA_1_1 = iMA(NULL,PERIOD_M1,SlowMAPeriod,0,MAMethod,MAPrice,shift_1);
double SlowMA_2_1 = iMA(NULL,PERIOD_M1,SlowMAPeriod,0,MAMethod,MAPrice,shift_1+1);
if ((SlowMA_1_1 > SlowMA_2_1)) { MAslow_Trend_1 = "UP"; x = 316; color_indic = Lime; UP_17 = 1; DOWN_17 = 0; }
if ((SlowMA_1_1 < SlowMA_2_1)) { MAslow_Trend_1 = "DOWN"; x = 306; color_indic = Red; UP_17 = 0; DOWN_17 = 1; }
ObjectCreate("Trend_MAslow_1", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAslow_1",MAslow_Trend_1,7, "Verdana", color_indic);
ObjectSet("Trend_MAslow_1", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAslow_1", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAslow_1", OBJPROP_YDISTANCE, 22);
double SlowMA_1_5 = iMA(NULL,PERIOD_M5,SlowMAPeriod,0,MAMethod,MAPrice,shift_5);
double SlowMA_2_5 = iMA(NULL,PERIOD_M5,SlowMAPeriod,0,MAMethod,MAPrice,shift_5+1);
if ((SlowMA_1_5 > SlowMA_2_5)) { MAslow_Trend_5 = "UP"; x = 316; color_indic = Lime; UP_18 = 1; DOWN_18 = 0; }
if ((SlowMA_1_5 < SlowMA_2_5)) { MAslow_Trend_5 = "DOWN"; x = 306; color_indic = Red; UP_18 = 0; DOWN_18 = 1; }
ObjectCreate("Trend_MAslow_5", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAslow_5",MAslow_Trend_5,7, "Verdana", color_indic);
ObjectSet("Trend_MAslow_5", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAslow_5", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAslow_5", OBJPROP_YDISTANCE, 37);
double SlowMA_1_15 = iMA(NULL,PERIOD_M15,SlowMAPeriod,0,MAMethod,MAPrice,shift_15);
double SlowMA_2_15 = iMA(NULL,PERIOD_M15,SlowMAPeriod,0,MAMethod,MAPrice,shift_15+1);
if ((SlowMA_1_15 > SlowMA_2_15)) { MAslow_Trend_15 = "UP"; x = 316; color_indic = Lime; UP_19 = 1; DOWN_19 = 0; }
if ((SlowMA_1_15 < SlowMA_2_15)) { MAslow_Trend_15 = "DOWN"; x = 306; color_indic = Red; UP_19 = 0; DOWN_19 = 1; }
ObjectCreate("Trend_MAslow_15", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAslow_15",MAslow_Trend_15,7, "Verdana", color_indic);
ObjectSet("Trend_MAslow_15", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAslow_15", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAslow_15", OBJPROP_YDISTANCE, 52);
double SlowMA_1_30 = iMA(NULL,PERIOD_M30,SlowMAPeriod,0,MAMethod,MAPrice,shift_30);
double SlowMA_2_30 = iMA(NULL,PERIOD_M30,SlowMAPeriod,0,MAMethod,MAPrice,shift_30+1);
if ((SlowMA_1_30 > SlowMA_2_30)) { MAslow_Trend_30 = "UP"; x = 316; color_indic = Lime; UP_20 = 1; DOWN_20 = 0; }
if ((SlowMA_1_30 < SlowMA_2_30)) { MAslow_Trend_30 = "DOWN"; x = 306; color_indic = Red; UP_20 = 0; DOWN_20 = 1; }
ObjectCreate("Trend_MAslow_30", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAslow_30",MAslow_Trend_30,7, "Verdana", color_indic);
ObjectSet("Trend_MAslow_30", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAslow_30", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAslow_30", OBJPROP_YDISTANCE, 67);
double SlowMA_1_60 = iMA(NULL,PERIOD_H1,SlowMAPeriod,0,MAMethod,MAPrice,shift_60);
double SlowMA_2_60 = iMA(NULL,PERIOD_H1,SlowMAPeriod,0,MAMethod,MAPrice,shift_60+1);
if ((SlowMA_1_60 > SlowMA_2_60)) { MAslow_Trend_60 = "UP"; x = 316; color_indic = Lime; UP_21 = 1; DOWN_21 = 0; }
if ((SlowMA_1_60 < SlowMA_2_60)) { MAslow_Trend_60 = "DOWN"; x = 306; color_indic = Red; UP_21 = 0; DOWN_21 = 1; }
ObjectCreate("Trend_MAslow_60", OBJ_LABEL, WindowFind(" + Open Trade Analysis +"), 0, 0);
ObjectSetText("Trend_MAslow_60",MAslow_Trend_60,7, "Verdana", color_indic);
ObjectSet("Trend_MAslow_60", OBJPROP_CORNER, 0);
ObjectSet("Trend_MAslow_60", OBJPROP_XDISTANCE, x);
ObjectSet("Trend_MAslow_60", OBJPROP_YDISTANCE, 82);
double SlowMA_1_240 = iMA(NULL,PERIOD_H4,SlowMAPeriod,0,MAMethod,MAPrice,shift_240);
double SlowMA_2_240 = iMA(NULL,PERIOD_H4,SlowMAPeriod,0,MAMethod,MAPrice,shift_240+1);
if ((SlowMA_1_240 > SlowMA_2_240)) { MAslow_Trend_240 = "UP"; x = 316; color_indic = Lime; UP_22 = 1; DOWN_22 = 0; }
if ((SlowMПоказано первые 50% кода (символов: 54686)
Открыть по тарифу
Купите тариф с пакетом открытий или войдите, если тариф уже есть. Открытый файл останется в вашем кабинете навсегда.
Разовая покупка файла
На этой странице откроется полный исходный код файла вместо ознакомительного фрагмента.
Зачем нужен email? После подтверждения оплаты файл сохранится в кабинете на этот email. Если аккаунта ещё нет, мы создадим его и пришлём ссылку для задания пароля. Если аккаунт уже есть, покупка добавится в него. Укажите адрес, к которому у вас есть доступ.
Чтобы оформить заказ, введите email и перейдите к оплате.