《货币资料 黄金分割 货币强弱.mq4》由会员分享,可在线阅读,更多相关《货币资料 黄金分割 货币强弱.mq4(15页珍藏版)》请在金锄头文库上搜索。
1、#property copyright 开发:阿强 一脉神剑 #property link extern string Comment1 = 货币资料 黄金分割 货币强弱 v8 ;extern string Comment2 = 开发:阿强 一脉神剑 ;extern string Comment3 = QQ:154805 765681593;#property indicator_chart_window#include extern bool Corner_Right_Top = TRUE;extern bool 详细资料_Enabled = TRUE;extern bool K线时间_En
2、abled = TRUE;extern bool 黄金分割_Enabled = TRUE;extern bool 货币强弱_Enabled = TRUE;extern bool 货币强弱_On_Right = TRUE;color Label_Color = SkyBlue;bool gi_108;int gia_11218;int gia_11618;int gia_12018;int gia_1248;int gia_1288;int gia_1329 = 4, 10, 25, 40, 50, 60, 75, 90, 97;string gsa_1368 = NZD, CAD, CHF,
3、AUD, JPY, USD, GBP, EUR;string gsa_14018 = EURUSD, GBPUSD, AUDUSD, USDJPY, USDCHF, USDCAD, EURJPY, EURGBP, EURCHF, EURAUD, GBPJPY, GBPCHF, CADJPY, EURCAD, AUDCAD, AUDJPY, AUDNZD, NZDUSD;int gia_14410 = 10495, 20735, 30975, 41215, 48895, 46280, 51350, 56420, 61490, 65280;extern bool 昨天价值_Enabled = TR
4、UE;bool gi_100 = FALSE;bool gi_104 = FALSE;extern int Corner_lower_right = 3;extern int 移动上下 = 10;extern int 移动左右 = 15;extern int iFrame = 1440;extern int 昨天价值_Shift = 100;extern color 开盘最高最低_color1 = SkyBlue;extern color 开盘最高最低_color2 = Orange;extern color 开盘涨跌_color1 = Lime;extern color 开盘涨跌_color
5、2 = Red;extern color 统计_color1 = WhiteSmoke;extern color 统计_color2 = Yellow;extern color 平均_color1 = Orange;extern color 平均_color2 = Lime;extern color 点差_color1 = SkyBlue;extern color 点差_color2 = Gold;extern color Current_Price_color = Orange;extern color K线时间_color = Yellow;extern color cPivot = Ye
6、llow;extern color cRS1 = Green;extern color cRS2 = Green;extern color cRS3 = Red;int g_datetime_152;string gsa_160 = GBPJPY;string gsa_164 = EURUSD, GBPUSD, AUDUSD, USDJPY, USDCHF, USDCAD, EURJPY, EURGBP, EURCHF, EURAUD, GBPJPY, GBPCHF, CADJPY, EURCAD, AUDCAD, AUDJPY, AUDNZD, NZDUSD;string gsa_168 =
7、 USD, EUR, GBP, CHF, CAD, AUD, JPY, NZD;int gia_172 = 115, 100, 85, 70, 55, 40, 25, 10;int gi_184;int gi_188;double gda_192;double gda_196;double gda_200;double gda_204;double gda_208;double gda_212;double gda_216;double gda_220;double gda_224;int gia_2282;int init() gi_184 = ArrayRange(gsa_164, 0);
8、gi_188 = ArrayRange(gsa_168, 0);int li_8 = ArrayRange(gia_172, 0);if (gi_188 != li_8) Print(The size of array aMajor is not equals to aMajorPos);ArrayResize(gda_192, gi_188);ArrayResize(gda_196, gi_184);ArrayResize(gda_200, gi_184);ArrayResize(gda_204, gi_184);ArrayResize(gda_208, gi_184);ArrayResiz
9、e(gda_212, gi_184);ArrayResize(gda_216, gi_184);ArrayResize(gda_220, gi_184);ArrayResize(gda_224, gi_184);gi_108 = TRUE; return (0);int deinit() ObjectDelete(P LINE);ObjectDelete(R1 LINE);ObjectDelete(R2 LINE);ObjectDelete(R3 LINE);ObjectDelete(S1 LINE);ObjectDelete(S2 LINE);ObjectDelete(S3 LINE);Ob
10、jectDelete(PIVOTTEXT);ObjectDelete(R1TEXT);ObjectDelete(R1TEXT);ObjectDelete(R3TEXT);ObjectDelete(S1TEXT);ObjectDelete(S2TEXT); ObjectDelete(S3TEXT);ObjectsDeleteAll(0, OBJ_LABEL);Print(shutdown error - , ErrorDescription(GetLastError();ObjectsDeleteAll(0, OBJ_TEXT);/ ObjectsDeleteAll();return (0);i
11、nt start() PriceMeter();if (gi_108) gi_108 = FALSE;int li_unused_176;int li_180;string ls_unused_272;color l_color_304;color l_color_308;int l_ind_counted_0 = IndicatorCounted();int l_timeframe_4 = 0;double ld_8 = 0;double ld_16 = 0;double ld_24 = 0;double ld_32 = 0;double l_price_40 = 0;double l_pr
12、ice_48 = 0;double l_price_56 = 0;double l_price_64 = 0;double l_price_72 = 0;double l_price_80 = 0;double l_price_88 = 0;double l_iopen_96 = iOpen(NULL, PERIOD_D1, 0);double l_iclose_104 = iClose(NULL, PERIOD_D1, 0);double ld_112 = (Ask - Bid) / Point;double l_ihigh_120 = iHigh(NULL, PERIOD_D1, 0);d
13、ouble l_ilow_128 = iLow(NULL, PERIOD_D1, 0);if (gi_100) ld_8 = High1;ld_16 = Low1;ld_24 = Close1;ld_32 = Open0; else switch (iFrame) case 1:l_timeframe_4 = 1;break;case 5:l_timeframe_4 = 5;break;case 15:l_timeframe_4 = 15;break;case 30:l_timeframe_4 = 30; break;case 60:l_timeframe_4 = 60;break;case
14、240:l_timeframe_4 = 240;break;case 1440:l_timeframe_4 = 1440;break;case 10080:l_timeframe_4 = 10080;break;case 43200:l_timeframe_4 = 43200;break;default:l_timeframe_4 = 1440;ld_8 = iHigh(NULL, l_timeframe_4, 1);ld_16 = iLow(NULL, l_timeframe_4, 1);ld_24 = iClose(NULL, l_timeframe_4, 1);ld_32 = iOpen
15、(NULL, l_timeframe_4, 0);l_price_40 = (ld_8 + ld_16 + ld_24) / 3.0;l_price_72 = 2.0 * l_price_40 - ld_16;l_price_48 = 2.0 * l_price_40 - ld_8;l_price_80 = l_price_40 + (l_price_72 - l_price_48);l_price_56 = l_price_40 - (l_price_72 - l_price_48);l_price_88 = ld_8 + 2.0 * (l_price_40 - ld_16);l_price_64 = ld_16 - 2.0 * (ld_8 - l_price_40);int li_148 = Time0 + 60 * Period() - TimeCurrent();double ld_140 = li_148 / 60.0;int li_152 = li_148 % 60;li_148 = (li_148 - li_148 % 60) / 60;ObjectDelete