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)
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.
+1 Ответить
Royaxe , the guy is already shared the script above its very simple he use 160 min you can change to higher or lower frame BUT this is not the question here , the strategy as he said is not for real time trade cause its re-painting , looks great for back testing but no use live unless you use it to expect the trend


The results you see are not real, the indicator changes the values of the past bars or histogram so it looks like it works but it doesn't, the past is "repainted" in every tick or 160 min or what ever timeframe he use

Unlike moving average , MAs will not repaint, they are all based on averages of the past, what you see is what they are. No cheating No false indication No fake signal
Ответить
Как же вывел 86 % прибыльных сделок, если сделки выставляются задним числом? Картинка красивая но не более. Или я чего не понял?
Ответить
YaroslavG NIKOOOLAY
Эта стратегия смотрит в будущее правильно поняли, ее использую только для подтверждения тренда на долгосрок.
Ответить
Россия
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Türkiye
Indonesia
Malaysia
日本
한국
Домой Скринер акций Сигналы для Форекс пар Экономический календарь О проекте Особенности Правила поведения Модераторы Для сайтов Виджеты Компонент графиков Приоритетная поддержка Отзывы и предложения Блог и новости ЧаВо Справка и Wiki Твиттер
Профиль Настройки профиля Счёт и оплата Приоритетная поддержка Опубликовано идей Подписчики Подписаны Личные сообщения Чат Выйти