double iclose_216 = iClose(NULL, PERIOD_M15, 1);
double ima_224 = iMA(NULL, PERIOD_M15, g_period_336, 0, MODE_SMMA, PRICE_CLOSE, 1);
double iwpr_232 = iWPR(NULL, PERIOD_M15, g_period_344, 1);
double iatr_240 = iATR(NULL, PERIOD_H1, g_period_404, 1);
double ima_248 = iMA(NULL, PERIOD_H1, g_period_400, 0, MODE_EMA, PRICE_CLOSE, 1);
double ld_256 = ima_248 + iatr_240 * gd_408;
double ld_264 = ima_248 - iatr_240 * gd_408;
double iclose_272 = iClose(NULL, PERIOD_M5, 1);
double iatr_280 = iATR(NULL, PERIOD_M5, g_period_520, 1);
double ihigh_288 = iHigh(NULL, PERIOD_H1, 1);
double ilow_296 = iLow(NULL, PERIOD_H1, 1);
double ibands_304 = iBands(NULL, PERIOD_H1, g_period_532, 2, 0, PRICE_CLOSE, MODE_UPPER, 1);
double ibands_312 = iBands(NULL, PERIOD_H1, g_period_532, 2, 0, PRICE_CLOSE, MODE_LOWER, 1);
HideTestIndicators(FALSE);
if (TakeProfit < g_stoplevel_580 * ld_40) TakeProfit = g_stoplevel_580 * ld_40;
if (TakeProfit_II < g_stoplevel_580 * ld_40) TakeProfit_II = g_stoplevel_580 * ld_40;
if (StopLoss < g_stoplevel_580 * ld_40) StopLoss = g_stoplevel_580 * ld_40;
if (StopLoss_II < g_stoplevel_580 * ld_40) StopLoss_II = g_stoplevel_580 * ld_40;
if (TakeProfit_III < g_stoplevel_580 * ld_40) TakeProfit_III = g_stoplevel_580 * ld_40;
if (StopLoss_III < g_stoplevel_580 * ld_40) StopLoss_III = g_stoplevel_580 * ld_40; |