попробуй там где:
if(OrderStopLoss()>H_price)
поставить
if(OrderStopLoss()>H_price || OrderStopLoss()==0)
Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
Написал функцию трелинга, для ордеров buy модификацию делает, а вот для sell нет. Не могу разобраться где ошибка !?