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)
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.
Reply
repainting all the time. fake strategy
+17 Reply
open me access brother
+1 Reply
WHAT IS THE BASIC BEHIND THIS YARO ??

IS IT A MOVING AVERAGE CROSSOVERS ??
+5 Reply
How to set alarm for the signal of this indicator?
+14 Reply
Can't the repaint be fixed?
+20 Reply
@paulade, Is there a solution?
+5 Reply
careful , it could repaint the strategies every time that you open it
+3 Reply
It doesn't work at 1 day.
Reply
Working on indicator, please inbox me to make this indicator better.
+3 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 Get Help Ideas Published Followers Following Private Messages Chat Sign Out