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.
즐겨찾기 스크립트에서 빼기 즐겨찾기 스크립트에 넣기
//@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)
hey this is great! ty
응답
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%.
+6 응답
soultrain23 soultrain23
@soultrain23, big kinda trash
+2 응답
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
+2 응답
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.
+6 응답
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 응답
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.
응답
홈으로 스탁 스크리너 포렉스 스크리너 크립토 스크리너 이코노믹 캘린더 사용안내 차트 특징 프라이싱 하우스룰(내부규정) 모더레이터 웹사이트 & 브로커 솔루션 위젯 차팅 솔루션 라이트웨이트 차팅 라이브러리 헬프 센터 프렌드 리퍼하기 기능 개발/개선 요청 블로그 & 뉴스 잦은물음 위키 트위터
프로화일 프로화일설정 계정 및 빌링 프렌드 리퍼하기 나의 서포트 티켓 헬프 센터 공개아이디어 팔로어 팔로잉 비밀메시지 채팅 로그아웃