Creating Conditional Orders

REgholl1968

New member
if i create an OCO template from a study do i have to go in and set the conditions manually?example is if a study has a trailing stop in it ,is it automatically recognized in the OCO?
 
if i create an OCO template from a study do i have to go in and set the conditions manually?example is if a study has a trailing stop in it ,is it automatically recognized in the OCO?
It sounds like you are confusing Studies and Strategies with actual trades... Real trades cannot be controlled in any way by Studies or Strategies... That doesn't mean to say that you couldn't include Study code within a Conditional Order, however... Conditional Orders are the nearest we can come to semi-automated trading aside from Bracket Orders... In addition, only Studies can be used in Conditional orders so a trailing stop related Strategy cannot be used... AddOrder() is for backtesting Strategies only... I hope this helps... If you have further questions just ask...
 
It sounds like you are confusing Studies and Strategies with actual trades... Real trades cannot be controlled in any way by Studies or Strategies... That doesn't mean to say that you couldn't include Study code within a Conditional Order, however... Conditional Orders are the nearest we can come to semi-automated trading aside from Bracket Orders... In addition, only Studies can be used in Conditional orders so a trailing stop related Strategy cannot be used... AddOrder() is for backtesting Strategies only... I hope this helps... If you have further questions just ask...
ok that sounds logical.im trying to put together something where i can take a study ,make a scanner and make an OCO template/bracket.since i dont have coding skills actually writing in conditions is going to be tough
 
I had a conditional order for my wife, daughter and myself today that did not work for me and my wife, but did for my daughter.
My daughter had one not order a few weeks ago, but ours did.
Today after it should have triggered I looked at it with edit and it showed it triggered, for some reason thinkorswim did not execute it.
Any ideas of what might cause this.
 
I talked to tos and they looked at it and said it should have executed. Said they don't guarantee execution of conditional orders. It is a complicated order but works most of the time.
 
@mluttph Welcome to the forum.

Any trade could possibly not execute, it doesn't have to be conditional. Here are the majority reasons orders are not filled:
https://tlc.thinkorswim.com/center/...ade/Order-Entry-Tools/Order-Rejection-Reasons

When you get into conditional orders, there is another level of complexity of why it might not execute. If you provide the script of the conditional order and the equity/option/future being traded, members here can provide input as to what specific issues might be involved.

Please only share thinkscript that is not proprietary.
 
Last edited:

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
497 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top