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)
BTCTTM
год назад
Отличная стратегия!
Ответить
Elk BTCTTM
год назад
Я так не думаю. Это обман. Стратегия смотрит в будущее, как закроется день, и задним числом открывает сделку.
Ответить
YaroslavG Elk
год назад
Это не обман, это стратегия, для подтверждения тренда. Написано же в описании
Ответить
tradersf
год назад
I Like It! Why do you say not to use it for real-time transactions?
Ответить
YaroslavG tradersf
год назад
I think so. Do you think differently?
+1 Ответить
tradersf
год назад
I've noticed it changes on a live chart. ( sometimes a short signal is there and then gone ) Why is this? I like it a lot but find it hard to trade with because it changes sometimes from buy to sell.
Can you help with a way to trade using it. Thanks
Ответить
YaroslavG tradersf
год назад
I say it: Use it as a Reaffirmation trade entry
Ответить
tradersf YaroslavG
год назад
ok
Ответить
kudostop PRO tradersf
4 месяца назад
me too seen this when tested it for month
Ответить
NZT PRO
год назад
it's easy to trade knowing the future :-D
Ответить
YaroslavG NZT
год назад
yeah))
Ответить
windwine PRO YaroslavG
год назад
I noticed that it was taking the order at the open of the action bar. But when I am checking other published scripts they are showing entry at the open of next bar while using the
if (long condition) strategy.entry("long",strategy.long) logic. I am new to TV so can you help me understand what was driving the differences in the orders? Thanks.
+1 Ответить
windwine PRO windwine
год назад
Sorry for the dumb question, I get the wrong #:-) THX.
Ответить
gianfranco60
год назад
I think that it is a good strategy for trading options
Ответить
shinobiglobal
11 месяцев назад
do you happen to have this for MT4 in Python? Really good stuff...would love to implement. Thanks.
Ответить
dheerajsood PRO shinobiglobal
9 месяцев назад
Hello Yaroslav ,
Good Work There , Could you be kind enough to explain what is it based on and how does it work?
Thanks
Ответить
ucsgears PRO
9 месяцев назад
Great Manipulation Job. Thanks to that person brought this to my attention.

This is not realistic !!!
Ответить
YaroslavG ucsgears
9 месяцев назад
Thank you brother!
Ответить
nvcworld YaroslavG
9 месяцев назад
hi sir
Ответить
nvcworld nvcworld
9 месяцев назад
i need yours help in pine code , please help me
Ответить
YaroslavG nvcworld
9 месяцев назад
Привет)
Ответить
gorba4ew.sergei
9 месяцев назад
привет ты где торгуешь по этой стратегии???
Ответить
TradeWithConfidence
8 месяцев назад
It's great strategy, but like all prediction systems. There not always reliable. I already added alerts, I'm just trying to fix the issue with the repainting. Maybe by extending the lines further apart it will work better, without occurring faulty trades. If anyone knows how to do it, please inform me. Thank you.
+2 Ответить
lubosdesk TradeWithConfidence
8 месяцев назад
hi Kevin. did u use it with real account? is it worth it?
Ответить
sd2020 TradeWithConfidence
6 месяцев назад
Increase count
Ответить
NIKOOOLAY
8 месяцев назад
Как же вывел 86 % прибыльных сделок, если сделки выставляются задним числом? Картинка красивая но не более. Или я чего не понял?
Ответить
YaroslavG NIKOOOLAY
4 месяца назад
Эта стратегия смотрит в будущее правильно поняли, ее использую только для подтверждения тренда на долгосрок.
Ответить
RoyAxe
6 месяцев назад
Could you please explain the logic/Philosophy behind this strategy????? It would be greatly appreciated. Thank you.
Ответить
kudostop PRO RoyAxe
4 месяца назад
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
Ответить
mo_trade
4 месяца назад
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 Ответить
outspokenmarket PRO mo_trade
4 месяца назад
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.
Ответить
mmfinshare
3 месяца назад
can you give me on amibroker your code my email is mmfinshare@gmail.com
thanks,
Ответить
francisbortolon PRO
один месяц назад
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!
Ответить
Vinoth
20 дней назад
How the out1 and out2 is plotted, what is Tim?.
Ответить
Идеи Скрипты Графики
Россия
United States
United Kingdom
India
España
Italia
Brasil
Türkiye
日本
한국
Домой Скринер акций Экономический календарь О проекте Особенности Правила поведения Модераторы Для сайтов Виджеты Компонент графиков Приоритетная поддержка Предложения Блог и новости ЧаВо Справка и Wiki Твиттер
Личные сообщения Чат Опубликовано идей Мои читатели Читаю Приоритетная поддержка Публичный профиль Настройки профиля Оплата Выйти