Хочу заметить что входы разняться, хотя индикаторы на визуале вроде одинаковые... Прогресс входит более точно...
вот его код индикаторов:
if (EachTickMode) {
gd_464 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_OPEN, MODE_MAIN, 0);
gd_472 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_CLOSE, MODE_MAIN, 1);
gd_480 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_CLOSE, MODE_SIGNAL, 1);
gd_488 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_CLOSE, MODE_MAIN, 2);
gd_496 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_CLOSE, MODE_SIGNAL, 2);
} else {
gd_464 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_OPEN, MODE_MAIN, 1);
gd_472 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_CLOSE, MODE_MAIN, 2);
gd_480 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_CLOSE, MODE_SIGNAL, 2);
gd_488 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_CLOSE, MODE_MAIN, 3);
gd_496 = iMACD(NULL, 0, gi_348, gi_352, gi_356, PRICE_CLOSE, MODE_SIGNAL, 3);
}
if (MACD_Signal(li_0, li_4, gd_464, gd_472, gd_480, gd_488, gd_496) == 3) {
Print(MACD_Signal(li_0, li_4, gd_464, gd_472, gd_480, gd_488, gd_496));
Comment(" Expert key is not activate");
return (0);
и вот ао-тренда:
int signal()
{
double Buy1_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_OPEN, MODE_MAIN, Current + 0);
double Buy1_2 = 0;
double Buy2_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, Current + 2);
double Buy2_2 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 2);
double Buy3_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, Current + 1);
double Buy3_2 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 1);
double Sell1_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_OPEN, MODE_MAIN, Current + 0);
double Sell1_2 = 0;
double Sell2_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, Current + 2);
double Sell2_2 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 2);
double Sell3_1 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_MAIN, Current + 1);
double Sell3_2 = iMACD(NULL, 0, 12, 26, 9, PRICE_CLOSE, MODE_SIGNAL, Current + 1);
if (Buy1_1 < Buy1_2 && Buy2_1 < Buy2_2 && Buy3_1 > Buy3_2) return(buy);
if (Sell1_1 > Sell1_2 && Sell2_1 > Sell2_2 && Sell3_1 < Sell3_2) return(sell);
}
return(0);
в чём разница, кто то может пояснить?
Спасибо.