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)
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%.
Reply
soultrain23 soultrain23
@soultrain23, big kinda trash
Reply
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.
Reply
what does this script mean
Reply
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 Reply
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.
+1 Reply
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.
Reply
а можете сделать на него оповещение
+2 Reply
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.
Reply
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 Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Get Help Ideas Published Followers Following Private Messages Chat Sign Out