double ATR_TP()
{
double ATR_EURUSD = iATR("EURUSD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_EURJPY = (iATR("EURJPY"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR))/100;
double ATR_EURGBP = iATR("EURGBP"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_EURCHF = iATR("EURCHF"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_EURCAD = iATR("EURCAD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_EURAUD = iATR("EURAUD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_EURNZD = iATR("EURNZD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_GBPUSD = iATR("GBPUSD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_GBPJPY = (iATR("GBPJPY"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR))/100;
double ATR_GBPCHF = iATR("GBPCHF"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_GBPCAD = iATR("GBPCAD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_GBPAUD = iATR("GBPAUD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_GBPNZD = iATR("GBPNZD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_AUDUSD = iATR("AUDUSD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_AUDJPY = (iATR("AUDJPY"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR))/100;
double ATR_AUDCHF = iATR("AUDCHF"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_AUDCAD = iATR("AUDCAD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_AUDNZD = iATR("AUDNZD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_NZDUSD = iATR("NZDUSD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_NZDJPY = (iATR("NZDJPY"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR))/100;
double ATR_NZDCHF = iATR("NZDCHF"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_NZDCAD = iATR("NZDCAD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_USDJPY = (iATR("USDJPY"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR))/100;
double ATR_USDCHF = iATR("USDCHF"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_USDCAD = iATR("USDCAD"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_CADCHF = iATR("CADCHF"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR);
double ATR_CADJPY = (iATR("CADJPY"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR))/100;
double ATR_CHFJPY = (iATR("CHFJPY"+dop_symb,TF_ATR,ATR_period,Bar_shift_ATR))/100;
double ATR_all = (ATR_EURUSD+ATR_EURJPY+ATR_EURGBP+ATR_EURCHF+ATR_EURCAD+ATR_EURAUD+ATR_EURNZD+
ATR_GBPUSD+ATR_GBPJPY+ATR_GBPCHF+ATR_GBPCAD+ATR_GBPAUD+ATR_GBPNZD+
ATR_AUDUSD+ATR_AUDJPY+ATR_AUDCHF+ATR_AUDCAD+ATR_AUDNZD+
ATR_NZDUSD+ATR_NZDJPY+ATR_NZDCHF+ATR_NZDCAD+
ATR_USDJPY+ATR_USDCHF+ATR_USDCAD+
ATR_CADCHF+ATR_CADJPY+
ATR_CHFJPY)/28;
double pre_koef_ATR=koef_ATR;
pre_koef_ATR*=10;
double Lot_koef_ATR=Lot*pre_koef_ATR;
return(ATR_all/0.0001*Lot_koef_ATR);
}