# GetTrendStrategy

24593 lượt xem
24593
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)```
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.
Phản hồi
repainting all the time. fake strategy
Phản hồi
open me access brother
Phản hồi
WHAT IS THE BASIC BEHIND THIS YARO ??

IS IT A MOVING AVERAGE CROSSOVERS ??
Phản hồi
How to set alarm for the signal of this indicator?
Phản hồi
Can't the repaint be fixed?
Phản hồi