YaroslavG

GetTrendStrategy

‎27176‎ مشاهدة
5289
27176 57
A simple strategy is to determine the trend. Do not use it for real-time transactions. Use it as a Reaffirmation trade entry.
إزالة من البرامج النصية المفضلة أضف إلى البرامج النصية المفضلة
//@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)
This method is trash. The secrety function has a big problem.
Look at the green line. It receive future prices and go down or up ahead of time. If you just run the chart for a few hours. The winning rate is collected at 0%.
رد
soultrain23 soultrain23
@soultrain23, big kinda trash
رد
soultrain23 soultrain23
@soultrain23, Totally embarrassing that people don't recognize this such a shiiitt. The author only wants likes to feels self-esteem, but he can't fool my ass.
رد
what does this script mean
رد
How can this be used for reaffirmation trade entry? I just tested it a bit with Tim input 7 and it created a lot more signals than when I reload the indicator. Also the trades were mostly failed ones. So even when not trading this strategy live, what is it good for when, when it runs, it jumps around and is uncertaing what to show up.
+4 رد
Canundo Canundo
@Canundo, I let it run around a day with setting 20 candles on 5 min. A lot of negative trades. Too bad one can't run a strategy without the backtest to get real results overview. It would be way worse though. However, it depends on the volatility. The higher the better for the strategy.
Only thing behind is this security TIM. I'm not sure what it is. I searched for it and there is a TIM as well but it doesn't really look related. Also it wouldn't explain why the backtest creates clean and profitable trades while it stumbles around when going live. It looks like the security is repainted, but then again it also looks like a normal behaviour of tradingview.
Quite confusing. Not sure if something can be done with it.
رد
Canundo Canundo
@Canundo, ok, learned a bit more about this. "tim" is just a variable containing the number 160. The security part only says that it takes 160 minute candles from tickerid, so it's the same stock you show in the chart, just the prices for 160 min candles.
The difference when using it live comes from tradingview itself, how it creates these 160 min candles. That's why it's jumpy.
Not sure of the value at all. If the trend is clear and unbroken it might work somewhat, when it's ranging it is dangerous. So somewhat similar to crossing averages.
رد
а можете сделать на него оповещение
+2 رد
Wolfram_ BigCryptoMan111
@BigCryptoMan111, it's a fake strategy, repaints. Alerts gives you nothing.
How do you write in Russian? I see a message that only English is allowed.
رد
Thanx for your strategy. I was using a similar strategy but gave on 65% probability. you strategy is simple but with a very high probability.
+2 رد
الصفحة الرئيسية منصة الأسهم منصًة العملات منصّة العملات الرقمية جدول الأعمال الاقتصادي كيف نعمل مميزات الرسم البياني أسعار العضوية قوانين الموقع المشرفون حلول المواقع الإلكترونية والوسطاء الأدوات حلول الرسوم البيانية احصل على المساعدة طلب الخصائص المدوّنة والأخبار الأسئلة الأكثر شيوعًا معرفة تويتر
الملف الشخصي إعدادات الصفحة الشخصية الحساب وإعداد الفواتير احصل على المساعدة أفكاري المنشورة المتابعين تتابع رسالة خاصة المحادثة تسجيل الخروج