Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь
выложите код со своими правками -- поясните какие правки делали -- посмотрим.
если есть интерес сделать самому -- то шансы разобраться есть.
Удалены все данные о "скользящей средней" и "сигнальной линии MACD", все которые смог найти.
В данном месте, вместо значения "0", была указана средняя линия. Везде заменил на значение "0", при продаже, и при закрытии следок.
Удалены все данные о "скользящей средней" и "сигнальной линии MACD", все которые смог найти.
В данном месте, вместо значения "0", была указана средняя линия. Везде заменил на значение "0", при продаже, и при закрытии следок.
на примере лонг:
-- какую роль играет выделенное условие?
Вот что у меня после коррекции выше выделенного (небольшие комментарии по особенностям открытий):
на примере лонг:
-- какую роль играет выделенное условие?
MathAbs(m_macd_current)>m_macd_open_level - текущее значение главной линии индикатора MACD по модулю
MathAbs(m_macd_current)>m_macd_open_level - текущее значение главной линии индикатора MACD по модулю
да, только как раз это условие надо или удалить или правильно настроить -- выше картинка отработки советника с удалённым этим условием
да, только как раз это условие надо или удалить или правильно настроить -- выше картинка отработки советника с удалённым этим условием
условие не менял, но изменил другие значения.
OpenLevel и Closelevel изменил на 0, если я правильно понял, то это и есть одно из условий открытия позиции.
И отключил Takeprofit и Stoploss.
Открытие позиции происходит через пересечение "0", но почему-то через 10 пипсов сделка закрывается. И желательно чтоб сделка открывалась, после второго бара, так как первый бар не сформирован, и бывает ложный вход.
Еще выставил, чтоб сделка совершалась не раньше чем через 60 секунд, стоит 10, и он каждые 10 секунд, на протяжении минуты производит покупку или продажу, т.е. за минуту 6 сделок. Выставляешь 1 лот, за минуту происходит покупка 6 лотов или продажа, в зависимости куда пересечена линия "0".
Частично разобрался, выставил TakeProfit на 10000, и он начал нормально переворачиваться, но некоторые сделки пропускает. Надо еще добавить функцию, чтоб переворот происходил по второму бару, ложные сделки получаются, и вероятнее из-за этого пропуск сделок.
Если TakeProfit выставить на нужное количество, например на "RTS" 100 пунктов, он закрывает сделку по TP, и открывает новую, когда индикатор пересекает "0". Тестировал на минутках, так как сигналов много.