Documente Academic
Documente Profesional
Documente Cultură
A special thanks to Steve Coombs for writing this code to allow this indicator to match what is seen
used in the TC2000 program.
This document will walk you through two different ways to save this custom indicator to use on your
charts – 1) from a link that Steve shared and 2) by creating a new indicator and adding the code he
has provided at the end of this document.
First Way to Save - TOS – Opening and Saving a Shared Item for an Indicator
This is a link to open the indicator as a shared item in the thinkorswim program http://tos.mx/aH4Zeh
Once you put the link in the shared item URL space, click on Preview and you will get this screen –
then click on “Open”
Once you click on “Rename” you will see this pop up and you can rename the indicator to a name
that works for you
Highlight all of the code and right-click to copy then paste or highlight and use CTRL C to copy and
CTRL V to paste in the window.
#input StopLabel = yes; #ATRStop Label is Stop value from yesterdays ATR calculation
input ATRPeriod = 10;
input ATRFactor = 1.5;
input firstTrade = {default long, short};
input averageType = AverageType.SIMPLE;
TrailingStop.SetPaintingStrategy(PaintingStrategy.POINTS);
TrailingStop.SetLineWeight(lineWeight = 3);
TrailingStop.DefineColor("Buy", GetColor(5));
TrailingStop.DefineColor("Sell", GetColor(1));
TrailingStop.AssignValueColor(if state == state.long
then TrailingStop.Color("Sell")
else TrailingStop.Color("Buy"));