Turtles Strategy
Author: surinder
Creation Date: 6/22/2009 12:20 PM
profile picture

surinder

#1
has anyone coded for this strategy
profile picture

Eugene

#2
Look for Turtle Original 3.1 in this article of our Wealth-Lab 5 Wiki:
System Building | Trend following strategies
profile picture

surinder

#3
Eugene,

during a trend, when you add a unit when price moves by 1/2N does the previous entry's during the trend exits(loss) also move to the new stop loss of the added unit. Is this incorporated into the programing?

Surinder
profile picture

Eugene

#4
Surinder,
QUOTE:
...when price moves by 1/2N does the previous entry's during the trend exits(loss) also move to the new stop loss of the added unit...

...meaning that, according to Faith, "all the stops for the entire position would be placed at 2N from the most recently added unit." In this code, the stop for each position is set to 2N from its entry price.
profile picture

grehn2

#5
ive tried to amend this 'original 3.1' to only the long 55 day break out, but it only trades 10-15 times no matter the symbol then stops. any ideas why?

CODE:
Please log in to see this code.
profile picture

Eugene

#6
When posting code, please wrap it in between a pair of CODE tags. You'll notice them right above the "Add a new Post" box. I've corrected this for you.
profile picture

grehn2

#7
thanks a lot
profile picture

Eugene

#8
The cond20 condition is the reason for not taking trades.
profile picture

grehn2

#9
thanks. working now (and obvious in hindsight!). thanks again....if anyone wants the '55d only' version:

CODE:
Please log in to see this code.


profile picture

manofsteel

#10
hi, am new on wealth lab.

please can someone help out, i'd like to modify this code with the following modification:

1. continue to modify SL on all open positions for every 1-ATR move by 2N
2. exit in that case would then be either by stoploss or 20 day period in opposite direction of trade.

thanks,
manofsteel
profile picture

manofsteel

#11
would it also be possible to code it in such a way as to allow for optimization?/
profile picture

Eugene

#12
Absolutely. The WealthScript Programming Guide (WLD > Help menu) even ships with a tutorial teaching you how to do it on your own. Check it out: Programming Trading Strategies > Strategy Parameters > How to: Add Strategy Parameters.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).