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
41 views
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.

Attachments:
Marked as spam
Posted by (Questions: 39, Answers: 3711)
Answered on February 10, 2021 2:54 pm
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)