A simple strategy is to determine the trend. Do not use it for real-time transactions. Use it as a Reaffirmation trade entry.
Remove from Favorite Scripts Add to Favorite Scripts
strategy("GetTrendStrategy", overlay=true)
out1 = security(tickerid, tim, open)
out2 = security(tickerid, tim, close)
longCondition = crossover(security(tickerid, tim, close),security(tickerid, tim, open))
if (longCondition)
    strategy.entry("long", strategy.long)
shortCondition = crossunder(security(tickerid, tim, close),security(tickerid, tim, open))
if (shortCondition)
    strategy.entry("short", strategy.short)
How to set alarm for the signal of this indicator?
Can't the repaint be fixed?
+11 Ответить
careful , it could repaint the strategies every time that you open it
+2 Ответить
It doesn't work at 1 day.
Working on indicator, please inbox me to make this indicator better.
+2 Ответить
How the out1 and out2 is plotted, what is Tim?.
+4 Ответить
very fine indicator, good work! did anyone manage to add an alert on long/short signal on this one, if yes, can you please share? Thanks!
can you give me on amibroker your code my email is mmfinshare@gmail.com
Hi.. Great work. But when i change the duration to 1 min.. it doesnt show the signal that often. Could you help me with this. Thanks!
+2 Ответить
Hi. To generate more signals when working with short time frames, you should reduce the number into the "tim" variable. tim=input('160') In this sample, the number 160 means 160 minutes. So, it will look to 160 minutes ahead to determine the trend. For 1 minute chart, try something like 15 or maybe 30.

It is a repainting if the trend is not confirmed (as this is looking ahead for a confirmation). I mean it still works because when you have an entry signal, you can entry and place a stop loss.
RU Русский
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Домой Скринер акций Скринер Форекс Скринер криптовалют Экономический календарь О проекте Особенности Правила поведения Модераторы Решения для сайтов и брокеров Виджеты Компонент графиков Отзывы и предложения Блог и новости ЧаВо Справка и Wiki Твиттер
Профиль Настройки профиля Счёт и оплата Мои запросы в поддержку Связаться с поддержкой Опубликовано идей Подписчики Подписан Личные сообщения Чат Выйти