Welcome!
The web page you landed on is for paid Patreon subscribers. If you are not already one of my paid members than please consider subscribing to support my work. You can subscribe by clicking the orange button named "UNLOCK WITH PATREON" below this welcome message.
Current Subscribers:
What's that? You are already a Hahn-Tech Patron (Tier 1 or higher / $3)? Well then you can use the following link to access the login screen, and click the "LOG IN WITH PATREON" button.Paid Patreon Member LoginBe sure to bookmark this current page so you can come right back to where you left off before logging in. Thanks again for your support!
To view this content, you must be a member of Hahn-Tech's Patreon at $1 or more
Already a qualifying Patreon member? Refresh to access this content.

Thanks for the elaborate explanation it is very helpful. My buy condition order produces 2 data points however my sell condition order produces around 8 data points. How can I make sure when these orders are executed the buy order executes first and then the sell order. I don’t want to be short shares in my account. Basically how do I link sell order to only occur after the buy order?
It seems you have missed one of the most important details explained in the video. There is no way to fully automate a trading system in Thinkorswim. Keyword from the video title: “Almost”. You can automate the entry. Only AFTER that order is triggered you can automate the exit. Only AFTER that exit is triggered can you automate the next entry. You cannot automate both entry and exit together. Thinkorswim has intentionally made fully automated trading impossible. The video explains the absolute limits of what is possible. Not an introduction, but the pinnacle of what we can achieve.
Plz help:
I would like to put conditional order on TOS. I want to use 3 Min Candle and want to buy a 355 CALL option of XYZ(say it is trading at 343) when 3 Mins candle “CLOSE” is greater than or equal to 350 Resistance price of XYZ.
And second new order is to BUY PUT(3 Mins Candle): When XYZ stock price break support area of 343 break. Buy PUT when 3 Mins candle CLOSE price is at or below 343.
We cannot provide solutions requiring this level of detail in the comments section of a video. That is what the Q&A forum is for. We already have one post requesting instructions on how to trade options using the Conditional Order: https://hahn-tech.com/ans/how-to-set-up-a-conditional-order-for-buying-options/
question; need hand holding for -autotrade-almost. /ES 1minute chart;(movavgExponential, close price; length 7; displace 0; show breakouts yes)
want to Buy 1 contract on EMA up-signal /sell 1 contract on EMA down-signal (boolean signals, I assume)
(obviously each contract needs to be closed, as the new transaction is being initiated; hopefully autotrade can run for hours, unattended )
thanks
Doug ( thinkorswim user since circa 2016)
The answer to the question you did not ask is no. It is not possible to to auto trading on Thinkorswim. Go back and look at the video title. You see the word “Almost”? That is the part that means this is not possible. The video explains the very limits of what is possible in Thinkorswim. This is not an introductory video with more advanced techniques left out. This is the full boat.
Hi Peter,
Can you do this with options? I trade exclusively the SPY and have my system for 10% a day, and I now want to automate it.
Thanks,
JK
There is at least one post in our Q&A forum that covers this topic: https://hahn-tech.com/ans/how-to-set-up-a-conditional-order-for-buying-options/
can you send it to us please ?
Send what?
Hi Peter,
I am trying to do a conditional order but I want to execute at a specific time interval. How can i specify 1Day 1min, or 1Day 5min etc…? it seems it is defaulting always to 1Year 1 Day
The aggregation period is set by the button in the upper left corner. You can only set the time frame and not the amount of time to include.
Hi Peter,
I am Jerry, i am very new to writing script in thinkorswim, i got some problem about the script.
Could i get some advice from you and other experienced platform user??
I have removed the code from your comment. This is not the place to request assistance. You will need to post this in the Q&A forum. When you code contains more than 2 dozen lines of code you will need to save it as a plain text file and attach it to your Q&A post to conserve space. The errors you included in your comment indicate that you changed plot statements to def statements without removing the style statements. If you don’t understand what I just said then you probably need to spend several more months learning to write in this scripting language. Start with the basic before trying something this advanced.
Not sure I understand, so if I get 2 buy signals, does it buy 2 times? Then a sell signal, it sell 1 time. So my net quantity will be negative 1 share?
There is a setting that allows the chart strategy to add to the theoretical position for each new entry signal. As soon as an exit signal appears the chart strategy will close all open positions. If you have the order types setup to “stop-and-reverse” then the first new exit signal is going to close all the existing long positions and enter a new short position.
What time frame does this strategy work with, Every time frame shows differently.
Whatever time frame the chart is set to. So obviously this means each time frame will show a different result.