What is maximum number of conditions you can enter, for a trade to execute 'automatically'?

Rookster

New member
I have worked through 9 (nine) conditions for a 'set up' , to trade one of the futures [thirty minute time frame] [trend indicator, EMA, etc. , etc ] that ROCKS! :) .

I click on the little asterisk, have all the nine conditions pre-copied/paste 'em in and WHEN IT TAKES IT ALL....AND 'WORKS'

-it makes money every trade :)

>>THE PROBLEM is, it does not always execute the trade 'properly'.

I have been on CS with ThinkSwim for long periods of time, often, trying to get explanation(s) why it's not doing what I enter..and I have just got to the point where I think nine conditions, for the system, is "to much"...

and that is why the conditions, although listed plainly, just do not always "trigger" properly

???

***

Can anybody help?

What "real world' knowledge/experience does anybody have 'maxing out their system?

>> What is the maximum number of conditions I can enter,,,that won't "screw up" ??

:) :) :)
 
Solution
There are strategies on this forum that use up to a hundred conditions that "trigger properly".
The number of conditions in of themselves would not cause an issue.
You are limited to 200 lines of code in a conditional order.
The workaround is to create a script; save it as a study; reference the study in the condition wizard.
There are strategies on this forum that use up to a hundred conditions that "trigger properly".
The number of conditions in of themselves would not cause an issue.
You are limited to 200 lines of code in a conditional order.
The workaround is to create a script; save it as a study; reference the study in the condition wizard.
 
Last edited:
Solution

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

I have worked through 9 (nine) conditions for a 'set up' , to trade one of the futures [thirty minute time frame] [trend indicator, EMA, etc. , etc ] that ROCKS! :) .

I click on the little asterisk, have all the nine conditions pre-copied/paste 'em in and WHEN IT TAKES IT ALL....AND 'WORKS'

-it makes money every trade :)



I have been on CS with ThinkSwim for long periods of time, often, trying to get explanation(s) why it's not doing what I enter..and I have just got to the point where I think nine conditions, for the system, is "to much"...

and that is why the conditions, although listed plainly, just do not always "trigger" properly

What "real world' knowledge/experience does anybody have 'maxing out their system?

you are not thoroughly describing where you are using your code.

are you trying to add your code as a condition on an order?
sorry, i am not familiar with them.

thinkScript in Conditional Orders
https://tlc.thinkorswim.com/center/...Order-Types/thinkScript-in-Conditional-Orders
 
I've been using study-based orders in live trading for years and am aware of the various gotchas in live orders (e.g., CompoundValue() and BarNumber() cannot be used). However, recently I encountered a case where my live study-based order didn't execute, so I opened a ticket. The ticket eventually got escalated to pretty high up, and this was their reply:

One of the scripters on staff was able to review your script regarding your conditional order. He stated that it looks like it failed to trigger because of how the conditional order was constructed, from a saved order template. Scripts greater than 200 characters in length will not work in saved order templates and will require manually building out the condition on each order.

Both scripts you provided to us contain this icon (as seen in the attached screen shot) indicating complex scripts and greater load times can occur. These wouldn’t be very suitable for conditional orders as it may not trigger immediately when the arrow appears. There are a ton of calculations being run in the script and the fold function, both will slow it down. You would need to simplify these scripts if wanting more reliable triggers and would need to manually add the condition.

I couldn't believe what I read because I've seen live orders executed using order templates where the studies were thousands of characters long. Is this a recent policy change? What are some of your experiences lately using study-based conditions in live orders?
 
I've been using study-based orders in live trading for years and am aware of the various gotchas in live orders (e.g., CompoundValue() and BarNumber() cannot be used). However, recently I encountered a case where my live study-based order didn't execute, so I opened a ticket. The ticket eventually got escalated to pretty high up, and this was their reply:



I couldn't believe what I read because I've seen live orders executed using order templates where the studies were thousands of characters long. Is this a recent policy change? What are some of your experiences lately using study-based conditions in live orders?


It can be hit or miss when using longer scripts.
But the official party line, dating back to the tasty trade days, has always been

You are limited to 200 lines of code in a conditional order.
The workaround is to create a script; save it as a custom study; reference the study in the condition wizard.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
1105 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