adrian.tan.7568596

Active trader turtles strategy modified

969 0 80
Enter when price break 55 days high and exit when price break 20 days low
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
//coded by tmr0
//original idea from «Way of the Turtle: The Secret Methods that Turned Ordinary People into Legendary Traders» (2007) CURTIS FAITH
strategy("Turtles strategy modified", shorttitle = "Turtles", overlay=true, pyramiding=5, default_qty_type= strategy.cash, default_qty_value = 1000)

enter = input(55, minval=1)
exit = input(20, minval=1)
year_from = input(2009, minval=2000)
year_before = input(2014, minval=2000)

slowL = highest(enter)
slowLC = lowest(exit)

enterL = high > slowL[1]
exitL = low <= slowLC[1]

strategy.entry("slow L", strategy.long, when = enterL and year>=year_from and year<year_before)
strategy.close("slow L", when = exitL and year>=year_from and year <year_before)

United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out