You don't need to be a coding expert to create trading systems. You can write one yourself using thinkScript in thinkorswim.
Sure, there are lots of charting studies and tools at your disposal, but what if you want something that mimics a trading system you read about, or a new indicator or pattern you just can’t find? You may need to build it yourself.
The thinkorswim® platform from TD Ameritrade lets traders create their own indicators, scans, alerts, and trading systems using thinkScript. And you don’t need to be a computer programming whiz. To get your feet wet, you can use the Condition Wizard and start with something simple, like scanning for moving average crossover.
To get started building your own indicator or system, I recommend following these six steps:
Suppose your goal is to be alerted when there’s a simple moving average (SMA) crossover. Instead of checking the charts for a crossover continuously throughout the day, could create a script that alerts you when the crossover occurs.
Let’s try creating a script that’ll alert you when a 10-period SMA crosses above a 20-period SMA.
Fire up thinkorswim and:
In the thinkScript Editor, you’ll see the thinkScript code for the SMA following crossover:
SimpleMovingAvg (“length”= 10) crosses above SimpleMovingAvg (“length” = 20). “SMA” and MovingAvgCrossover (“length1”= 10, “length2”= 20) is true
Now set up an alert to notify you via text message or onscreen when the condition is met by selecting Create Alert. You can also set up Scans & Custom Columns to find stocks with crossovers.
You’ve created your first thinkScript code. You can always go into the thinkScript Editor and make changes, which will help you learn and advance your new coding career. You can also use links from other thinkorswim users and paste them into the platform.
Now that you’ve had a taste of thinkScript, you can take it further. Some of the more complex scripts can be used as investing strategies and backtested. Just keep in mind that good backtesting results don’t provide any guarantees for future performance.