/*
Generated by EX4-TO-MQ4 decompiler V4.0.220.2c []
Website: http://purebeam.biz
E-mail : purebeam@gmail.com
*/
#property copyright “Copyright ?2007, #Signal_Bars_Executive by cja.”
#property link “Bars Concept Created by cja ccjjaa@gmail.com”
//EDUCATED by Player
#property indicator_chart_window
extern string Note1 = “See Indicator Instructions for the”;
extern string Note2 = “Operation of this Indicator”;
extern string ___________________ = “____________________________________________________”;
extern bool Show_Indicator_Instructions = FALSE;
extern bool Show_Indicator_Instructions_2 = FALSE;
extern string __________________ = “____________________________________________________”;
extern int SIGBARS_Multi_No = 1;
extern string IIIIIIIIIIIIIIII_NOTE……Load = “Currency Pairs Below >>>>>>>>>>>>>>>>>>”;
extern string symbol = “”;
extern bool Digit_Switch = FALSE;
extern bool Spread_Digit_Shift = FALSE;
extern string IIIIIIIIIIIIIIIII = “<<<< Chart Position Settings >>>>>”;
extern bool Corner_of_Chart_RIGHT_TOP = TRUE;
extern int Shift_UP_DN = 0;
extern int Adjust_Side_to_side = 20;
extern int Sig_Bars_Window = 0;
extern string IIIIIIIIIIIIIIIIII = “<<<< Adjustable TimeFrames >>>>>>>>>>>>>>>>>>>>>>>>”;
extern int TF1 = 1;
extern int TF2 = 5;
extern int TF3 = 15;
extern int TF4 = 30;
extern int TF5 = 60;
extern int TF6 = 240;
extern string IIIIIIIIIIIIIIIIII. = “<<<< Number of TimeFrames >>>>”;
extern int No_of_TFs = 6;
extern string IIIIIIIIIIIIIIIIIII = “<<<< Alert & Sound Settings >>>>>”;
extern int AlertLevel = 60;
extern bool POPUP_Alert_ON = FALSE;
extern bool Sound_Constant_Alert_ON = FALSE;
extern bool Sound_Limited_Alert_ON = FALSE;
extern bool Show_Visual_Alert = TRUE;
extern color Alert_col_UP = Lime;
extern color Alert_col_DN = Red;
extern color Alert_col_NEUTRAL = Gray;
extern string ____________________NOTE.. = “Minutes = 1/5/15/30 = TFrame mins”;
extern int Alert_Frequency_Minutes = 1;
extern string IIIIIIIIIIIIIIIIIII. = ” <<<< Comments Settings >>>>>>>>”;
extern bool Show_Price = TRUE;
extern bool Show_Xtra_Details = TRUE;
extern bool Show_Smaller_Size = TRUE;
extern bool Show_BrokerTime = FALSE;
extern bool Show_Header = TRUE;
extern bool Show_Indicator_Bars = TRUE;
extern string ____________________NOTE = “Average Settings 0 to 10 & 15/20/25 “;
extern string ____________________NOTE. = “30/35/40/45/50/60/70/80/90/100 “;
extern int Select_Average = 0;
extern string _______________________________ = “_______________________________________________”;
extern color Title_Color = Black;
extern color TimeFrame_Label_color = DimGray;
extern color BarLabel_color = DimGray;
extern color CommentLabel_color = Gray;
extern color Spread_color = DarkSlateGray;
extern color HI_LO_color = DarkSlateGray;
extern color Pips_UP = Lime;
extern color Pips_DN = OrangeRed;
extern color Daily_AV_UP = Lime;
extern color Daily_AV_DN = OrangeRed;
extern string IIIIIIIIIIIIIIIIIIII = ” <<<< Price Color Settings >>>>>>>>”;
extern color Price_UP = Lime;
extern color Price_DN = Red;
extern color Price_Neutral = Orange;
extern string IIIIIIIIIIIIIIIIIIIII = “<<<< MACD Settings >>>>>>>>>>>”;
extern int MACD_Fast = 8;
extern int MACD_Slow = 17;
extern int MACD_Signal = 9;
extern int MACD_PRICE_TYPE = 0;
extern string IIIIIIIIIIIIIIIIIIIIIII = “<<<< MACD Colors >>>>>>>>>>>>>>>>>>”;
extern color XUP_above_0 = Lime;
extern color XDN_above_0 = Tomato;
extern color XUP_below_0 = Green;
extern color XDN_below_0 = Red;
extern string IIIIIIIIIIIIIIIIIIIIIIII = “<<<< STR or RSI Settings >>>>>>>>>>>>>”;
extern bool Switch_STR_to_RSI = TRUE;
extern int RSI_Period1 = 5;
extern int RSI_Period2 = 9;
extern int RSI_Period3 = 18;
extern int RSI_Price = 0;
extern string IIIIIIIIIIIIIIIIIIIIIIIII = “<<<< STR RSI Settings >>>>>>>>>>>>>”;
extern int RSI_Period = 9;
extern int RSI_PRICE_TYPE = 0;
extern string IIIIIIIIIIIIIIIIIIIIIIIIII = “<<<< STR CCI Settings >>>>>>>>>>>>>>”;
extern int CCI_Period = 13;
extern int CCI_PRICE_TYPE = 0;
extern string IIIIIIIIIIIIIIIIIIIIIIIIIII = “<<<< STR STOCH Settings >>>>>>>>>>>”;
extern int STOCH_K_Period = 5;
extern int STOCH_D_Period = 3;
extern int STOCH_Slowing = 3;
extern int STOCH_MA_MODE = 1;
extern string IIIIIIIIIIIIIIIIIIIIIIIIIIII = “<<<< STR Colors >>>>>>>>>>>>>>>>”;
extern color STR_UP = Lime;
extern color STR_DN = Red;
extern color STR_NO_Signal = Orange;
extern string IIIIIIIIIIIIIIIIIIIIIIIIIIIII = “<<<< MA Settings >>>>>>>>>>>>>>”;
extern int MA_Fast = 5;
extern int MA_Slow = 9;
extern int MA_MODE = 1;
extern int MA_PRICE_TYPE = 0;
extern string IIIIIIIIIIIIIIIIIIIIIIIIIIIIII = “<<<< MA Colors >>>>>>>>>>>>>>”;
extern color MA_UP = Lime;
extern color MA_DN = Red;
int gi_576;
int gi_580;
int gi_584;
int gi_588;
double g_color_592;
int g_datetime_600 = 0;
int init() {
IndicatorShortName(“#Signal Bars Executive”);
return (0);
}
int deinit() {
ObjectDelete(“cja” + SIGBARS_Multi_No + “”);
ObjectDelete(“Signalprice” + SIGBARS_Multi_No + “”);
ObjectDelete(“tsd_FREE” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_BARS_TF1” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_BARS_TF2” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_BARS_TF3” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_BARS_TF4” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_BARS_TF5” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_BARS_TF6” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalMACD_TEXT” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalMACDM1” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalMACDM5” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalMACDM15” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalMACDM30” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalMACDH1” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalMACDH4” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTR_TEXT” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRM1” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRM5” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRM15” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRM30” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRH1” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRH4” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMA_TEXT” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAM1” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAM5” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAM15” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAM30” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAH1” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAH4” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_DETAIL_1” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_DETAIL_2” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_DETAIL_3” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_DETAIL_4” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_DETAIL_5” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_DETAIL_6” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”);
ObjectDelete(“SIG_DETAIL_8” + SIGBARS_Multi_No + “”);
ObjectDelete(“Signalcurr” + SIGBARS_Multi_No + “”);
Comment(“”);
ObjectDelete(“SSignalMACDM30tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SSignalMACDH1tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SSignalMACDH4tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SSignalMACDH4tfx” + SIGBARS_Multi_No + “”);
ObjectDelete(“SSignalMACDH4tfxx” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRM30tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRH1tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRH4tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRH4tfx” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalSTRH4tfxx” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAM30tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAH1tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAH4tf” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAH4tfx” + SIGBARS_Multi_No + “”);
ObjectDelete(“SignalEMAH4tfxx” + SIGBARS_Multi_No + “”);
ObjectDelete(“BrokerTime” + SIGBARS_Multi_No + “”);
ObjectDelete(“Signal_Bars_Trial_Info”);
ObjectDelete(“cja Copyright” + SIGBARS_Multi_No + “”);
ObjectDelete(“SigAlert” + SIGBARS_Multi_No + “”);
ObjectDelete(“SigAlert1” + SIGBARS_Multi_No + “”);
//ObjectDelete(“EXPIRED”);
//ObjectDelete(“EXPIRED1”);
//ObjectDelete(“EXPIRED2”);
//ObjectDelete(“EXPIRED3”);
//ObjectDelete(“EXPIRED4”);
//ObjectDelete(“EXPIRED5”);
//ObjectDelete(“AAEXPIRED6”);
return (0);
}
int start() {
color l_color_32;
int li_96;
int li_100;
int li_104;
int li_108;
int li_112;
int li_116;
int li_124;
int li_128;
int li_132;
int li_136;
int li_140;
int li_144;
int l_fontsize_148;
int li_152;
double ld_156;
double ld_164;
double ld_172;
double ld_180;
double ld_188;
double ld_196;
double ld_204;
double ld_212;
double ld_220;
double ld_228;
double ld_236;
double ld_244;
double ld_252;
double ld_260;
double ld_268;
double ld_276;
double ld_284;
double ld_292;
double ld_300;
double ld_308;
double ld_316;
double ld_324;
double ld_332;
double ld_340;
double ld_348;
double ld_356;
double ld_364;
double ld_372;
double ld_380;
double ld_388;
double ld_396;
double ld_404;
double ld_412;
double ld_420;
double ld_428;
double ld_436;
color l_color_520;
color l_color_524;
color l_color_528;
color l_color_532;
color l_color_536;
color l_color_540;
int li_648;
int li_652;
int li_656;
int li_660;
int li_664;
int li_668;
int li_672;
int li_676;
int li_680;
int li_684;
int li_688;
int li_692;
int l_fontsize_696;
int l_fontsize_700;
int li_704;
int li_708;
int li_712;
int li_716;
int li_720;
int li_724;
int li_728;
double l_irsi_732;
double l_irsi_740;
double l_irsi_748;
double l_irsi_756;
double l_irsi_764;
double l_irsi_772;
int li_1084;
int li_1088;
int li_1092;
int li_1096;
int li_1100;
int li_1104;
int li_1108;
int li_1112;
int li_1116;
int li_1120;
int li_1124;
int li_1128;
int l_fontsize_1132;
int l_fontsize_1136;
int li_1140;
int li_1144;
int li_1148;
int li_1152;
int li_1156;
int li_1160;
int li_1164;
string ls_unused_1336;
color l_color_1344;
color l_color_1348;
color l_color_1352;
color l_color_1356;
color l_color_1360;
color l_color_1364;
int li_1380;
int li_1384;
int li_1388;
int li_1392;
int li_1396;
int li_1400;
int li_1404;
int li_1408;
int li_1412;
int li_1416;
int li_1420;
int li_1424;
int l_fontsize_1428;
int l_fontsize_1432;
int li_1436;
int li_1440;
int li_1444;
int li_1448;
int li_1452;
int li_1456;
int li_1460;
int li_1464;
string l_dbl2str_1484;
string l_dbl2str_1492;
color l_color_1508;
color l_color_1512;
int li_1516;
int li_1520;
int l_fontsize_1524;
int li_1528;
color l_color_1556;
double ld_2360;
double ld_2368;
color l_color_2392;
color l_color_2396;
int l_fontsize_2464;
int l_fontsize_2468;
int l_fontsize_2472;
int li_2476;
int li_2480;
int li_2484;
int li_2488;
int li_2492;
int li_2496;
int li_2500;
int li_2504;
int li_2508;
int li_2512;
int li_2516;
int li_2520;
int li_2524;
int li_2528;
int li_2532;
int li_2536;
int li_2540;
int li_2544;
int li_0 = 000000;
int li_4 = 000000;
//if (AccountNumber() == 0) return (0);xxxxxxxxxxxxxxxxxxx
double ld_8 = NormalizeDouble(MarketInfo(Symbol(), MODE_BID), Digits);
double l_ima_16 = iMA(Symbol(), PERIOD_M1, 1, 0, MODE_EMA, PRICE_CLOSE, 1);
string ls_unused_24 = “”;
if (l_ima_16 > ld_8) {
ls_unused_24 = “”;
l_color_32 = DarkBlue;
g_color_592 = DarkOrange;
}
if (l_ima_16 < ld_8) {
ls_unused_24 = “”;
l_color_32 = Silver;
g_color_592 = Red;
}
if (l_ima_16 == ld_8) {
ls_unused_24 = “”;
l_color_32 = DarkOrange;
g_color_592 = Blue;
//}xxxxxxxxxxxxxxxxxxxxxxxx
//string ls_unused_36 = “”;xxxxxxxxxxxxxxxxxx
//if (li_0 != AccountNumber()) {xxxxxxxxxxxxxxxxxxx
//if (li_4 != AccountNumber()) {xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// ObjectCreate(“AAEXPIRED6”, OBJ_LABEL, 0, 0, 0);
// ObjectSetText(“AAEXPIRED6”, “g”, 410, “Webdings”, l_color_32);
// ObjectSet(“AAEXPIRED6”, OBJPROP_CORNER, 0);
// ObjectSet(“AAEXPIRED6”, OBJPROP_XDISTANCE, 234);
// ObjectSet(“AAEXPIRED6”, OBJPROP_YDISTANCE, 15);
// ObjectCreate(“EXPIRED”, OBJ_LABEL, 0, 0, 0);
// ObjectSetText(“EXPIRED”, “g”, 400, “Webdings”, g_color_592);
// ObjectSet(“EXPIRED”, OBJPROP_CORNER, 0);
// ObjectSet(“EXPIRED”, OBJPROP_XDISTANCE, 240);
// ObjectSet(“EXPIRED”, OBJPROP_YDISTANCE, 20);
// ObjectSet(“EXPIRED”, OBJPROP_BACK, FALSE);
// ObjectCreate(“EXPIRED1”, OBJ_LABEL, 0, 0, 0);
// ObjectSetText(“EXPIRED1”, “N”, 300, “Wingdings”, l_color_32);
// ObjectSet(“EXPIRED1”, OBJPROP_CORNER, 0);
// ObjectSet(“EXPIRED1”, OBJPROP_XDISTANCE, 370);
// ObjectSet(“EXPIRED1”, OBJPROP_YDISTANCE, 0);
// ObjectSet(“EXPIRED1”, OBJPROP_BACK, FALSE);
// ObjectCreate(“EXPIRED2”, OBJ_LABEL, 0, 0, 0);
// ObjectSetText(“EXPIRED2”, “WARNING ! Incorrect ACCOUNT”, 25, “Arial”, l_color_32);
// ObjectSet(“EXPIRED2”, OBJPROP_CORNER, 0);
// ObjectSet(“EXPIRED2”, OBJPROP_XDISTANCE, 260);
// ObjectSet(“EXPIRED2”, OBJPROP_YDISTANCE, 380);
// ObjectSet(“EXPIRED2”, OBJPROP_BACK, FALSE);
// ObjectCreate(“EXPIRED3”, OBJ_LABEL, 0, 0, 0);
// ObjectSetText(“EXPIRED3”, “Any attempts at file access may cause system corruption”, 14, “Arial”, l_color_32);
// ObjectSet(“EXPIRED3”, OBJPROP_CORNER, 0);
// ObjectSet(“EXPIRED3”, OBJPROP_XDISTANCE, 280);
// ObjectSet(“EXPIRED3”, OBJPROP_YDISTANCE, 430);
// ObjectSet(“EXPIRED3”, OBJPROP_BACK, FALSE);
/// ObjectCreate(“EXPIRED4”, OBJ_LABEL, 0, 0, 0);
// ObjectSetText(“EXPIRED4”, “For a License permitting further use”, 11, “Arial”, l_color_32);
// ObjectSet(“EXPIRED4”, OBJPROP_CORNER, 0);
// ObjectSet(“EXPIRED4”, OBJPROP_XDISTANCE, 385);
// ObjectSet(“EXPIRED4”, OBJPROP_YDISTANCE, 460);
// ObjectSet(“EXPIRED4”, OBJPROP_BACK, FALSE);
// ObjectCreate(“EXPIRED5”, OBJ_LABEL, 0, 0, 0);
// ObjectSetText(“EXPIRED5″, ” contact *cja* at ccjjaa@gmail.com “, 18, “Arial”, l_color_32);
// ObjectSet(“EXPIRED5”, OBJPROP_CORNER, 0);
// ObjectSet(“EXPIRED5”, OBJPROP_XDISTANCE, 315);
// ObjectSet(“EXPIRED5”, OBJPROP_YDISTANCE, 490);
// ObjectSet(“EXPIRED5”, OBJPROP_BACK, FALSE);
// PlaySound(“timeout”);
//return (0);xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}
int l_ind_counted_44 = IndicatorCounted();
string l_text_48 = “”;
string l_text_56 = “”;
string l_text_64 = “”;
string l_text_72 = “”;
string l_text_80 = “”;
string l_text_88 = “”;
if (TF1 == PERIOD_M1) l_text_48 = “M1”;
if (TF1 == PERIOD_M5) l_text_48 = “M5”;
if (TF1 == PERIOD_M15) l_text_48 = “M15”;
if (TF1 == PERIOD_M30) l_text_48 = “M30”;
if (TF1 == PERIOD_H1) l_text_48 = “H1”;
if (TF1 == PERIOD_H4) l_text_48 = “H4”;
if (TF1 == PERIOD_D1) l_text_48 = “D1”;
if (TF1 == PERIOD_W1) l_text_48 = “W1”;
if (TF1 == PERIOD_MN1) l_text_48 = “MN”;
if (TF2 == PERIOD_M1) l_text_56 = “M1”;
if (TF2 == PERIOD_M5) l_text_56 = “M5”;
if (TF2 == PERIOD_M15) l_text_56 = “M15”;
if (TF2 == PERIOD_M30) l_text_56 = “M30”;
if (TF2 == PERIOD_H1) l_text_56 = “H1”;
if (TF2 == PERIOD_H4) l_text_56 = “H4”;
if (TF2 == PERIOD_D1) l_text_56 = “D1”;
if (TF2 == PERIOD_W1) l_text_56 = “W1”;
if (TF2 == PERIOD_MN1) l_text_56 = “MN”;
if (TF3 == PERIOD_M1) l_text_64 = “M1”;
if (TF3 == PERIOD_M5) l_text_64 = “M5”;
if (TF3 == PERIOD_M15) l_text_64 = “M15”;
if (TF3 == PERIOD_M30) l_text_64 = “M30”;
if (TF3 == PERIOD_H1) l_text_64 = “H1”;
if (TF3 == PERIOD_H4) l_text_64 = “H4”;
if (TF3 == PERIOD_D1) l_text_64 = “D1”;
if (TF3 == PERIOD_W1) l_text_64 = “W1”;
if (TF3 == PERIOD_MN1) l_text_64 = “MN”;
if (TF4 == PERIOD_M1) l_text_72 = “M1”;
if (TF4 == PERIOD_M5) l_text_72 = “M5”;
if (TF4 == PERIOD_M15) l_text_72 = “M15”;
if (TF4 == PERIOD_M30) l_text_72 = “M30”;
if (TF4 == PERIOD_H1) l_text_72 = “H1”;
if (TF4 == PERIOD_H4) l_text_72 = “H4”;
if (TF4 == PERIOD_D1) l_text_72 = “D1”;
if (TF4 == PERIOD_W1) l_text_72 = “W1”;
if (TF4 == PERIOD_MN1) l_text_72 = “MN”;
if (TF5 == PERIOD_M1) l_text_80 = “M1”;
if (TF5 == PERIOD_M5) l_text_80 = “M5”;
if (TF5 == PERIOD_M15) l_text_80 = “M15”;
if (TF5 == PERIOD_M30) l_text_80 = “M30”;
if (TF5 == PERIOD_H1) l_text_80 = “H1”;
if (TF5 == PERIOD_H4) l_text_80 = “H4”;
if (TF5 == PERIOD_D1) l_text_80 = “D1”;
if (TF5 == PERIOD_W1) l_text_80 = “W1”;
if (TF5 == PERIOD_MN1) l_text_80 = “MN”;
if (TF6 == PERIOD_M1) l_text_88 = “M1”;
if (TF6 == PERIOD_M5) l_text_88 = “M5”;
if (TF6 == PERIOD_M15) l_text_88 = “M15”;
if (TF6 == PERIOD_M30) l_text_88 = “M30”;
if (TF6 == PERIOD_H1) l_text_88 = “H1”;
if (TF6 == PERIOD_H4) l_text_88 = “H4”;
if (TF6 == PERIOD_D1) l_text_88 = “D1”;
if (TF6 == PERIOD_W1) l_text_88 = “W1”;
if (TF6 == PERIOD_MN1) l_text_88 = “MN”;
if (TF1 == PERIOD_M15) li_96 = -2;
if (TF1 == PERIOD_M30) li_96 = -2;
if (TF2 == PERIOD_M15) li_100 = -2;
if (TF2 == PERIOD_M30) li_100 = -2;
if (TF3 == PERIOD_M15) li_104 = -2;
if (TF3 == PERIOD_M30) li_104 = -2;
if (TF4 == PERIOD_M15) li_108 = -2;
if (TF4 == PERIOD_M30) li_108 = -2;
if (TF5 == PERIOD_M15) li_112 = -2;
if (TF5 == PERIOD_M30) li_112 = -2;
if (TF6 == PERIOD_M15) li_116 = -2;
if (TF6 == PERIOD_M30) li_116 = -2;
if (Shift_UP_DN < 0) return (0);
if (Show_Smaller_Size == FALSE) {
l_fontsize_148 = 7;
if (No_of_TFs >= 1) li_144 = 24;
if (No_of_TFs >= 2) {
li_140 = 22;
li_144 = 9;
}
if (No_of_TFs >= 3) {
li_136 = 20;
li_140 = 13;
li_144 = 5;
}
if (No_of_TFs >= 4) {
li_132 = 0;
li_136 = 0;
li_140 = 0;
li_144 = 1;
}
if (No_of_TFs >= 5) {
li_128 = 0;
li_132 = 0;
li_136 = 0;
li_140 = 0;
li_144 = 1;
}
if (No_of_TFs >= 6) {
li_124 = 0;
li_128 = 0;
li_132 = 0;
li_136 = 0;
li_140 = 0;
li_144 = 1;
}
}
if (Show_Smaller_Size == TRUE) {
if (Show_Smaller_Size == TRUE) li_152 = 3;
l_fontsize_148 = 6;
if (No_of_TFs >= 1) li_144 = 24;
if (No_of_TFs >= 2) {
li_140 = 22;
li_144 = 9;
}
if (No_of_TFs >= 3) {
li_136 = 12;
li_140 = 8;
li_144 = 3;
}
if (No_of_TFs >= 4) {
li_132 = -6;
li_136 = -4;
li_140 = -1;
li_144 = 1;
}
if (No_of_TFs >= 5) {
li_128 = -8;
li_132 = -6;
li_136 = -4;
li_140 = -1;
li_144 = 1;
}
if (No_of_TFs >= 6) {
li_124 = -10;
li_128 = -8;
li_132 = -6;
li_136 = -4;
li_140 = -1;
li_144 = 1;
}
}
if (Show_Indicator_Bars) {
if (No_of_TFs >= 6) {
ObjectDelete(“SIG_BARS_TF1” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_BARS_TF1” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_BARS_TF1” + SIGBARS_Multi_No + “”, l_text_48, l_fontsize_148, “Arial Bold”, TimeFrame_Label_color);
ObjectSet(“SIG_BARS_TF1” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_BARS_TF1” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 114 + li_96 + li_124);
ObjectSet(“SIG_BARS_TF1” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 25 + li_152);
}
if (No_of_TFs >= 5) {
ObjectDelete(“SIG_BARS_TF2” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_BARS_TF2” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_BARS_TF2” + SIGBARS_Multi_No + “”, l_text_56, l_fontsize_148, “Arial Bold”, TimeFrame_Label_color);
ObjectSet(“SIG_BARS_TF2” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_BARS_TF2” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 94 + li_100 + li_128);
ObjectSet(“SIG_BARS_TF2” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 25 + li_152);
}
if (No_of_TFs >= 4) {
ObjectDelete(“SIG_BARS_TF3” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_BARS_TF3” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_BARS_TF3” + SIGBARS_Multi_No + “”, l_text_64, l_fontsize_148, “Arial Bold”, TimeFrame_Label_color);
ObjectSet(“SIG_BARS_TF3” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_BARS_TF3” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 74 + li_104 + li_132);
ObjectSet(“SIG_BARS_TF3” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 25 + li_152);
}
if (No_of_TFs >= 3) {
ObjectDelete(“SIG_BARS_TF4” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_BARS_TF4” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_BARS_TF4” + SIGBARS_Multi_No + “”, l_text_72, l_fontsize_148, “Arial Bold”, TimeFrame_Label_color);
ObjectSet(“SIG_BARS_TF4” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_BARS_TF4” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 54 + li_108 + li_136);
ObjectSet(“SIG_BARS_TF4” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 25 + li_152);
}
if (No_of_TFs >= 2) {
ObjectDelete(“SIG_BARS_TF5” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_BARS_TF5” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_BARS_TF5” + SIGBARS_Multi_No + “”, l_text_80, l_fontsize_148, “Arial Bold”, TimeFrame_Label_color);
ObjectSet(“SIG_BARS_TF5” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_BARS_TF5” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 34 + li_112 + li_140);
ObjectSet(“SIG_BARS_TF5” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 25 + li_152);
}
if (No_of_TFs >= 1) {
ObjectDelete(“SIG_BARS_TF6” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_BARS_TF6” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_BARS_TF6” + SIGBARS_Multi_No + “”, l_text_88, l_fontsize_148, “Arial Bold”, TimeFrame_Label_color);
ObjectSet(“SIG_BARS_TF6” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_BARS_TF6” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 14 + li_116 + li_144);
ObjectSet(“SIG_BARS_TF6” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 25 + li_152);
}
}
if (symbol == “”) symbol = Symbol();
string ls_unused_444 = “”;
string l_text_452 = “”;
string l_text_460 = “”;
string l_text_468 = “”;
string l_text_476 = “”;
string l_text_484 = “”;
string l_text_492 = “”;
string ls_unused_500 = “”;
string ls_unused_508 = “”;
double l_imacd_552 = iMACD(symbol, TF1, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
double l_imacd_560 = iMACD(symbol, TF1, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
double l_imacd_568 = iMACD(symbol, TF2, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
double l_imacd_576 = iMACD(symbol, TF2, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
double l_imacd_584 = iMACD(symbol, TF3, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
double l_imacd_592 = iMACD(symbol, TF3, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
double l_imacd_600 = iMACD(symbol, TF4, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
double l_imacd_608 = iMACD(symbol, TF4, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
double l_imacd_616 = iMACD(symbol, TF5, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
double l_imacd_624 = iMACD(symbol, TF5, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
double l_imacd_632 = iMACD(symbol, TF6, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
double l_imacd_640 = iMACD(symbol, TF6, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
if (l_imacd_552 > l_imacd_560) {
l_text_468 = “-“;
l_color_528 = XUP_below_0;
ld_156 = 1;
ld_300 = 0;
}
if (l_imacd_552 <= l_imacd_560) {
l_text_468 = “-“;
l_color_528 = XDN_above_0;
ld_156 = 0;
ld_300 = 1;
}
if (l_imacd_552 > l_imacd_560 && l_imacd_552 > 0.0) {
l_text_468 = “-“;
l_color_528 = XUP_above_0;
}
if (l_imacd_552 <= l_imacd_560 && l_imacd_552 < 0.0) {
l_text_468 = “-“;
l_color_528 = XDN_below_0;
}
if (l_imacd_568 > l_imacd_576) {
l_text_476 = “-“;
l_color_532 = XUP_below_0;
ld_164 = 1;
ld_308 = 0;
}
if (l_imacd_568 <= l_imacd_576) {
l_text_476 = “-“;
l_color_532 = XDN_above_0;
ld_164 = 0;
ld_308 = 1;
}
if (l_imacd_568 > l_imacd_576 && l_imacd_568 > 0.0) {
l_text_476 = “-“;
l_color_532 = XUP_above_0;
}
if (l_imacd_568 <= l_imacd_576 && l_imacd_568 < 0.0) {
l_text_476 = “-“;
l_color_532 = XDN_below_0;
}
if (l_imacd_584 > l_imacd_592) {
l_text_484 = “-“;
l_color_536 = XUP_below_0;
ld_172 = 1;
ld_316 = 0;
}
if (l_imacd_584 <= l_imacd_592) {
l_text_484 = “-“;
l_color_536 = XDN_above_0;
ld_172 = 0;
ld_316 = 1;
}
if (l_imacd_584 > l_imacd_592 && l_imacd_584 > 0.0) {
l_text_484 = “-“;
l_color_536 = XUP_above_0;
}
if (l_imacd_584 <= l_imacd_592 && l_imacd_584 < 0.0) {
l_text_484 = “-“;
l_color_536 = XDN_below_0;
}
if (l_imacd_600 > l_imacd_608) {
l_text_492 = “-“;
l_color_540 = XUP_below_0;
ld_180 = 1;
ld_324 = 0;
}
if (l_imacd_600 <= l_imacd_608) {
l_text_492 = “-“;
l_color_540 = XDN_above_0;
ld_180 = 0;
ld_324 = 1;
}
if (l_imacd_600 > l_imacd_608 && l_imacd_600 > 0.0) {
l_text_492 = “-“;
l_color_540 = XUP_above_0;
}
if (l_imacd_600 <= l_imacd_608 && l_imacd_600 < 0.0) {
l_text_492 = “-“;
l_color_540 = XDN_below_0;
}
if (l_imacd_616 > l_imacd_624) {
l_text_452 = “-“;
l_color_520 = XUP_below_0;
ld_188 = 1;
ld_332 = 0;
}
if (l_imacd_616 <= l_imacd_624) {
l_text_452 = “-“;
l_color_520 = XDN_above_0;
ld_188 = 0;
ld_332 = 1;
}
if (l_imacd_616 > l_imacd_624 && l_imacd_616 > 0.0) {
l_text_452 = “-“;
l_color_520 = XUP_above_0;
}
if (l_imacd_616 <= l_imacd_624 && l_imacd_616 < 0.0) {
l_text_452 = “-“;
l_color_520 = XDN_below_0;
}
if (l_imacd_632 > l_imacd_640) {
l_text_460 = “-“;
l_color_524 = XUP_below_0;
ld_196 = 1;
ld_340 = 0;
}
if (l_imacd_632 <= l_imacd_640) {
l_text_460 = “-“;
l_color_524 = XDN_above_0;
ld_196 = 0;
ld_340 = 1;
}
if (l_imacd_632 > l_imacd_640 && l_imacd_632 > 0.0) {
l_text_460 = “-“;
l_color_524 = XUP_above_0;
}
if (l_imacd_632 <= l_imacd_640 && l_imacd_632 < 0.0) {
l_text_460 = “-“;
l_color_524 = XDN_below_0;
}
if (Show_Smaller_Size == FALSE) {
li_648 = 135;
li_704 = 35;
l_fontsize_700 = 6;
li_652 = 110;
li_708 = 2;
l_fontsize_696 = 45;
li_656 = 90;
li_712 = 2;
l_fontsize_696 = 45;
li_660 = 70;
li_716 = 2;
l_fontsize_696 = 45;
li_664 = 50;
li_720 = 2;
l_fontsize_696 = 45;
li_668 = 30;
li_724 = 2;
l_fontsize_696 = 45;
li_672 = 10;
li_728 = 2;
l_fontsize_696 = 45;
if (No_of_TFs >= 1) {
li_672 = 10;
li_648 = 82;
li_684 = 26;
li_688 = 42;
li_692 = 58;
}
if (No_of_TFs >= 2) {
li_668 = 60;
li_672 = 10;
li_648 = 85;
li_680 = 45;
li_684 = 25;
}
if (No_of_TFs >= 3) {
li_664 = 66;
li_668 = 38;
li_672 = 10;
li_648 = 97;
li_676 = 74;
li_680 = 46;
li_684 = 18;
}
if (No_of_TFs >= 4) {
li_664 = 50;
li_668 = 30;
li_672 = 10;
li_648 = 95;
li_676 = 50;
li_680 = 30;
li_684 = 10;
}
if (No_of_TFs >= 5) li_648 = 115;
if (No_of_TFs >= 6) li_648 = 135;
}
if (Show_Smaller_Size == TRUE) {
li_648 = 120;
li_704 = 35;
l_fontsize_700 = 6;
li_652 = 100;
li_708 = 6;
l_fontsize_696 = 40;
li_656 = 82;
li_712 = 6;
l_fontsize_696 = 40;
li_660 = 64;
li_716 = 6;
l_fontsize_696 = 40;
li_664 = 46;
li_720 = 6;
l_fontsize_696 = 40;
li_668 = 28;
li_724 = 6;
l_fontsize_696 = 40;
li_672 = 10;
li_728 = 6;
l_fontsize_696 = 40;
if (No_of_TFs >= 1) {
li_672 = 10;
li_648 = 82;
li_684 = 25;
li_688 = 40;
li_692 = 55;
}
if (No_of_TFs >= 2) {
li_668 = 58;
li_672 = 10;
li_648 = 85;
li_680 = 43;
li_684 = 25;
}
if (No_of_TFs >= 3) {
li_664 = 58;
li_668 = 33;
li_672 = 10;
li_648 = 85;
li_676 = 63;
li_680 = 40;
li_684 = 15;
}
if (No_of_TFs >= 4) {
li_664 = 46;
li_668 = 28;
li_672 = 10;
li_648 = 85;
li_676 = 46;
li_680 = 28;
li_684 = 10;
}
if (No_of_TFs >= 5) li_648 = 103;
if (No_of_TFs >= 6) li_648 = 120;
}
if (Show_Indicator_Bars) {
if (No_of_TFs >= 3) {
ObjectDelete(“SSignalMACDM30tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SSignalMACDM30tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SSignalMACDM30tf” + SIGBARS_Multi_No + “”, l_text_492, l_fontsize_696, “Tahoma Narrow”, l_color_540);
ObjectSet(“SSignalMACDM30tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SSignalMACDM30tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_676 + Adjust_Side_to_side);
ObjectSet(“SSignalMACDM30tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_720 + Shift_UP_DN);
}
if (No_of_TFs >= 2) {
ObjectDelete(“SSignalMACDH1tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SSignalMACDH1tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SSignalMACDH1tf” + SIGBARS_Multi_No + “”, l_text_452, l_fontsize_696, “Tahoma Narrow”, l_color_520);
ObjectSet(“SSignalMACDH1tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SSignalMACDH1tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_680 + Adjust_Side_to_side);
ObjectSet(“SSignalMACDH1tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_724 + Shift_UP_DN);
}
ObjectDelete(“SSignalMACDH4tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SSignalMACDH4tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SSignalMACDH4tf” + SIGBARS_Multi_No + “”, l_text_460, l_fontsize_696, “Tahoma Narrow”, l_color_524);
ObjectSet(“SSignalMACDH4tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SSignalMACDH4tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_684 + Adjust_Side_to_side);
ObjectSet(“SSignalMACDH4tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_728 + Shift_UP_DN);
if (No_of_TFs < 2) {
ObjectDelete(“SSignalMACDH4tfx” + SIGBARS_Multi_No + “”);
ObjectCreate(“SSignalMACDH4tfx” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SSignalMACDH4tfx” + SIGBARS_Multi_No + “”, l_text_460, l_fontsize_696, “Tahoma Narrow”, l_color_524);
ObjectSet(“SSignalMACDH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SSignalMACDH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_688 + Adjust_Side_to_side);
ObjectSet(“SSignalMACDH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_728 + Shift_UP_DN);
ObjectDelete(“SSignalMACDH4tfxx” + SIGBARS_Multi_No + “”);
ObjectCreate(“SSignalMACDH4tfxx” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SSignalMACDH4tfxx” + SIGBARS_Multi_No + “”, l_text_460, l_fontsize_696, “Tahoma Narrow”, l_color_524);
ObjectSet(“SSignalMACDH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SSignalMACDH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_692 + Adjust_Side_to_side);
ObjectSet(“SSignalMACDH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_728 + Shift_UP_DN);
}
ObjectDelete(“SignalMACD_TEXT” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalMACD_TEXT” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalMACD_TEXT” + SIGBARS_Multi_No + “”, “MACD”, l_fontsize_700, “Tahoma Narrow”, BarLabel_color);
ObjectSet(“SignalMACD_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalMACD_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_648 + Adjust_Side_to_side);
ObjectSet(“SignalMACD_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_704 + Shift_UP_DN);
if (No_of_TFs >= 6) {
ObjectDelete(“SignalMACDM1” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalMACDM1” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalMACDM1” + SIGBARS_Multi_No + “”, l_text_468, l_fontsize_696, “Tahoma Narrow”, l_color_528);
ObjectSet(“SignalMACDM1” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalMACDM1” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_652 + Adjust_Side_to_side);
ObjectSet(“SignalMACDM1” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_708 + Shift_UP_DN);
}
if (No_of_TFs >= 5) {
ObjectDelete(“SignalMACDM5” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalMACDM5” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalMACDM5” + SIGBARS_Multi_No + “”, l_text_476, l_fontsize_696, “Tahoma Narrow”, l_color_532);
ObjectSet(“SignalMACDM5” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalMACDM5” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_656 + Adjust_Side_to_side);
ObjectSet(“SignalMACDM5” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_712 + Shift_UP_DN);
}
if (No_of_TFs >= 4) {
ObjectDelete(“SignalMACDM15” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalMACDM15” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalMACDM15” + SIGBARS_Multi_No + “”, l_text_484, l_fontsize_696, “Tahoma Narrow”, l_color_536);
ObjectSet(“SignalMACDM15” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalMACDM15” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_660 + Adjust_Side_to_side);
ObjectSet(“SignalMACDM15” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_716 + Shift_UP_DN);
}
if (No_of_TFs >= 3) {
ObjectDelete(“SignalMACDM30” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalMACDM30” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalMACDM30” + SIGBARS_Multi_No + “”, l_text_492, l_fontsize_696, “Tahoma Narrow”, l_color_540);
ObjectSet(“SignalMACDM30” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalMACDM30” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_664 + Adjust_Side_to_side);
ObjectSet(“SignalMACDM30” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_720 + Shift_UP_DN);
}
if (No_of_TFs >= 2) {
ObjectDelete(“SignalMACDH1” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalMACDH1” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalMACDH1” + SIGBARS_Multi_No + “”, l_text_452, l_fontsize_696, “Tahoma Narrow”, l_color_520);
ObjectSet(“SignalMACDH1” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalMACDH1” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_668 + Adjust_Side_to_side);
ObjectSet(“SignalMACDH1” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_724 + Shift_UP_DN);
}
if (No_of_TFs >= 1) {
ObjectDelete(“SignalMACDH4” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalMACDH4” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalMACDH4” + SIGBARS_Multi_No + “”, l_text_460, l_fontsize_696, “Tahoma Narrow”, l_color_524);
ObjectSet(“SignalMACDH4” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalMACDH4” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_672 + Adjust_Side_to_side);
ObjectSet(“SignalMACDH4” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_728 + Shift_UP_DN);
}
}
if (Switch_STR_to_RSI == FALSE) {
l_irsi_732 = iRSI(symbol, TF6, RSI_Period, RSI_PRICE_TYPE, 0);
l_irsi_740 = iRSI(symbol, TF5, RSI_Period, RSI_PRICE_TYPE, 0);
l_irsi_748 = iRSI(symbol, TF4, RSI_Period, RSI_PRICE_TYPE, 0);
l_irsi_756 = iRSI(symbol, TF3, RSI_Period, RSI_PRICE_TYPE, 0);
l_irsi_764 = iRSI(symbol, TF2, RSI_Period, RSI_PRICE_TYPE, 0);
l_irsi_772 = iRSI(symbol, TF1, RSI_Period, RSI_PRICE_TYPE, 0);
}
double l_istochastic_780 = iStochastic(symbol, TF6, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
double l_istochastic_788 = iStochastic(symbol, TF5, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
double l_istochastic_796 = iStochastic(symbol, TF4, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
double l_istochastic_804 = iStochastic(symbol, TF3, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
double l_istochastic_812 = iStochastic(symbol, TF2, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
double l_istochastic_820 = iStochastic(symbol, TF1, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
double l_icci_828 = iCCI(symbol, TF6, CCI_Period, CCI_PRICE_TYPE, 0);
double l_icci_836 = iCCI(symbol, TF5, CCI_Period, CCI_PRICE_TYPE, 0);
double l_icci_844 = iCCI(symbol, TF4, CCI_Period, CCI_PRICE_TYPE, 0);
double l_icci_852 = iCCI(symbol, TF3, CCI_Period, CCI_PRICE_TYPE, 0);
double l_icci_860 = iCCI(symbol, TF2, CCI_Period, CCI_PRICE_TYPE, 0);
double l_icci_868 = iCCI(symbol, TF1, CCI_Period, CCI_PRICE_TYPE, 0);
l_irsi_732 = iRSI(symbol, TF6, RSI_Period1, RSI_Price, 0);
l_irsi_740 = iRSI(symbol, TF5, RSI_Period1, RSI_Price, 0);
l_irsi_748 = iRSI(symbol, TF4, RSI_Period1, RSI_Price, 0);
l_irsi_756 = iRSI(symbol, TF3, RSI_Period1, RSI_Price, 0);
l_irsi_764 = iRSI(symbol, TF2, RSI_Period1, RSI_Price, 0);
l_irsi_772 = iRSI(symbol, TF1, RSI_Period1, RSI_Price, 0);
double l_irsi_876 = iRSI(symbol, TF6, RSI_Period2, RSI_Price, 0);
double l_irsi_884 = iRSI(symbol, TF5, RSI_Period2, RSI_Price, 0);
double l_irsi_892 = iRSI(symbol, TF4, RSI_Period2, RSI_Price, 0);
double l_irsi_900 = iRSI(symbol, TF3, RSI_Period2, RSI_Price, 0);
double l_irsi_908 = iRSI(symbol, TF2, RSI_Period2, RSI_Price, 0);
double l_irsi_916 = iRSI(symbol, TF1, RSI_Period2, RSI_Price, 0);
double l_irsi_924 = iRSI(symbol, TF6, RSI_Period3, RSI_Price, 0);
double l_irsi_932 = iRSI(symbol, TF5, RSI_Period3, RSI_Price, 0);
double l_irsi_940 = iRSI(symbol, TF4, RSI_Period3, RSI_Price, 0);
double l_irsi_948 = iRSI(symbol, TF3, RSI_Period3, RSI_Price, 0);
double l_irsi_956 = iRSI(symbol, TF2, RSI_Period3, RSI_Price, 0);
double l_irsi_964 = iRSI(symbol, TF1, RSI_Period3, RSI_Price, 0);
string l_text_972 = “”;
string l_text_980 = “”;
string l_text_988 = “”;
string l_text_996 = “”;
string l_text_1004 = “”;
string l_text_1012 = “”;
string ls_unused_1020 = “”;
string ls_unused_1028 = “”;
string ls_unused_1036 = “”;
l_text_1004 = “-“;
color l_color_1068 = STR_NO_Signal;
l_text_972 = “-“;
color l_color_1064 = STR_NO_Signal;
l_text_1012 = “-“;
color l_color_1060 = STR_NO_Signal;
l_text_980 = “-“;
color l_color_1056 = STR_NO_Signal;
l_text_988 = “-“;
color l_color_1052 = STR_NO_Signal;
l_text_996 = “-“;
color l_color_1048 = STR_NO_Signal;
if (Switch_STR_to_RSI == FALSE) {
if (l_irsi_732 > 50.0 && l_istochastic_780 > 40.0 && l_icci_828 > 0.0) {
l_text_1004 = “-“;
l_color_1068 = STR_UP;
ld_204 = 1;
ld_348 = 0;
}
if (l_irsi_740 > 50.0 && l_istochastic_788 > 40.0 && l_icci_836 > 0.0) {
l_text_972 = “-“;
l_color_1064 = STR_UP;
ld_212 = 1;
ld_356 = 0;
}
if (l_irsi_748 > 50.0 && l_istochastic_796 > 40.0 && l_icci_844 > 0.0) {
l_text_1012 = “-“;
l_color_1060 = STR_UP;
ld_220 = 1;
ld_364 = 0;
}
if (l_irsi_756 > 50.0 && l_istochastic_804 > 40.0 && l_icci_852 > 0.0) {
l_text_980 = “-“;
l_color_1056 = STR_UP;
ld_228 = 1;
ld_372 = 0;
}
if (l_irsi_764 > 50.0 && l_istochastic_812 > 40.0 && l_icci_860 > 0.0) {
l_text_988 = “-“;
l_color_1052 = STR_UP;
ld_236 = 1;
ld_380 = 0;
}
if (l_irsi_772 > 50.0 && l_istochastic_820 > 40.0 && l_icci_868 > 0.0) {
l_text_996 = “-“;
l_color_1048 = STR_UP;
ld_244 = 1;
ld_388 = 0;
}
if (l_irsi_732 < 50.0 && l_istochastic_780 < 60.0 && l_icci_828 < 0.0) {
l_text_1004 = “-“;
l_color_1068 = STR_DN;
ld_204 = 0;
ld_348 = 1;
}
if (l_irsi_740 < 50.0 && l_istochastic_788 < 60.0 && l_icci_836 < 0.0) {
l_text_972 = “-“;
l_color_1064 = STR_DN;
ld_212 = 0;
ld_356 = 1;
}
if (l_irsi_748 < 50.0 && l_istochastic_796 < 60.0 && l_icci_844 < 0.0) {
l_text_1012 = “-“;
l_color_1060 = STR_DN;
ld_220 = 0;
ld_364 = 1;
}
if (l_irsi_756 < 50.0 && l_istochastic_804 < 60.0 && l_icci_852 < 0.0) {
l_text_980 = “-“;
l_color_1056 = STR_DN;
ld_228 = 0;
ld_372 = 1;
}
if (l_irsi_764 < 50.0 && l_istochastic_812 < 60.0 && l_icci_860 < 0.0) {
l_text_988 = “-“;
l_color_1052 = STR_DN;
ld_236 = 0;
ld_380 = 1;
}
if (l_irsi_772 < 50.0 && l_istochastic_820 < 60.0 && l_icci_868 < 0.0) {
l_text_996 = “-“;
l_color_1048 = STR_DN;
ld_244 = 0;
ld_388 = 1;
}
}
if (Switch_STR_to_RSI == TRUE) {
if (l_irsi_732 > 50.0 && l_irsi_876 > 50.0 && l_irsi_924 > 50.0) {
l_text_1004 = “-“;
l_color_1068 = STR_UP;
ld_204 = 1;
ld_348 = 0;
}
if (l_irsi_740 > 50.0 && l_irsi_884 > 50.0 && l_irsi_932 > 50.0) {
l_text_972 = “-“;
l_color_1064 = STR_UP;
ld_212 = 1;
ld_356 = 0;
}
if (l_irsi_748 > 50.0 && l_irsi_892 > 50.0 && l_irsi_940 > 50.0) {
l_text_1012 = “-“;
l_color_1060 = STR_UP;
ld_220 = 1;
ld_364 = 0;
}
if (l_irsi_756 > 50.0 && l_irsi_900 > 50.0 && l_irsi_948 > 50.0) {
l_text_980 = “-“;
l_color_1056 = STR_UP;
ld_228 = 1;
ld_372 = 0;
}
if (l_irsi_764 > 50.0 && l_irsi_908 > 50.0 && l_irsi_956 > 50.0) {
l_text_988 = “-“;
l_color_1052 = STR_UP;
ld_236 = 1;
ld_380 = 0;
}
if (l_irsi_772 > 50.0 && l_irsi_916 > 50.0 && l_irsi_964 > 50.0) {
l_text_996 = “-“;
l_color_1048 = STR_UP;
ld_244 = 1;
ld_388 = 0;
}
if (l_irsi_732 <= 50.0 && l_irsi_876 < 50.0 && l_irsi_924 < 50.0) {
l_text_1004 = “-“;
l_color_1068 = STR_DN;
ld_204 = 0;
ld_348 = 1;
}
if (l_irsi_740 <= 50.0 && l_irsi_884 < 50.0 && l_irsi_932 < 50.0) {
l_text_972 = “-“;
l_color_1064 = STR_DN;
ld_212 = 0;
ld_356 = 1;
}
if (l_irsi_748 <= 50.0 && l_irsi_892 < 50.0 && l_irsi_940 < 50.0) {
l_text_1012 = “-“;
l_color_1060 = STR_DN;
ld_220 = 0;
ld_364 = 1;
}
if (l_irsi_756 <= 50.0 && l_irsi_900 < 50.0 && l_irsi_948 < 50.0) {
l_text_980 = “-“;
l_color_1056 = STR_DN;
ld_228 = 0;
ld_372 = 1;
}
if (l_irsi_764 <= 50.0 && l_irsi_908 < 50.0 && l_irsi_956 < 50.0) {
l_text_988 = “-“;
l_color_1052 = STR_DN;
ld_236 = 0;
ld_380 = 1;
}
if (l_irsi_772 <= 50.0 && l_irsi_916 < 50.0 && l_irsi_964 < 50.0) {
l_text_996 = “-“;
l_color_1048 = STR_DN;
ld_244 = 0;
ld_388 = 1;
}
}
if (Show_Smaller_Size == FALSE) {
li_1084 = 135;
li_1140 = 43;
l_fontsize_1136 = 6;
li_1088 = 110;
li_1144 = 10;
l_fontsize_1132 = 45;
li_1092 = 90;
li_1148 = 10;
l_fontsize_1132 = 45;
li_1096 = 70;
li_1152 = 10;
l_fontsize_1132 = 45;
li_1100 = 50;
li_1156 = 10;
l_fontsize_1132 = 45;
li_1104 = 30;
li_1160 = 10;
l_fontsize_1132 = 45;
li_1108 = 10;
li_1164 = 10;
l_fontsize_1132 = 45;
if (No_of_TFs >= 1) {
li_1108 = 10;
li_1084 = 82;
li_1120 = 26;
li_1124 = 42;
li_1128 = 58;
}
if (No_of_TFs >= 2) {
li_1104 = 60;
li_1108 = 10;
li_1084 = 85;
li_1116 = 45;
li_1120 = 25;
}
if (No_of_TFs >= 3) {
li_1100 = 66;
li_1104 = 38;
li_1108 = 10;
li_1084 = 97;
li_1112 = 74;
li_1116 = 46;
li_1120 = 18;
}
if (No_of_TFs >= 4) {
li_1100 = 50;
li_1104 = 30;
li_1108 = 10;
li_1084 = 95;
li_1112 = 50;
li_1116 = 30;
li_1120 = 10;
}
if (No_of_TFs >= 5) li_1084 = 115;
if (No_of_TFs >= 6) li_1084 = 135;
}
if (Show_Smaller_Size == TRUE) {
li_1084 = 120;
li_1140 = 43;
l_fontsize_1136 = 6;
li_1088 = 100;
li_1144 = 13;
l_fontsize_1132 = 40;
li_1092 = 82;
li_1148 = 13;
l_fontsize_1132 = 40;
li_1096 = 64;
li_1152 = 13;
l_fontsize_1132 = 40;
li_1100 = 46;
li_1156 = 13;
l_fontsize_1132 = 40;
li_1104 = 28;
li_1160 = 13;
l_fontsize_1132 = 40;
li_1108 = 10;
li_1164 = 13;
l_fontsize_1132 = 40;
if (No_of_TFs >= 1) {
li_1108 = 10;
li_1084 = 82;
li_1120 = 25;
li_1124 = 40;
li_1128 = 55;
}
if (No_of_TFs >= 2) {
li_1104 = 58;
li_1108 = 10;
li_1084 = 85;
li_1116 = 43;
li_1120 = 25;
}
if (No_of_TFs >= 3) {
li_1100 = 58;
li_1104 = 33;
li_1108 = 10;
li_1084 = 85;
li_1112 = 63;
li_1116 = 40;
li_1120 = 15;
}
if (No_of_TFs >= 4) {
li_1100 = 46;
li_1104 = 28;
li_1108 = 10;
li_1084 = 85;
li_1112 = 46;
li_1116 = 28;
li_1120 = 10;
}
if (No_of_TFs >= 5) li_1084 = 103;
if (No_of_TFs >= 6) li_1084 = 120;
}
if (Show_Indicator_Bars) {
if (No_of_TFs >= 3) {
ObjectDelete(“SignalSTRM30tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRM30tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRM30tf” + SIGBARS_Multi_No + “”, l_text_1012, l_fontsize_1132, “Tahoma Narrow”, l_color_1060);
ObjectSet(“SignalSTRM30tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRM30tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1112 + Adjust_Side_to_side);
ObjectSet(“SignalSTRM30tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1156 + Shift_UP_DN);
}
if (No_of_TFs >= 2) {
ObjectDelete(“SignalSTRH1tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRH1tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRH1tf” + SIGBARS_Multi_No + “”, l_text_972, l_fontsize_1132, “Tahoma Narrow”, l_color_1064);
ObjectSet(“SignalSTRH1tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRH1tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1116 + Adjust_Side_to_side);
ObjectSet(“SignalSTRH1tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1160 + Shift_UP_DN);
}
ObjectDelete(“SignalSTRH4tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRH4tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRH4tf” + SIGBARS_Multi_No + “”, l_text_1004, l_fontsize_1132, “Tahoma Narrow”, l_color_1068);
ObjectSet(“SignalSTRH4tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRH4tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1120 + Adjust_Side_to_side);
ObjectSet(“SignalSTRH4tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1164 + Shift_UP_DN);
if (No_of_TFs < 2) {
ObjectDelete(“SignalSTRH4tfx” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRH4tfx” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRH4tfx” + SIGBARS_Multi_No + “”, l_text_1004, l_fontsize_1132, “Tahoma Narrow”, l_color_1068);
ObjectSet(“SignalSTRH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1124 + Adjust_Side_to_side);
ObjectSet(“SignalSTRH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1164 + Shift_UP_DN);
ObjectDelete(“SignalSTRH4tfxx” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRH4tfxx” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRH4tfxx” + SIGBARS_Multi_No + “”, l_text_1004, l_fontsize_1132, “Tahoma Narrow”, l_color_1068);
ObjectSet(“SignalSTRH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1128 + Adjust_Side_to_side);
ObjectSet(“SignalSTRH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1164 + Shift_UP_DN);
}
ObjectDelete(“SignalSTR_TEXT” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTR_TEXT” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
if (Switch_STR_to_RSI == FALSE) ObjectSetText(“SignalSTR_TEXT” + SIGBARS_Multi_No + “”, “STR”, l_fontsize_1136, “Tahoma Narrow”, BarLabel_color);
else ObjectSetText(“SignalSTR_TEXT” + SIGBARS_Multi_No + “”, “RSI”, l_fontsize_1136, “Tahoma Narrow”, BarLabel_color);
ObjectSet(“SignalSTR_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTR_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1084 + Adjust_Side_to_side);
ObjectSet(“SignalSTR_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1140 + Shift_UP_DN);
if (No_of_TFs >= 6) {
ObjectDelete(“SignalSTRM1” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRM1” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRM1” + SIGBARS_Multi_No + “”, l_text_996, l_fontsize_1132, “Tahoma Narrow”, l_color_1048);
ObjectSet(“SignalSTRM1” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRM1” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1088 + Adjust_Side_to_side);
ObjectSet(“SignalSTRM1” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1144 + Shift_UP_DN);
}
if (No_of_TFs >= 5) {
ObjectDelete(“SignalSTRM5” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRM5” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRM5” + SIGBARS_Multi_No + “”, l_text_988, l_fontsize_1132, “Tahoma Narrow”, l_color_1052);
ObjectSet(“SignalSTRM5” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRM5” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1092 + Adjust_Side_to_side);
ObjectSet(“SignalSTRM5” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1148 + Shift_UP_DN);
}
if (No_of_TFs >= 4) {
ObjectDelete(“SignalSTRM15” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRM15” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRM15” + SIGBARS_Multi_No + “”, l_text_980, l_fontsize_1132, “Tahoma Narrow”, l_color_1056);
ObjectSet(“SignalSTRM15” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRM15” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1096 + Adjust_Side_to_side);
ObjectSet(“SignalSTRM15” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1152 + Shift_UP_DN);
}
if (No_of_TFs >= 3) {
ObjectDelete(“SignalSTRM30” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRM30” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRM30” + SIGBARS_Multi_No + “”, l_text_1012, l_fontsize_1132, “Tahoma Narrow”, l_color_1060);
ObjectSet(“SignalSTRM30” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRM30” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1100 + Adjust_Side_to_side);
ObjectSet(“SignalSTRM30” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1156 + Shift_UP_DN);
}
if (No_of_TFs >= 2) {
ObjectDelete(“SignalSTRH1” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRH1” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRH1” + SIGBARS_Multi_No + “”, l_text_972, l_fontsize_1132, “Tahoma Narrow”, l_color_1064);
ObjectSet(“SignalSTRH1” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRH1” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1104 + Adjust_Side_to_side);
ObjectSet(“SignalSTRH1” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1160 + Shift_UP_DN);
}
if (No_of_TFs >= 1) {
ObjectDelete(“SignalSTRH4” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalSTRH4” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalSTRH4” + SIGBARS_Multi_No + “”, l_text_1004, l_fontsize_1132, “Tahoma Narrow”, l_color_1068);
ObjectSet(“SignalSTRH4” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalSTRH4” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1108 + Adjust_Side_to_side);
ObjectSet(“SignalSTRH4” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1164 + Shift_UP_DN);
}
}
double l_ima_1168 = iMA(symbol, TF1, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1176 = iMA(symbol, TF1, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1184 = iMA(symbol, TF2, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1192 = iMA(symbol, TF2, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1200 = iMA(symbol, TF3, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1208 = iMA(symbol, TF3, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1216 = iMA(symbol, TF4, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1224 = iMA(symbol, TF4, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1232 = iMA(symbol, TF5, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1240 = iMA(symbol, TF5, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1248 = iMA(symbol, TF6, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
double l_ima_1256 = iMA(symbol, TF6, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
string l_text_1264 = “”;
string l_text_1272 = “”;
string l_text_1280 = “”;
string l_text_1288 = “”;
string l_text_1296 = “”;
string l_text_1304 = “”;
string ls_unused_1312 = “”;
string ls_unused_1320 = “”;
string ls_unused_1328 = “”;
if (l_ima_1168 > l_ima_1176) {
l_text_1264 = “-“;
l_color_1344 = MA_UP;
ld_252 = 1;
ld_396 = 0;
}
if (l_ima_1168 <= l_ima_1176) {
l_text_1264 = “-“;
l_color_1344 = MA_DN;
ld_252 = 0;
ld_396 = 1;
}
if (l_ima_1184 > l_ima_1192) {
l_text_1272 = “-“;
l_color_1348 = MA_UP;
ld_260 = 1;
ld_404 = 0;
}
if (l_ima_1184 <= l_ima_1192) {
l_text_1272 = “-“;
l_color_1348 = MA_DN;
ld_260 = 0;
ld_404 = 1;
}
if (l_ima_1200 > l_ima_1208) {
l_text_1280 = “-“;
l_color_1352 = MA_UP;
ld_268 = 1;
ld_412 = 0;
}
if (l_ima_1200 <= l_ima_1208) {
l_text_1280 = “-“;
l_color_1352 = MA_DN;
ld_268 = 0;
ld_412 = 1;
}
if (l_ima_1216 > l_ima_1224) {
l_text_1288 = “-“;
l_color_1356 = MA_UP;
ld_276 = 1;
ld_420 = 0;
}
if (l_ima_1216 <= l_ima_1224) {
l_text_1288 = “-“;
l_color_1356 = MA_DN;
ld_276 = 0;
ld_420 = 1;
}
if (l_ima_1232 > l_ima_1240) {
l_text_1296 = “-“;
l_color_1360 = MA_UP;
ld_284 = 1;
ld_428 = 0;
}
if (l_ima_1232 <= l_ima_1240) {
l_text_1296 = “-“;
l_color_1360 = MA_DN;
ld_284 = 0;
ld_428 = 1;
}
if (l_ima_1248 > l_ima_1256) {
l_text_1304 = “-“;
l_color_1364 = MA_UP;
ld_292 = 1;
ld_436 = 0;
}
if (l_ima_1248 <= l_ima_1256) {
l_text_1304 = “-“;
l_color_1364 = MA_DN;
ld_292 = 0;
ld_436 = 1;
}
if (Show_Smaller_Size == FALSE) {
li_1380 = 135;
li_1436 = 51;
l_fontsize_1432 = 6;
li_1384 = 110;
li_1440 = 18;
l_fontsize_1428 = 45;
li_1388 = 90;
li_1444 = 18;
l_fontsize_1428 = 45;
li_1392 = 70;
li_1448 = 18;
l_fontsize_1428 = 45;
li_1396 = 50;
li_1452 = 18;
l_fontsize_1428 = 45;
li_1400 = 30;
li_1456 = 18;
l_fontsize_1428 = 45;
li_1404 = 10;
li_1460 = 18;
l_fontsize_1428 = 45;
if (No_of_TFs >= 1) {
li_1404 = 10;
li_1380 = 82;
li_1416 = 26;
li_1420 = 42;
li_1424 = 58;
}
if (No_of_TFs >= 2) {
li_1400 = 60;
li_1404 = 10;
li_1380 = 85;
li_1412 = 45;
li_1416 = 25;
}
if (No_of_TFs >= 3) {
li_1396 = 66;
li_1400 = 38;
li_1404 = 10;
li_1380 = 97;
li_1408 = 74;
li_1412 = 46;
li_1416 = 18;
}
if (No_of_TFs >= 4) {
li_1396 = 50;
li_1400 = 30;
li_1404 = 10;
li_1380 = 95;
li_1408 = 50;
li_1412 = 30;
li_1416 = 10;
}
if (No_of_TFs >= 5) li_1380 = 115;
if (No_of_TFs >= 6) li_1380 = 135;
}
if (Show_Smaller_Size == TRUE) {
li_1380 = 120;
li_1436 = 51;
l_fontsize_1432 = 6;
li_1384 = 100;
li_1440 = 20;
l_fontsize_1428 = 40;
li_1388 = 82;
li_1444 = 20;
l_fontsize_1428 = 40;
li_1392 = 64;
li_1448 = 20;
l_fontsize_1428 = 40;
li_1396 = 46;
li_1452 = 20;
l_fontsize_1428 = 40;
li_1400 = 28;
li_1456 = 20;
l_fontsize_1428 = 40;
li_1404 = 10;
li_1460 = 20;
l_fontsize_1428 = 40;
if (No_of_TFs >= 1) {
li_1404 = 10;
li_1380 = 82;
li_1416 = 25;
li_1420 = 40;
li_1424 = 55;
}
if (No_of_TFs >= 2) {
li_1400 = 58;
li_1404 = 10;
li_1380 = 85;
li_1412 = 43;
li_1416 = 25;
}
if (No_of_TFs >= 3) {
li_1396 = 58;
li_1400 = 33;
li_1404 = 10;
li_1380 = 85;
li_1408 = 63;
li_1412 = 40;
li_1416 = 15;
}
if (No_of_TFs >= 4) {
li_1396 = 46;
li_1400 = 28;
li_1404 = 10;
li_1380 = 85;
li_1408 = 46;
li_1412 = 28;
li_1416 = 10;
}
if (No_of_TFs >= 5) li_1380 = 103;
if (No_of_TFs >= 6) li_1380 = 120;
}
if (Show_Indicator_Bars) {
if (No_of_TFs >= 3) {
ObjectDelete(“SignalEMAM30tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAM30tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAM30tf” + SIGBARS_Multi_No + “”, l_text_1288, l_fontsize_1428, “Tahoma Narrow”, l_color_1356);
ObjectSet(“SignalEMAM30tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAM30tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1408 + Adjust_Side_to_side);
ObjectSet(“SignalEMAM30tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1452 + Shift_UP_DN);
}
if (No_of_TFs >= 2) {
ObjectDelete(“SignalEMAH1tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAH1tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAH1tf” + SIGBARS_Multi_No + “”, l_text_1296, l_fontsize_1428, “Tahoma Narrow”, l_color_1360);
ObjectSet(“SignalEMAH1tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAH1tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1412 + Adjust_Side_to_side);
ObjectSet(“SignalEMAH1tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1456 + Shift_UP_DN);
}
ObjectDelete(“SignalEMAH4tf” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAH4tf” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAH4tf” + SIGBARS_Multi_No + “”, l_text_1304, l_fontsize_1428, “Tahoma Narrow”, l_color_1364);
ObjectSet(“SignalEMAH4tf” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAH4tf” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1416 + Adjust_Side_to_side);
ObjectSet(“SignalEMAH4tf” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1460 + Shift_UP_DN);
if (No_of_TFs < 2) {
ObjectDelete(“SignalEMAH4tfx” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAH4tfx” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAH4tfx” + SIGBARS_Multi_No + “”, l_text_1304, l_fontsize_1428, “Tahoma Narrow”, l_color_1364);
ObjectSet(“SignalEMAH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1420 + Adjust_Side_to_side);
ObjectSet(“SignalEMAH4tfx” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1460 + Shift_UP_DN);
ObjectDelete(“SignalEMAH4tfxx” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAH4tfxx” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAH4tfxx” + SIGBARS_Multi_No + “”, l_text_1304, l_fontsize_1428, “Tahoma Narrow”, l_color_1364);
ObjectSet(“SignalEMAH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1424 + Adjust_Side_to_side);
ObjectSet(“SignalEMAH4tfxx” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1460 + Shift_UP_DN);
}
ObjectDelete(“SignalEMA_TEXT” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMA_TEXT” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMA_TEXT” + SIGBARS_Multi_No + “”, “EMA”, l_fontsize_1432, “Tahoma Narrow”, BarLabel_color);
ObjectSet(“SignalEMA_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMA_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1380 + Adjust_Side_to_side);
ObjectSet(“SignalEMA_TEXT” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1436 + Shift_UP_DN);
if (No_of_TFs >= 6) {
ObjectDelete(“SignalEMAM1” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAM1” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAM1” + SIGBARS_Multi_No + “”, l_text_1264, l_fontsize_1428, “Tahoma Narrow”, l_color_1344);
ObjectSet(“SignalEMAM1” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAM1” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1384 + Adjust_Side_to_side);
ObjectSet(“SignalEMAM1” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1440 + Shift_UP_DN);
}
if (No_of_TFs >= 5) {
ObjectDelete(“SignalEMAM5” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAM5” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAM5” + SIGBARS_Multi_No + “”, l_text_1272, l_fontsize_1428, “Tahoma Narrow”, l_color_1348);
ObjectSet(“SignalEMAM5” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAM5” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1388 + Adjust_Side_to_side);
ObjectSet(“SignalEMAM5” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1444 + Shift_UP_DN);
}
if (No_of_TFs >= 4) {
ObjectDelete(“SignalEMAM15” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAM15” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAM15” + SIGBARS_Multi_No + “”, l_text_1280, l_fontsize_1428, “Tahoma Narrow”, l_color_1352);
ObjectSet(“SignalEMAM15” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAM15” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1392 + Adjust_Side_to_side);
ObjectSet(“SignalEMAM15” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1448 + Shift_UP_DN);
}
if (No_of_TFs >= 3) {
ObjectDelete(“SignalEMAM30” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAM30” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAM30” + SIGBARS_Multi_No + “”, l_text_1288, l_fontsize_1428, “Tahoma Narrow”, l_color_1356);
ObjectSet(“SignalEMAM30” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAM30” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1396 + Adjust_Side_to_side);
ObjectSet(“SignalEMAM30” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1452 + Shift_UP_DN);
}
if (No_of_TFs >= 2) {
ObjectDelete(“SignalEMAH1” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAH1” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAH1” + SIGBARS_Multi_No + “”, l_text_1296, l_fontsize_1428, “Tahoma Narrow”, l_color_1360);
ObjectSet(“SignalEMAH1” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAH1” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1400 + Adjust_Side_to_side);
ObjectSet(“SignalEMAH1” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1456 + Shift_UP_DN);
}
if (No_of_TFs >= 1) {
ObjectDelete(“SignalEMAH4” + SIGBARS_Multi_No + “”);
ObjectCreate(“SignalEMAH4” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SignalEMAH4” + SIGBARS_Multi_No + “”, l_text_1304, l_fontsize_1428, “Tahoma Narrow”, l_color_1364);
ObjectSet(“SignalEMAH4” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SignalEMAH4” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_1404 + Adjust_Side_to_side);
ObjectSet(“SignalEMAH4” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_1460 + Shift_UP_DN);
}
}
double ld_1468 = ld_156 + ld_164 + ld_172 + ld_180 + ld_188 + ld_196 + ld_204 + ld_212 + ld_220 + ld_228 + ld_236 + ld_244 + ld_252 + ld_260 + ld_268 + ld_276 + ld_284 +
ld_292;
double ld_1476 = ld_300 + ld_308 + ld_316 + ld_324 + ld_332 + ld_340 + ld_348 + ld_356 + ld_364 + ld_372 + ld_380 + ld_388 + ld_396 + ld_404 + ld_412 + ld_420 + ld_428 +
ld_436;
if (No_of_TFs == 6) {
li_1464 = 18;
l_dbl2str_1484 = DoubleToStr(100.0 * (ld_1468 / li_1464), 0);
l_dbl2str_1492 = DoubleToStr(100 – StrToDouble(l_dbl2str_1484), 0);
}
ld_1468 = ld_164 + ld_236 + ld_260 + ld_172 + ld_228 + ld_268 + ld_180 + ld_220 + ld_276 + ld_188 + ld_212 + ld_284 + ld_196 + ld_204 + ld_292;
ld_1476 = ld_308 + ld_380 + ld_404 + ld_316 + ld_372 + ld_412 + ld_324 + ld_364 + ld_420 + ld_332 + ld_356 + ld_428 + ld_340 + ld_348 + ld_436;
if (No_of_TFs == 5) {
li_1464 = 15;
l_dbl2str_1484 = DoubleToStr(100.0 * (ld_1468 / li_1464), 0);
l_dbl2str_1492 = DoubleToStr(100 – StrToDouble(l_dbl2str_1484), 0);
}
ld_1468 = ld_172 + ld_228 + ld_268 + ld_180 + ld_220 + ld_276 + ld_188 + ld_212 + ld_284 + ld_196 + ld_204 + ld_292;
ld_1476 = ld_316 + ld_372 + ld_412 + ld_324 + ld_364 + ld_420 + ld_332 + ld_356 + ld_428 + ld_340 + ld_348 + ld_436;
if (No_of_TFs == 4) {
li_1464 = 12;
l_dbl2str_1484 = DoubleToStr(100.0 * (ld_1468 / li_1464), 0);
l_dbl2str_1492 = DoubleToStr(100 – StrToDouble(l_dbl2str_1484), 0);
}
ld_1468 = ld_180 + ld_220 + ld_276 + ld_188 + ld_212 + ld_284 + ld_196 + ld_204 + ld_292;
ld_1476 = ld_324 + ld_364 + ld_340 + ld_332 + ld_356 + ld_428 + ld_340 + ld_348 + ld_436;
if (No_of_TFs == 3) {
li_1464 = 9;
l_dbl2str_1484 = DoubleToStr(100.0 * (ld_1468 / li_1464), 0);
l_dbl2str_1492 = DoubleToStr(100 – StrToDouble(l_dbl2str_1484), 0);
}
ld_1468 = ld_188 + ld_212 + ld_284 + ld_196 + ld_204 + ld_292;
ld_1476 = ld_332 + ld_356 + ld_428 + ld_340 + ld_348 + ld_436;
if (No_of_TFs == 2) {
li_1464 = 6;
l_dbl2str_1484 = DoubleToStr(100.0 * (ld_1468 / li_1464), 0);
l_dbl2str_1492 = DoubleToStr(100 – StrToDouble(l_dbl2str_1484), 0);
}
ld_1468 = ld_196 + ld_204 + ld_292;
ld_1476 = ld_340 + ld_348 + ld_436;
if (No_of_TFs == 1) {
li_1464 = 3;
l_dbl2str_1484 = DoubleToStr(100.0 * (ld_1468 / li_1464), 0);
l_dbl2str_1492 = DoubleToStr(100 – StrToDouble(l_dbl2str_1484), 0);
}
string ls_unused_1500 = “”;
if (POPUP_Alert_ON) {
if (StrToDouble(l_dbl2str_1484) > AlertLevel)
if (BarChanged()) Alert(“” + symbol + ” : Signal Bars – Alert Level ” + AlertLevel + “% UP TREND @ ” + l_dbl2str_1484 + “%”);
if (StrToDouble(l_dbl2str_1492) > AlertLevel)
if (BarChanged()) Alert(“” + symbol + ” : Signal Bars – Alert Level ” + AlertLevel + “% DN TREND @ ” + l_dbl2str_1492 + “%”);
}
if (Sound_Limited_Alert_ON == TRUE) {
if (StrToDouble(l_dbl2str_1484) > AlertLevel)
if (BarChanged()) PlaySound(“alert2”);
if (StrToDouble(l_dbl2str_1492) > AlertLevel)
if (BarChanged()) PlaySound(“alert2”);
}
if (Sound_Constant_Alert_ON == TRUE) {
if (StrToDouble(l_dbl2str_1484) >= AlertLevel) PlaySound(“alert”);
if (StrToDouble(l_dbl2str_1492) >= AlertLevel) PlaySound(“alert”);
}
if (Show_Visual_Alert) {
l_color_1508 = Alert_col_NEUTRAL;
l_color_1512 = Alert_col_NEUTRAL;
if (StrToDouble(l_dbl2str_1484) > AlertLevel) l_color_1508 = Alert_col_UP;
if (StrToDouble(l_dbl2str_1492) > AlertLevel) l_color_1512 = Alert_col_DN;
if (Show_Smaller_Size == TRUE) li_1516 = 140;
if (Show_Smaller_Size == TRUE) li_1520 = 68;
if (Show_Smaller_Size == TRUE) l_fontsize_1524 = 9;
if (Show_Smaller_Size == FALSE) li_1516 = 160;
if (Show_Smaller_Size == FALSE) li_1520 = 70;
if (Show_Smaller_Size == FALSE) l_fontsize_1524 = 11;
if (Show_Xtra_Details == FALSE) li_1516 = 105;
if (Show_Xtra_Details == FALSE && Show_Smaller_Size == TRUE) li_1516 = 85;
if (Show_Xtra_Details == FALSE && Show_Price == FALSE && Show_Smaller_Size == TRUE) li_1516 = 60;
if (Show_Xtra_Details == TRUE && Show_Price == FALSE && Show_Smaller_Size == TRUE) li_1516 = 120;
if (Show_Xtra_Details == FALSE && Show_Smaller_Size == FALSE) li_1516 = 97;
if (Show_Xtra_Details == FALSE && Show_Price == FALSE && Show_Smaller_Size == FALSE) li_1516 = 62;
if (Show_Xtra_Details == TRUE && Show_Price == FALSE && Show_Smaller_Size == FALSE) li_1516 = 125;
if (Show_Indicator_Bars == FALSE) li_1528 = -30;
ObjectDelete(“SigAlert” + SIGBARS_Multi_No);
ObjectCreate(“SigAlert” + SIGBARS_Multi_No, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SigAlert” + SIGBARS_Multi_No, “UP ” + l_dbl2str_1484 + “%”, l_fontsize_1524, “Arial Bold”, l_color_1508);
ObjectSet(“SigAlert” + SIGBARS_Multi_No, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SigAlert” + SIGBARS_Multi_No, OBJPROP_XDISTANCE, Adjust_Side_to_side + 10);
ObjectSet(“SigAlert” + SIGBARS_Multi_No, OBJPROP_YDISTANCE, li_1516 + Shift_UP_DN + li_1528);
ObjectDelete(“SigAlert1” + SIGBARS_Multi_No);
ObjectCreate(“SigAlert1” + SIGBARS_Multi_No, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SigAlert1” + SIGBARS_Multi_No, “DN ” + l_dbl2str_1492 + “%”, l_fontsize_1524, “Arial Bold”, l_color_1512);
ObjectSet(“SigAlert1” + SIGBARS_Multi_No, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SigAlert1” + SIGBARS_Multi_No, OBJPROP_XDISTANCE, li_1520 + Adjust_Side_to_side);
ObjectSet(“SigAlert1” + SIGBARS_Multi_No, OBJPROP_YDISTANCE, li_1516 + Shift_UP_DN + li_1528);
}
if (Show_Header) {
if (Show_Smaller_Size == FALSE) {
ObjectDelete(“Signalcurr” + SIGBARS_Multi_No + “”);
ObjectCreate(“Signalcurr” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“Signalcurr” + SIGBARS_Multi_No + “”, “Signal Bars ” + symbol, 11, “Tahoma”, Title_Color);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 12);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 7);
if (Show_Indicator_Bars == FALSE) {
ObjectDelete(“Signalcurr” + SIGBARS_Multi_No + “”);
ObjectCreate(“Signalcurr” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“Signalcurr” + SIGBARS_Multi_No + “”, “Signal Bars ” + symbol, 11, “Tahoma”, Title_Color);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 12);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 43 + li_1528);
}
}
if (Show_Smaller_Size == TRUE) {
ObjectDelete(“Signalcurr” + SIGBARS_Multi_No + “”);
ObjectCreate(“Signalcurr” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“Signalcurr” + SIGBARS_Multi_No + “”, “Signal Bars ” + symbol, 9, “Tahoma”, Title_Color);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 12);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 12);
if (Show_Indicator_Bars == FALSE) {
ObjectDelete(“Signalcurr” + SIGBARS_Multi_No + “”);
ObjectCreate(“Signalcurr” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“Signalcurr” + SIGBARS_Multi_No + “”, “Signal Bars ” + symbol, 9, “Tahoma”, Title_Color);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 12);
ObjectSet(“Signalcurr” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 44 + li_1528);
}
}
}
if (Digit_Switch == TRUE) {
if (StringFind(symbol, “JPY”, 0) != -1) {
gi_588 = 3;
gi_584 = 100;
gi_580 = 3;
} else {
gi_588 = 5;
gi_584 = 10000;
gi_580 = 5;
}
}
if (Digit_Switch == FALSE) {
if (StringFind(symbol, “JPY”, 0) != -1) {
gi_588 = 2;
gi_584 = 100;
gi_580 = 2;
} else {
gi_588 = 4;
gi_584 = 10000;
gi_580 = 4;
}
}
double ld_1532 = NormalizeDouble(MarketInfo(symbol, MODE_BID), gi_580);
double l_ima_1540 = iMA(symbol, PERIOD_M1, 1, 0, MODE_EMA, PRICE_CLOSE, 1);
string ls_unused_1548 = “”;
if (l_ima_1540 > ld_1532) l_color_1556 = Price_DN;
if (l_ima_1540 < ld_1532) l_color_1556 = Price_UP;
if (l_ima_1540 == ld_1532) l_color_1556 = Price_Neutral;
double ld_1560 = iHigh(symbol, PERIOD_D1, 1) – iLow(symbol, PERIOD_D1, 1);
double ld_1568 = iHigh(symbol, PERIOD_D1, 2) – iLow(symbol, PERIOD_D1, 2);
double ld_1576 = iHigh(symbol, PERIOD_D1, 3) – iLow(symbol, PERIOD_D1, 3);
double ld_1584 = iHigh(symbol, PERIOD_D1, 4) – iLow(symbol, PERIOD_D1, 4);
double ld_1592 = iHigh(symbol, PERIOD_D1, 5) – iLow(symbol, PERIOD_D1, 5);
double ld_1600 = iHigh(symbol, PERIOD_D1, 6) – iLow(symbol, PERIOD_D1, 6);
double ld_1608 = iHigh(symbol, PERIOD_D1, 7) – iLow(symbol, PERIOD_D1, 7);
double ld_1616 = iHigh(symbol, PERIOD_D1, 8) – iLow(symbol, PERIOD_D1, 8);
double ld_1624 = iHigh(symbol, PERIOD_D1, 9) – iLow(symbol, PERIOD_D1, 9);
double ld_1632 = iHigh(symbol, PERIOD_D1, 10) – iLow(symbol, PERIOD_D1, 10);
double ld_1640 = iHigh(symbol, PERIOD_D1, 11) – iLow(symbol, PERIOD_D1, 11);
double ld_1648 = iHigh(symbol, PERIOD_D1, 12) – iLow(symbol, PERIOD_D1, 12);
double ld_1656 = iHigh(symbol, PERIOD_D1, 13) – iLow(symbol, PERIOD_D1, 13);
double ld_1664 = iHigh(symbol, PERIOD_D1, 14) – iLow(symbol, PERIOD_D1, 14);
double ld_1672 = iHigh(symbol, PERIOD_D1, 15) – iLow(symbol, PERIOD_D1, 15);
double ld_1680 = iHigh(symbol, PERIOD_D1, 16) – iLow(symbol, PERIOD_D1, 16);
double ld_1688 = iHigh(symbol, PERIOD_D1, 17) – iLow(symbol, PERIOD_D1, 17);
double ld_1696 = iHigh(symbol, PERIOD_D1, 18) – iLow(symbol, PERIOD_D1, 18);
double ld_1704 = iHigh(symbol, PERIOD_D1, 19) – iLow(symbol, PERIOD_D1, 19);
double ld_1712 = iHigh(symbol, PERIOD_D1, 20) – iLow(symbol, PERIOD_D1, 20);
double ld_1720 = iHigh(symbol, PERIOD_D1, 21) – iLow(symbol, PERIOD_D1, 21);
double ld_1728 = iHigh(symbol, PERIOD_D1, 22) – iLow(symbol, PERIOD_D1, 22);
double ld_1736 = iHigh(symbol, PERIOD_D1, 23) – iLow(symbol, PERIOD_D1, 23);
double ld_1744 = iHigh(symbol, PERIOD_D1, 24) – iLow(symbol, PERIOD_D1, 24);
double ld_1752 = iHigh(symbol, PERIOD_D1, 25) – iLow(symbol, PERIOD_D1, 25);
double ld_1760 = iHigh(symbol, PERIOD_D1, 26) – iLow(symbol, PERIOD_D1, 26);
double ld_1768 = iHigh(symbol, PERIOD_D1, 27) – iLow(symbol, PERIOD_D1, 27);
double ld_1776 = iHigh(symbol, PERIOD_D1, 28) – iLow(symbol, PERIOD_D1, 28);
double ld_1784 = iHigh(symbol, PERIOD_D1, 29) – iLow(symbol, PERIOD_D1, 29);
double ld_1792 = iHigh(symbol, PERIOD_D1, 30) – iLow(symbol, PERIOD_D1, 30);
double ld_1800 = iHigh(symbol, PERIOD_D1, 31) – iLow(symbol, PERIOD_D1, 31);
double ld_1808 = iHigh(symbol, PERIOD_D1, 32) – iLow(symbol, PERIOD_D1, 32);
double ld_1816 = iHigh(symbol, PERIOD_D1, 33) – iLow(symbol, PERIOD_D1, 33);
double ld_1824 = iHigh(symbol, PERIOD_D1, 34) – iLow(symbol, PERIOD_D1, 34);
double ld_1832 = iHigh(symbol, PERIOD_D1, 35) – iLow(symbol, PERIOD_D1, 35);
double ld_1840 = iHigh(symbol, PERIOD_D1, 36) – iLow(symbol, PERIOD_D1, 36);
double ld_1848 = iHigh(symbol, PERIOD_D1, 37) – iLow(symbol, PERIOD_D1, 37);
double ld_1856 = iHigh(symbol, PERIOD_D1, 38) – iLow(symbol, PERIOD_D1, 38);
double ld_1864 = iHigh(symbol, PERIOD_D1, 39) – iLow(symbol, PERIOD_D1, 39);
double ld_1872 = iHigh(symbol, PERIOD_D1, 40) – iLow(symbol, PERIOD_D1, 40);
double ld_1880 = iHigh(symbol, PERIOD_D1, 41) – iLow(symbol, PERIOD_D1, 41);
double ld_1888 = iHigh(symbol, PERIOD_D1, 42) – iLow(symbol, PERIOD_D1, 42);
double ld_1896 = iHigh(symbol, PERIOD_D1, 43) – iLow(symbol, PERIOD_D1, 43);
double ld_1904 = iHigh(symbol, PERIOD_D1, 44) – iLow(symbol, PERIOD_D1, 44);
double ld_1912 = iHigh(symbol, PERIOD_D1, 45) – iLow(symbol, PERIOD_D1, 45);
double ld_1920 = iHigh(symbol, PERIOD_D1, 46) – iLow(symbol, PERIOD_D1, 46);
double ld_1928 = iHigh(symbol, PERIOD_D1, 47) – iLow(symbol, PERIOD_D1, 47);
double ld_1936 = iHigh(symbol, PERIOD_D1, 48) – iLow(symbol, PERIOD_D1, 48);
double ld_1944 = iHigh(symbol, PERIOD_D1, 49) – iLow(symbol, PERIOD_D1, 49);
double ld_1952 = iHigh(symbol, PERIOD_D1, 50) – iLow(symbol, PERIOD_D1, 50);
double ld_1960 = iHigh(symbol, PERIOD_D1, 51) – iLow(symbol, PERIOD_D1, 51);
double ld_1968 = iHigh(symbol, PERIOD_D1, 52) – iLow(symbol, PERIOD_D1, 52);
double ld_1976 = iHigh(symbol, PERIOD_D1, 53) – iLow(symbol, PERIOD_D1, 53);
double ld_1984 = iHigh(symbol, PERIOD_D1, 54) – iLow(symbol, PERIOD_D1, 54);
double ld_1992 = iHigh(symbol, PERIOD_D1, 55) – iLow(symbol, PERIOD_D1, 55);
double ld_2000 = iHigh(symbol, PERIOD_D1, 56) – iLow(symbol, PERIOD_D1, 56);
double ld_2008 = iHigh(symbol, PERIOD_D1, 57) – iLow(symbol, PERIOD_D1, 57);
double ld_2016 = iHigh(symbol, PERIOD_D1, 58) – iLow(symbol, PERIOD_D1, 58);
double ld_2024 = iHigh(symbol, PERIOD_D1, 59) – iLow(symbol, PERIOD_D1, 59);
double ld_2032 = iHigh(symbol, PERIOD_D1, 60) – iLow(symbol, PERIOD_D1, 60);
double ld_2040 = iHigh(symbol, PERIOD_D1, 61) – iLow(symbol, PERIOD_D1, 61);
double ld_2048 = iHigh(symbol, PERIOD_D1, 62) – iLow(symbol, PERIOD_D1, 62);
double ld_2056 = iHigh(symbol, PERIOD_D1, 63) – iLow(symbol, PERIOD_D1, 63);
double ld_2064 = iHigh(symbol, PERIOD_D1, 64) – iLow(symbol, PERIOD_D1, 64);
double ld_2072 = iHigh(symbol, PERIOD_D1, 65) – iLow(symbol, PERIOD_D1, 65);
double ld_2080 = iHigh(symbol, PERIOD_D1, 66) – iLow(symbol, PERIOD_D1, 66);
double ld_2088 = iHigh(symbol, PERIOD_D1, 67) – iLow(symbol, PERIOD_D1, 67);
double ld_2096 = iHigh(symbol, PERIOD_D1, 68) – iLow(symbol, PERIOD_D1, 68);
double ld_2104 = iHigh(symbol, PERIOD_D1, 69) – iLow(symbol, PERIOD_D1, 69);
double ld_2112 = iHigh(symbol, PERIOD_D1, 70) – iLow(symbol, PERIOD_D1, 70);
double ld_2120 = iHigh(symbol, PERIOD_D1, 71) – iLow(symbol, PERIOD_D1, 71);
double ld_2128 = iHigh(symbol, PERIOD_D1, 72) – iLow(symbol, PERIOD_D1, 72);
double ld_2136 = iHigh(symbol, PERIOD_D1, 73) – iLow(symbol, PERIOD_D1, 73);
double ld_2144 = iHigh(symbol, PERIOD_D1, 74) – iLow(symbol, PERIOD_D1, 74);
double ld_2152 = iHigh(symbol, PERIOD_D1, 75) – iLow(symbol, PERIOD_D1, 75);
double ld_2160 = iHigh(symbol, PERIOD_D1, 76) – iLow(symbol, PERIOD_D1, 76);
double ld_2168 = iHigh(symbol, PERIOD_D1, 77) – iLow(symbol, PERIOD_D1, 77);
double ld_2176 = iHigh(symbol, PERIOD_D1, 78) – iLow(symbol, PERIOD_D1, 78);
double ld_2184 = iHigh(symbol, PERIOD_D1, 79) – iLow(symbol, PERIOD_D1, 79);
double ld_2192 = iHigh(symbol, PERIOD_D1, 80) – iLow(symbol, PERIOD_D1, 80);
double ld_2200 = iHigh(symbol, PERIOD_D1, 81) – iLow(symbol, PERIOD_D1, 81);
double ld_2208 = iHigh(symbol, PERIOD_D1, 82) – iLow(symbol, PERIOD_D1, 82);
double ld_2216 = iHigh(symbol, PERIOD_D1, 83) – iLow(symbol, PERIOD_D1, 83);
double ld_2224 = iHigh(symbol, PERIOD_D1, 84) – iLow(symbol, PERIOD_D1, 84);
double ld_2232 = iHigh(symbol, PERIOD_D1, 85) – iLow(symbol, PERIOD_D1, 85);
double ld_2240 = iHigh(symbol, PERIOD_D1, 86) – iLow(symbol, PERIOD_D1, 86);
double ld_2248 = iHigh(symbol, PERIOD_D1, 87) – iLow(symbol, PERIOD_D1, 87);
double ld_2256 = iHigh(symbol, PERIOD_D1, 88) – iLow(symbol, PERIOD_D1, 88);
double ld_2264 = iHigh(symbol, PERIOD_D1, 89) – iLow(symbol, PERIOD_D1, 89);
double ld_2272 = iHigh(symbol, PERIOD_D1, 90) – iLow(symbol, PERIOD_D1, 90);
double ld_2280 = iHigh(symbol, PERIOD_D1, 91) – iLow(symbol, PERIOD_D1, 91);
double ld_2288 = iHigh(symbol, PERIOD_D1, 92) – iLow(symbol, PERIOD_D1, 92);
double ld_2296 = iHigh(symbol, PERIOD_D1, 93) – iLow(symbol, PERIOD_D1, 93);
double ld_2304 = iHigh(symbol, PERIOD_D1, 94) – iLow(symbol, PERIOD_D1, 94);
double ld_2312 = iHigh(symbol, PERIOD_D1, 95) – iLow(symbol, PERIOD_D1, 95);
double ld_2320 = iHigh(symbol, PERIOD_D1, 99) – iLow(symbol, PERIOD_D1, 96);
double ld_2328 = iHigh(symbol, PERIOD_D1, 99) – iLow(symbol, PERIOD_D1, 97);
double ld_2336 = iHigh(symbol, PERIOD_D1, 99) – iLow(symbol, PERIOD_D1, 98);
double ld_2344 = iHigh(symbol, PERIOD_D1, 98) – iLow(symbol, PERIOD_D1, 99);
double ld_2352 = iHigh(symbol, PERIOD_D1, 100) – iLow(symbol, PERIOD_D1, 100);
if (Select_Average == 1) ld_2360 = ld_1560;
if (Select_Average == 2) ld_2360 = (ld_1560 + ld_1568) / 2.0;
if (Select_Average == 3) ld_2360 = (ld_1560 + ld_1568 + ld_1576) / 3.0;
if (Select_Average == 4) ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584) / 4.0;
if (Select_Average == 5) ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592) / 5.0;
if (Select_Average == 6) ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600) / 6.0;
if (Select_Average == 7) ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608) / 7.0;
if (Select_Average == 8) ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616) / 8.0;
if (Select_Average == 9) ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624) / 9.0;
if (Select_Average == 10) ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632) / 10.0;
if (Select_Average == 15) ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672) / 15.0;
if (Select_Average == 20) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712) / 20.0;
}
if (Select_Average == 25) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752) / 25.0;
}
if (Select_Average == 30) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792) / 30.0;
}
if (Select_Average == 35) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832) / 35.0;
}
if (Select_Average == 40) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832 + ld_1840 + ld_1848 + ld_1856 + ld_1864 + ld_1872) / 40.0;
}
if (Select_Average == 45) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832 + ld_1840 + ld_1848 + ld_1856 + ld_1864 + ld_1872 + ld_1880 + ld_1888 + ld_1896 + ld_1904 + ld_1912) / 45.0;
}
if (Select_Average == 50) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832 + ld_1840 + ld_1848 + ld_1856 + ld_1864 + ld_1872 + ld_1880 + ld_1888 + ld_1896 + ld_1904 + ld_1912 + ld_1920 + ld_1928 + ld_1936 + ld_1944 + ld_1952) / 50.0;
}
if (Select_Average == 60) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832 + ld_1840 + ld_1848 + ld_1856 + ld_1864 + ld_1872 + ld_1880 + ld_1888 + ld_1896 + ld_1904 + ld_1912 + ld_1920 + ld_1928 + ld_1936 + ld_1944 + ld_1952 +
ld_1960 + ld_1968 + ld_1976 + ld_1984 + ld_1992 + ld_2000 + ld_2008 + ld_2016 + ld_2024 + ld_2032) / 60.0;
}
if (Select_Average == 70) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832 + ld_1840 + ld_1848 + ld_1856 + ld_1864 + ld_1872 + ld_1880 + ld_1888 + ld_1896 + ld_1904 + ld_1912 + ld_1920 + ld_1928 + ld_1936 + ld_1944 + ld_1952 +
ld_1960 + ld_1968 + ld_1976 + ld_1984 + ld_1992 + ld_2000 + ld_2008 + ld_2016 + ld_2024 + ld_2032 + ld_2040 + ld_2048 + ld_2056 + ld_2064 + ld_2072 + ld_2080 + ld_2088 +
ld_2096 + ld_2104 + ld_2112) / 70.0;
}
if (Select_Average == 80) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832 + ld_1840 + ld_1848 + ld_1856 + ld_1864 + ld_1872 + ld_1880 + ld_1888 + ld_1896 + ld_1904 + ld_1912 + ld_1920 + ld_1928 + ld_1936 + ld_1944 + ld_1952 +
ld_1960 + ld_1968 + ld_1976 + ld_1984 + ld_1992 + ld_2000 + ld_2008 + ld_2016 + ld_2024 + ld_2032 + ld_2040 + ld_2048 + ld_2056 + ld_2064 + ld_2072 + ld_2080 + ld_2088 +
ld_2096 + ld_2104 + ld_2112 + ld_2120 + ld_2128 + ld_2136 + ld_2144 + ld_2152 + ld_2160 + ld_2168 + ld_2176 + ld_2184 + ld_2192) / 80.0;
}
if (Select_Average == 90) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832 + ld_1840 + ld_1848 + ld_1856 + ld_1864 + ld_1872 + ld_1880 + ld_1888 + ld_1896 + ld_1904 + ld_1912 + ld_1920 + ld_1928 + ld_1936 + ld_1944 + ld_1952 +
ld_1960 + ld_1968 + ld_1976 + ld_1984 + ld_1992 + ld_2000 + ld_2008 + ld_2016 + ld_2024 + ld_2032 + ld_2040 + ld_2048 + ld_2056 + ld_2064 + ld_2072 + ld_2080 + ld_2088 +
ld_2096 + ld_2104 + ld_2112 + ld_2120 + ld_2128 + ld_2136 + ld_2144 + ld_2152 + ld_2160 + ld_2168 + ld_2176 + ld_2184 + ld_2192 + ld_2200 + ld_2208 + ld_2216 + ld_2224 +
ld_2232 + ld_2240 + ld_2248 + ld_2256 + ld_2264 + ld_2272) / 90.0;
}
if (Select_Average == 100) {
ld_2360 = (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 +
ld_1688 + ld_1696 + ld_1704 + ld_1712 + ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 +
ld_1824 + ld_1832 + ld_1840 + ld_1848 + ld_1856 + ld_1864 + ld_1872 + ld_1880 + ld_1888 + ld_1896 + ld_1904 + ld_1912 + ld_1920 + ld_1928 + ld_1936 + ld_1944 + ld_1952 +
ld_1960 + ld_1968 + ld_1976 + ld_1984 + ld_1992 + ld_2000 + ld_2008 + ld_2016 + ld_2024 + ld_2032 + ld_2040 + ld_2048 + ld_2056 + ld_2064 + ld_2072 + ld_2080 + ld_2088 +
ld_2096 + ld_2104 + ld_2112 + ld_2120 + ld_2128 + ld_2136 + ld_2144 + ld_2152 + ld_2160 + ld_2168 + ld_2176 + ld_2184 + ld_2192 + ld_2200 + ld_2208 + ld_2216 + ld_2224 +
ld_2232 + ld_2240 + ld_2248 + ld_2256 + ld_2264 + ld_2272 + ld_2280 + ld_2288 + ld_2296 + ld_2304 + ld_2312 + ld_2320 + ld_2328 + ld_2344 + ld_2336 + ld_2352) / 100.0;
}
if (Select_Average == 0) {
ld_2360 = (ld_1560 + (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592) / 5.0 + (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 +
ld_1632) / 10.0 + (ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 + ld_1664 + ld_1672 + ld_1680 + ld_1688 + ld_1696 + ld_1704 + ld_1712) / 20.0) / 4.0;
}
string ls_unused_2376 = “”;
string ls_unused_2384 = “”;
double l_iopen_2400 = iOpen(symbol, PERIOD_D1, 0);
double l_iclose_2408 = iClose(symbol, PERIOD_D1, 0);
if (Spread_Digit_Shift == TRUE) Spread_Digit_Shift = TRUE;
else Spread_Digit_Shift = 10;
if (Digit_Switch == TRUE) ld_2368 = MarketInfo(symbol, MODE_SPREAD) / Spread_Digit_Shift;
if (Digit_Switch == FALSE) ld_2368 = NormalizeDouble(MarketInfo(symbol, MODE_SPREAD), gi_580);
double l_ihigh_2416 = iHigh(symbol, PERIOD_D1, 0);
double l_ilow_2424 = iLow(symbol, PERIOD_D1, 0);
double ld_2432 = (iClose(symbol, PERIOD_D1, 0) – iOpen(symbol, PERIOD_D1, 0)) * gi_584;
double ld_2440 = ld_2360 * gi_584;
double ld_2448 = (iHigh(symbol, PERIOD_D1, 1) – iLow(symbol, PERIOD_D1, 1)) * gi_584;
double ld_2456 = (MarketInfo(symbol, MODE_HIGH) – MarketInfo(symbol, MODE_LOW)) * gi_584;
if (l_iclose_2408 >= l_iopen_2400) l_color_2392 = Pips_UP;
if (l_iclose_2408 < l_iopen_2400) l_color_2392 = Pips_DN;
if (ld_2440 >= ld_2448) l_color_2396 = Daily_AV_UP;
if (ld_2440 < ld_2448) l_color_2396 = Daily_AV_DN;
if (Show_Smaller_Size == FALSE) {
if (Show_Price == TRUE) {
ObjectDelete(“Signalprice” + SIGBARS_Multi_No + “”);
ObjectCreate(“Signalprice” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“Signalprice” + SIGBARS_Multi_No + “”, DoubleToStr(ld_1532, gi_580), 30, “Arial”, l_color_1556);
ObjectSet(“Signalprice” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“Signalprice” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 10);
ObjectSet(“Signalprice” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 58 + li_1528);
li_2476 = 45;
li_2512 = 98;
l_fontsize_2464 = 11;
li_2480 = 10;
li_2516 = 96;
l_fontsize_2468 = 12;
li_2484 = 45;
li_2520 = 113;
l_fontsize_2464 = 11;
li_2488 = 10;
li_2524 = 111;
l_fontsize_2468 = 12;
li_2492 = 45;
li_2528 = 128;
l_fontsize_2464 = 11;
li_2496 = 10;
li_2532 = 126;
l_fontsize_2468 = 12;
li_2500 = 45;
li_2536 = 143;
l_fontsize_2464 = 11;
li_2504 = 10;
li_2540 = 141;
l_fontsize_2468 = 12;
li_2508 = 10;
li_2544 = 160;
l_fontsize_2472 = 9;
if (Show_Visual_Alert) li_2544 = 175;
}
}
if (Show_Smaller_Size == FALSE) {
if (Show_Price == FALSE) {
li_2476 = 45;
li_2512 = 62;
l_fontsize_2464 = 11;
li_2480 = 10;
li_2516 = 60;
l_fontsize_2468 = 12;
li_2484 = 45;
li_2520 = 77;
l_fontsize_2464 = 11;
li_2488 = 10;
li_2524 = 75;
l_fontsize_2468 = 12;
li_2492 = 45;
li_2528 = 92;
l_fontsize_2464 = 11;
li_2496 = 10;
li_2532 = 90;
l_fontsize_2468 = 12;
li_2500 = 45;
li_2536 = 107;
l_fontsize_2464 = 11;
li_2504 = 10;
li_2540 = 105;
l_fontsize_2468 = 12;
li_2508 = 10;
li_2544 = 124;
l_fontsize_2472 = 9;
if (Show_Visual_Alert) li_2544 = 140;
}
}
if (Show_Smaller_Size == TRUE) {
if (Show_Price == TRUE) {
ObjectDelete(“Signalprice” + SIGBARS_Multi_No + “”);
ObjectCreate(“Signalprice” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“Signalprice” + SIGBARS_Multi_No + “”, DoubleToStr(ld_1532, gi_580), 20, “Arial”, l_color_1556);
ObjectSet(“Signalprice” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“Signalprice” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, Adjust_Side_to_side + 10);
ObjectSet(“Signalprice” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, Shift_UP_DN + 56 + li_1528);
li_2476 = 38;
li_2512 = 82;
l_fontsize_2464 = 9;
li_2480 = 10;
li_2516 = 82;
l_fontsize_2468 = 9;
li_2484 = 38;
li_2520 = 96;
l_fontsize_2464 = 9;
li_2488 = 10;
li_2524 = 96;
l_fontsize_2468 = 9;
li_2492 = 38;
li_2528 = 110;
l_fontsize_2464 = 9;
li_2496 = 10;
li_2532 = 110;
l_fontsize_2468 = 9;
li_2500 = 38;
li_2536 = 124;
l_fontsize_2464 = 9;
li_2504 = 10;
li_2540 = 124;
l_fontsize_2468 = 9;
li_2508 = 10;
li_2544 = 140;
l_fontsize_2472 = 8;
if (Show_Visual_Alert) li_2544 = 155;
}
}
if (Show_Smaller_Size == TRUE) {
if (Show_Price == FALSE) {
li_2476 = 38;
li_2512 = 62;
l_fontsize_2464 = 9;
li_2480 = 10;
li_2516 = 62;
l_fontsize_2468 = 9;
li_2484 = 38;
li_2520 = 76;
l_fontsize_2464 = 9;
li_2488 = 10;
li_2524 = 76;
l_fontsize_2468 = 9;
li_2492 = 38;
li_2528 = 90;
l_fontsize_2464 = 9;
li_2496 = 10;
li_2532 = 90;
l_fontsize_2468 = 9;
li_2500 = 38;
li_2536 = 104;
l_fontsize_2464 = 9;
li_2504 = 10;
li_2540 = 104;
l_fontsize_2468 = 9;
li_2508 = 10;
li_2544 = 120;
l_fontsize_2472 = 8;
if (Show_Visual_Alert) li_2544 = 135;
}
}
if (Show_Xtra_Details == TRUE) {
ObjectDelete(“SIG_DETAIL_1” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_DETAIL_1” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_DETAIL_1” + SIGBARS_Multi_No + “”, “Spread”, l_fontsize_2464, “Tahoma Narrow”, CommentLabel_color);
ObjectSet(“SIG_DETAIL_1” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_DETAIL_1” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2476 + Adjust_Side_to_side);
ObjectSet(“SIG_DETAIL_1” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2512 + Shift_UP_DN + li_1528);
ObjectDelete(“SIG_DETAIL_2” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_DETAIL_2” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_DETAIL_2” + SIGBARS_Multi_No + “”, “” + DoubleToStr(ld_2368, gi_580 – gi_588 + 1) + “”, l_fontsize_2468, “Arial Bold”, Spread_color);
ObjectSet(“SIG_DETAIL_2” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_DETAIL_2” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2480 + Adjust_Side_to_side);
ObjectSet(“SIG_DETAIL_2” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2516 + Shift_UP_DN + li_1528);
ObjectDelete(“SIG_DETAIL_3” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_DETAIL_3” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_DETAIL_3” + SIGBARS_Multi_No + “”, “Pips to Open”, l_fontsize_2464, “Tahoma Narrow”, CommentLabel_color);
ObjectSet(“SIG_DETAIL_3” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_DETAIL_3” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2484 + Adjust_Side_to_side);
ObjectSet(“SIG_DETAIL_3” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2520 + Shift_UP_DN + li_1528);
ObjectDelete(“SIG_DETAIL_4” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_DETAIL_4” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_DETAIL_4” + SIGBARS_Multi_No + “”, “” + DoubleToStr(ld_2432, gi_580 – gi_588) + “”, l_fontsize_2468, “Arial Bold”, l_color_2392);
ObjectSet(“SIG_DETAIL_4” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_DETAIL_4” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2488 + Adjust_Side_to_side);
ObjectSet(“SIG_DETAIL_4” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2524 + Shift_UP_DN + li_1528);
ObjectDelete(“SIG_DETAIL_5” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_DETAIL_5” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_DETAIL_5” + SIGBARS_Multi_No + “”, “Hi to Low”, l_fontsize_2464, “Tahoma Narrow”, CommentLabel_color);
ObjectSet(“SIG_DETAIL_5” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_DETAIL_5” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2492 + Adjust_Side_to_side);
ObjectSet(“SIG_DETAIL_5” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2528 + Shift_UP_DN + li_1528);
ObjectDelete(“SIG_DETAIL_6” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_DETAIL_6” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_DETAIL_6” + SIGBARS_Multi_No + “”, “” + DoubleToStr(ld_2456, gi_580 – gi_588) + “”, l_fontsize_2468, “Arial Bold”, HI_LO_color);
ObjectSet(“SIG_DETAIL_6” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_DETAIL_6” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2496 + Adjust_Side_to_side);
ObjectSet(“SIG_DETAIL_6” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2532 + Shift_UP_DN + li_1528);
ObjectDelete(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”, “” + Select_Average + ” Day Av”, l_fontsize_2464, “Tahoma Narrow”, CommentLabel_color);
if (Select_Average == 1) ObjectSetText(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”, “Prev ” + Select_Average + ” Day Av”, l_fontsize_2464, “Tahoma Narrow”, CommentLabel_color);
else
if (Select_Average == 0) ObjectSetText(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”, “Day Av”, l_fontsize_2464, “Tahoma Narrow”, CommentLabel_color);
ObjectSet(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2500 + Adjust_Side_to_side);
ObjectSet(“SIG_DETAIL_7” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2536 + Shift_UP_DN + li_1528);
ObjectDelete(“SIG_DETAIL_8” + SIGBARS_Multi_No + “”);
ObjectCreate(“SIG_DETAIL_8” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“SIG_DETAIL_8” + SIGBARS_Multi_No + “”, “” + DoubleToStr(ld_2440, gi_580 – gi_588) + “”, l_fontsize_2468, “Arial Bold”, l_color_2396);
ObjectSet(“SIG_DETAIL_8” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“SIG_DETAIL_8” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2504 + Adjust_Side_to_side);
ObjectSet(“SIG_DETAIL_8” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2540 + Shift_UP_DN + li_1528);
if (StringFind(symbol, “JPY”, 0) != -1) gi_576 = 2;
else gi_576 = 2;
if (Show_BrokerTime == TRUE) {
ObjectDelete(“BrokerTime” + SIGBARS_Multi_No + “”);
ObjectCreate(“BrokerTime” + SIGBARS_Multi_No + “”, OBJ_LABEL, Sig_Bars_Window, 0, 0);
ObjectSetText(“BrokerTime” + SIGBARS_Multi_No + “”, “Broker Time ” + TimeToStr(TimeCurrent(), gi_576), l_fontsize_2472, “Tahoma Narrow”, CommentLabel_color);
ObjectSet(“BrokerTime” + SIGBARS_Multi_No + “”, OBJPROP_CORNER, Corner_of_Chart_RIGHT_TOP);
ObjectSet(“BrokerTime” + SIGBARS_Multi_No + “”, OBJPROP_XDISTANCE, li_2508 + Adjust_Side_to_side);
ObjectSet(“BrokerTime” + SIGBARS_Multi_No + “”, OBJPROP_YDISTANCE, li_2544 + Shift_UP_DN + li_1528);
}
}
if (Show_Indicator_Instructions == TRUE) {
Comment(“\n INSTRUCTION MANUAL for Signal Bars Multi-Currency by cja”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n SIGBARS_Multi_No = 12345”
+ “\n EXTREMELY IMPORTANT – This number MUST be DIFFERENT for every Signal Bars loaded onto the same Chart”
+ “\n to avoid code conflict between the Signal Bars Indicators”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n Currency Pairs :”
+ “\n NOTE : Currencies must be typed in as – EURUSD – not – eurusd – or the indicator will not recognise the instruction.”
+ “\n Symbol = EURUSD or GBPUSD / USDJPY / USDCHF etc – if the Window is left BLANK the indicator will default to the”
+ “\n Current Chart Currency that the Indicator is loaded onto.”
+ “\n NOTE : Several different Currencies can be loaded onto the same Chart – or the same Currency can be loaded as many”
+ “\n times as required. This can be useful if you wish to monitor the full range of TimeFrames or different internal Indicator settings.”
+ “\n”
+ “\n Digit_Switch = true – for 5 digit platforms, Digit_Switch = false – for standard 4 digit platforms”
+ “\n Spread_Digit_Shift = true / false – Allows the Trader to SHIFT the Spread DECIMAL POINT to allow for spreads of 0.8 to 150”
+ “\n false = DECIMAL POINT shifts 1 point to the LEFT – example 34.0 becomes 3.4 – true = the reverse happens.”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n Chart Position Settings :”
+ “\n Corner_of_Chart_RIGHT_TOP – true = Indicator in TOP RIGHT of Chart – false = Indicator in TOP LEFT of Chart.”
+ “\n Shift_UP_DN – Shifts the Indicator UP & DOWN the chart, To load another Signal Bars BELOW another allow 200.”
+ “\n Adjust_Side_to_side – Shifts the Indicator LEFT & RIGHT, To load another Signal Bars BESIDE each other allow 150.”
+ “\n Sig_Bars_Window – Alows the Indicator to be loaded into separate indicator windows – For example 1 = the 1st Window,”
+ “\n 2 = the 2nd Window 3 = the 3rd Window etc. The indicator windows number from the 1st on the Chart is number 1 etc”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n Adjustable TimeFrames : ”
+ “\n Select any combination of Timeframes between M1 to MONTHLY as required, The Timeframes are set by their numerical value ”
+ “\n M1 = 1 / M5 = 5 / M15 = 15 / M30 = 30 / H1 = 60 / H4 = 240 / DI = 1440 / W1 = 10080 / MN1 = 42300”
+ “\n The Number of TimeFrames can be selected from a Maximum of 6 to a Minimum of 1 Displayed”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n Alert & Sound Settings : ”
+ “\n AlertLevel – This would be typically set to around 60% to 75% and Alerts if the bars are ABOVE the set Percentage ”
+ “\n POPUP_Alert_ON = true turns ON the Alert & false turns OFF the Alert”
+ “\n Sound_Constant_Alert_ON = true turns ON the Alert & false turns OFF the Alert – This Alert sounds a CONSTANT ALERT SOUND ”
+ “\n Sound_Limited_Alert_ON = true turns ON the Alert & false turns OFF the Alert – This Alert sounds every MINUTE”
+ “\n Show_Visual_Alert = true Shows a visual read out of the percentage levels – false turns this function OFF”
+ “\n Alert_Frequency_Minutes = 1 = Default – This setting sets how often the SOUND or POP UP WINDOW Alerts, it can be set to any”
+ “\n TimeFrame number such as 1 / 5 / 15 / 30 / 60 and so on ”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n Comments Settings”
+ “\n Show_Price – true = Price is Displayed false = Price is not Displayed.”
+ “\n Show_Xtra_Details – true = extra details like SPREAD / PIPS to OPEN / Hi to Low & Currency Average are Displayed”
+ “\n Show_Smaller_Size – true = The entire Signal Bars Indicator Displays SMALLER – false = the LARGER size is Displayed”
+ “\n Show_Indicator_Bars – true = Indicator Bars are displayed – false = indicator Bars are removed”
+ “\n Select_Average – This setting allows the user to select a Daily Average of ”
+ “\n 0 / 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 15 / 20 / 25 / 30 / 35 / 40 / 45 / 50 / 60 / 70 / 80 / 90 / 100 Days”
+ “\n NOTE: 0 ( ZERO ) gives the AVERAGE DAILY RANGE of 1 Day + 1 to 5 Days + 1 to 10 days + 1 to 20 Days / 4 ”
+ “\n Which gives an AVERAGE RANGE weighted towards the CURRENT DAY but with an HISTORICAL FILTER.”
+ “\n”
+ “\n The following 12 COLOR Functions allow the user to select colors for DETAILS / PRICE / LABELS & TEXT as required”
+ “\n Show_BrokerTime – true Displays the Broker time – false turns this function OFF”
+ “\n ————————————————————————————————————————————————————————————–“);
}
if (Show_Indicator_Instructions_2 == TRUE) {
Comment(“\n INSTRUCTION MANUAL #2 for Signal Bars Multi-Currency by cja”
+ “\n ————————————————————————————————————————————————————————————”
+ “\n Indicator Settings for the COLORED BARS”
+ “\n”
+ “\n Switch_STR_to_RSI = true / false :”
+ “\n true = switches STR to RSI indicators only – false = STR indicators displayed ”
+ “\n If Switch set to true – set all 3 RSI to the same PERIOD to display only 1 RSI or set the 3 RSI PERIODS”
+ “\n to different PERIODS and monitor 3 RSI at the same time – for example — RSI_Period1 = 5 / RSI_Period2 = 9 / RSI_Period3 = 18”
+ “\n”
+ “\n MACD Settings :”
+ “\n MACD FAST / MACD SLOW / MACD SIGNAL / MACD PRICE can be altered to suit your trading style”
+ “\n MACD Colors – The MACD Colors for LEVELS Above or Below the Zero line and CROSS OVER can be selected here”
+ “\n”
+ “\n STR Settings :”
+ “\n The STR Bars consist of 3 Indicators – each Bar requires all 3 of the indicators to be in agreement before”
+ “\n an UP or DOWN Signal is given – the 3 indicators are RSI / CCI / STOCH – All these indicators are individually adjustable”
+ “\n STR Colors – The Colors for the STR Bars can be selected here for UP / DOWN / NUETRAL ”
+ “\n”
+ “\n MA Settings :”
+ “\n MA Fast / MA Slow / MA Mode / MA Price can all be altered here – Followed by the MA UP / DOWN Color selections”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n Currency Pairs :”
+ “\n Symbol = EURUSD / GBPUSD / EURJPY / GBPJPY / USDJPY / USDCHF / AUSUSD / NZDUSD / USDCAD / EURGBP and you will find other”
+ “\n Currency Pairs under the Symbol tab on your MT4 platform”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n TimeFrames :”
+ “\n M1 = 1 / M5 = 5 / M15 = 15 / M30 = 30 / H1 = 60 / H4 = 240 / D1 = 1440 / W1 = 10080 / MN1 = 42300”
+ “\n ————————————————————————————————————————————————————————————-”
+ “\n MA selections : ”
+ “\n MODE_SMA = 0 = Simple moving average ”
+ “\n MODE_EMA = 1 = Exponential moving average”
+ “\n MODE_SMMA = 2 = Smoothed moving average”
+ “\n MODE_LWMA = 3 = Linear weighted moving average”
+ “\n”
+ “\n PRICE selections”
+ “\n PRICE_CLOSE = 0 = Close price”
+ “\n PRICE_OPEN = 1 = Open price”
+ “\n PRICE_HIGH = 2 = High price”
+ “\n PRICE_LOW = 3 = Low price”
+ “\n PRICE_MEDIAN = 4 = Median price (high+low) / 2”
+ “\n PRICE_TYPICAL = 5 = Typical price (high+low+close) / 3”
+ “\n PRICE_WEIGHTED = 6 = Weighted close price (high+low+close+close) / 4”
+ “\n ————————————————————————————————————————————————————————————-“);
}
return (0);
}
bool BarChanged() {
if (g_datetime_600 != iTime(NULL, Alert_Frequency_Minutes, 0)) {
g_datetime_600 = iTime(NULL, Alert_Frequency_Minutes, 0);
return (TRUE);
}
return (FALSE);
}
相关资源
暂无评论...