谁能帮我解析这段代码,谢谢

楼主  收藏   举报   帖子创建时间:  2019-05-05 15:14 回复:0 关注量:638
int start() {
     double ld_360;
     double ld_368;
     double l_lots_376;
     int l_ord_total_388;
     int l_count_392;
     int l_ord_total_396;
     double ld_0 = FractalEfficiency(AccountNumber(), VerificationCode, 1, iRSI(Symbol(), 0, 14, PRICE_CLOSE, 0));
     double ld_8 = FractalEfficiency(AccountNumber(), VerificationCode, 2, iRSI(Symbol(), 0, 21, PRICE_CLOSE, 0));
     double ld_16 = FractalEfficiency(AccountNumber(), VerificationCode, 3, iRSI(Symbol(), 0, 7, PRICE_CLOSE, 0));
     double ld_24 = FractalEfficiency(AccountNumber(), VerificationCode, 4, iRSI(Symbol(), 0, 1, PRICE_CLOSE, 0));
     double ld_32 = FractalEfficiency(AccountNumber(), VerificationCode, 5, iRSI(Symbol(), 0, 50, PRICE_CLOSE, 0));
     double ld_40 = FractalEfficiency(AccountNumber(), VerificationCode, 6, iRSI(Symbol(), 0, 28, PRICE_CLOSE, 0));
     double ld_48 = FractalEfficiency(AccountNumber(), VerificationCode, 7, iRSI(Symbol(), 0, 42, PRICE_CLOSE, 0));
     int l_timeframe_56 = AdvancedForecast(AccountNumber(), VerificationCode, Close[0] - Close[1], 1);
     int l_period_60 = AdvancedForecast(AccountNumber(), VerificationCode, Close[0] - Close[1], 2);
     int l_timeframe_64 = AdvancedForecast(AccountNumber(), VerificationCode, High[1] - High[0], 3);
     int l_period_68 = AdvancedForecast(AccountNumber(), VerificationCode, High[1] - High[0], 4);
     int l_timeframe_72 = AdvancedForecast(AccountNumber(), VerificationCode, Low[2] - Low[1], 5);
     int l_period_76 = AdvancedForecast(AccountNumber(), VerificationCode, Low[2] - Low[1], 6);
     int l_timeframe_80 = AdvancedForecast(AccountNumber(), VerificationCode, Open[0] - Open[2], 7);
     int l_period_84 = AdvancedForecast(AccountNumber(), VerificationCode, Open[0] - Open[2], 8);
     int l_timeframe_88 = AdvancedForecast(AccountNumber(), VerificationCode, Open[0] - Open[1], 9);
     int l_period_92 = AdvancedForecast(AccountNumber(), VerificationCode, Open[0] - Open[1], 10);
     int l_timeframe_96 = AdvancedForecast(AccountNumber(), VerificationCode, Low[0] - Low[1], 11);
     int l_period_100 = AdvancedForecast(AccountNumber(), VerificationCode, Low[0] - Low[1], 12);
     int l_timeframe_104 = AdvancedForecast(AccountNumber(), VerificationCode, High[0] - High[14], 13);
     int l_period_108 = AdvancedForecast(AccountNumber(), VerificationCode, High[0] - High[14], 14);
     int li_112 = AdvancedForecast(AccountNumber(), VerificationCode, High[0] - High[14], 15);
     int li_116 = AdvancedForecast(AccountNumber(), VerificationCode, High[0] - High[14], 16);
     int li_120 = AdvancedForecast(AccountNumber(), VerificationCode, Low[0] - Low[14], 13);
     int li_124 = AdvancedForecast(AccountNumber(), VerificationCode, Low[0] - Low[14], 14);
     int li_128 = AdvancedForecast(AccountNumber(), VerificationCode, Low[0] - Low[14], 15);
     int li_132 = AdvancedForecast(AccountNumber(), VerificationCode, Low[0] - Low[14], 16);
     int l_timeframe_136 = AdvancedForecast(AccountNumber(), VerificationCode, Close[1] - Close[14], 17);
     int l_period_140 = AdvancedForecast(AccountNumber(), VerificationCode, Close[1] - Close[14], 18);
     int li_144 = AdvancedForecast(AccountNumber(), VerificationCode, Close[1] - Close[14], 19);
     int l_timeframe_148 = AdvancedForecast(AccountNumber(), VerificationCode, Volume[1] - Volume[14], 17);
     int l_period_152 = AdvancedForecast(AccountNumber(), VerificationCode, Volume[1] - Volume[14], 18);
     int li_156 = AdvancedForecast(AccountNumber(), VerificationCode, Volume[1] - Volume[14], 19);
     int l_timeframe_160 = AdvancedForecast(AccountNumber(), VerificationCode, Open[1] - Open[14], 20);
     int l_period_164 = AdvancedForecast(AccountNumber(), VerificationCode, Open[1] - Open[14], 21);
     int l_timeframe_168 = AdvancedForecast(AccountNumber(), VerificationCode, High[1] - High[14], 22);
     int l_period_172 = AdvancedForecast(AccountNumber(), VerificationCode, High[1] - High[14], 23);
     int li_176 = AdvancedForecast(AccountNumber(), VerificationCode, High[1] - High[14], 24);
     int l_timeframe_180 = AdvancedForecast(AccountNumber(), VerificationCode, Low[1] - Low[14], 22);
     int l_period_184 = AdvancedForecast(AccountNumber(), VerificationCode, Low[1] - Low[14], 23);
     int li_188 = AdvancedForecast(AccountNumber(), VerificationCode, Low[1] - Low[14], 24);
     int l_timeframe_192 = AdvancedForecast(AccountNumber(), VerificationCode, Low[1] - Low[7], 25);
     int l_period_196 = AdvancedForecast(AccountNumber(), VerificationCode, Low[1] - Low[7], 26);
     int li_200 = AdvancedForecast(AccountNumber(), VerificationCode, Low[1] - Low[7], 27);
     double l_irsi_204 = iRSI(NULL, l_timeframe_56, l_period_60, PRICE_CLOSE, 0);
     double l_irsi_212 = iRSI(NULL, l_timeframe_64, l_period_68, PRICE_CLOSE, 0);
     double l_icci_220 = iCCI(Symbol(), l_timeframe_72, l_period_76, PRICE_CLOSE, 0);
     double l_icci_228 = iCCI(Symbol(), l_timeframe_80, l_period_84, PRICE_CLOSE, 0);
     double l_icci_236 = iCCI(Symbol(), l_timeframe_88, l_period_92, PRICE_CLOSE, 0);
     double l_icci_244 = iCCI(Symbol(), l_timeframe_96, l_period_100, PRICE_CLOSE, 0);
     double l_ibands_252 = iBands(Symbol(), l_timeframe_104, l_period_108, li_112, li_116, PRICE_WEIGHTED, MODE_UPPER, 1);
     double l_ibands_260 = iBands(Symbol(), l_timeframe_104, l_period_108, li_112, li_116, PRICE_WEIGHTED, MODE_LOWER, 1);
     double ld_268 = NormalizeDouble(iMA(NULL, l_timeframe_136, l_period_140, li_144, MODE_SMA, PRICE_WEIGHTED, 1), 4);
     double ld_276 = NormalizeDouble(iMA(NULL, l_timeframe_148, l_period_152, li_156, MODE_SMA, PRICE_WEIGHTED, 1), 4);
     double l_imomentum_284 = iMomentum(Symbol(), l_timeframe_160, l_period_164, PRICE_CLOSE, 0);
     double l_ima_292 = iMA(Symbol(), l_timeframe_168, l_period_172, li_176, MODE_EMA, PRICE_HIGH, 0);
     double l_ima_300 = iMA(Symbol(), l_timeframe_180, l_period_184, li_188, MODE_EMA, PRICE_LOW, 0);
     double l_iwpr_308 = iWPR(Symbol(), l_timeframe_192, l_period_196, li_200);
     gi_392 = Activate(AccountNumber(), VerificationCode);
     if (IsExpertEnabled() == FALSE) {
        alert("Please allow expert advisors");
        Sleep(4000);
        return (0);
     }
     if (Period() != PERIOD_M15) {
        alert("Please attach the EA to the M15 Timeframe");
        Sleep(4000);
        return (0);
     }
     gi_396 = GetState(gi_392, AccountNumber());
     if (gi_396 == 1) gs_376 = "Authenticated";
     else {
        if (gi_396 == 2) {
           gs_376 = "Not Authenticated";
           return (0);
        }
打赏