仕事が完了した
指定
Нужно сделать индикатор на основе стандартного индикатора Зиг Заг который состоит из четырёх условий.
Условие 1: Индикатор измеряет длину (D) каждой волны зигзага в пипсах и среднюю скорость average speed (V) ее образования в пипсах за минуту. И рядом с каждой линией зигзага пишет эти два параметра :
Пример:
D = 40 p
V = 15 p/min
В Настройках я могу задать значения нужные мне D и V и если индикатор обнаружит волну где D больше или равно моему значению + V больше или равно моему значению то такая волна Зигзага 0-1 выделяется более Толстой линией и цветом.
Условие 2 , когда после выполнения первого условия цена возвращается в диапазон между 25% и 35% от высоты импульса и отскакивает от области не пробивая ее. Индикатор подписывает эту область на графике в % , рисует ее границы пунктиром. Так же выделяет волны зиг зага 0-1-2 более Толстой линией и цветом.
Условие 3, когда после выполнения условий 1 и 2 цена возвращается в диапазон на уровне точки 1 не превышая Х пипсов. Диапазон тк же выделяет и подписывает. Так же выделяет волны зиг зага 0-1-2-3 более Толстой линией и цветом.
Условие 4, когда после выполнения условий 1,2 и 3 цена возвращается в диапазон т 2. Так же выделяет волны зиг зага 0-1-2-3-4 более Толстой линией и цветом.
Индикатор в итоге может выполнять любое из этих условий и на каждой точке выдавать Алерт (выбираем в настройках)
Так же должна быть возможность на тестере подбирать оптимальные параметры при которых на истории чаще всего выполняется любое из условий 1,2,3,или 4