Conditional Order Character Limitation


Category:
0
0

Pete,

Love what your doing and have watched your videos!  I finally came her to ask a question that TD cannot answer for me.  When I put through a conditional order to buy a stock, it cuts off my thinkscript code to only include the first 170 characters.  Is there any workaround to this like increasing character limit?

As an example, if I put this through:

MACD(“fast length” = 20, “slow length” = 50, “macd length” = 10, “average type” = “SIMPLE”).”Value” from 1 bars ago crosses above MACD(“fast length” = 20, “slow length” = 50, “macd length” = 10, “average type” = “SIMPLE”).”Avg” from 1 bars ago and TTM_Squeeze(“nk” = 2).”Histogram” from 1 bars ago is greater than 0

The order placed will be submitted like this:

MACD(“fast length” = 20, “slow length” = 50, “macd length” = 10, “average type” = “SIMPLE”).”Value” from 1 bars ago crosses above MACD(“fast length” = 20, “slow length” = 50, “macd length” = 10, “aver

Any help would be very appreciated Pete!

 

Thank you

Jake

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on February 10, 2021 2:10 pm
106 views
0
You might what to put your condition in a Study and use it as the condition to be true in your Conditional Order. I have a BuyAlert Study which I use in many of my orders.
( at September 2, 2022 8:04 pm)
0
✔
Private answer

The code does not get changed at all. The code you enter is still there in the conditional order. The portion of the Conditional Order that displays the description of the order has a character limit but the code editor itself still contains the full section of code you place in it.

You can check this for yourself with just a click of the mouse.

Screenshots below explain things in a bit more detail. There is nothing wrong with this at all. It will still function exactly as you designed it.

Update: At some point after this solution was posted I have published a video that shows how to use conditional orders to automate round tip trades. If you are struggling to learn how to use this tool the following video will help clear up all the details for you.

Thinkorswim Automated Round Trip Trades

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 10, 2021 2:54 pm
0
This makes sense.. it's only in the notes where the description gets cut off (and also saved strategies on order templates as well unfortunately) however, my orders are not lining up with where they should in live trading. It seems that when the order is submitted, it takes that cut off description and uses it. I'll be back with screenshots from live trading vs backtesting as I know they're needed. Thank you Jake
( at February 10, 2021 3:50 pm)