YaroslavG

GetTrendStrategy

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
//@version=2
strategy("GetTrendStrategy", overlay=true)
tim=input('160')
out1 = security(tickerid, tim, open)
out2 = security(tickerid, tim, close)
plot(out1,color=red)
plot(out2,color=green)
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)
Can't the repaint be fixed?
Ответить
careful , it could repaint the strategies every time that you open it
Ответить
It doesn't work at 1 day.
Ответить
Working on indicator, please inbox me to make this indicator better.
Ответить
How the out1 and out2 is plotted, what is Tim?.
Ответить
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
thanks,
Ответить
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!
+1 Ответить
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.
Ответить
Could you please explain the logic/Philosophy behind this strategy????? It would be greatly appreciated. Thank you.
+2 Ответить
Россия
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
Домой Скринер акций Сигналы для Форекс пар Сигналы для криптовалют Экономический календарь О проекте Особенности Правила поведения Модераторы Решения для сайтов и брокеров Виджеты Компонент графиков Отзывы и предложения Блог и новости ЧаВо Справка и Wiki Твиттер
Профиль Настройки профиля Счёт и оплата Мои запросы в поддержку Приоритетная поддержка Связаться с поддержкой Опубликовано идей Подписчики Подписки Личные сообщения Чат Выйти