adrian.tan.7568596

Active trader turtles strategy modified

1129 0 114
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)

EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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 Contact Support Ideas Published Followers Following Private Messages Chat Sign Out