Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature currently requires accessing the site using the built-in Safari browser.
void isTP()
{
double MA = iMA(тут задаем параметры индикатора);
if (Ask > MA) CloseOrder(OP_BUY);
//если цена Аск выше МА, то вызываем функцию закрытия ордера на покупку
if (Bid < MA) CloseOrder(OP_SELL);
//если цена Бид ниже МА, то вызываем функцию закрытия ордера на продажу
return;
}