Converting a KeyRevLX/LE to a conditional Order


Category:
0
0

I have tried to put in the following code into a conditional order and get the following errors.

Low Close[1],

Attachments:
Marked as spam
Posted by (Questions: 5, Answers: 2)
Asked on February 13, 2019 11:26 am
108 views
0
Private answer

The error messages explain it all:

“Expected double at 1:8” This is pointing out that you have the word “length” in place of a numerical value or reference.

“No such variable length at 1:25” This is just a more specific error than the above. It is telling you exactly where the problem is.

The rest of the errors are all about the same thing. You need to replace the word “length with a numerical value or you need to declare the word length to “Reference” a numeric value. You do with this one of two ways. One is to declare it as an input and the other is to define it as a def.

I highly recommend you view our video on this topic. We cover the entire process of converting strategies into conditional orders. We even provide some templates for converting conditional orders into strategies.

https://www.hahn-tech.com/thinkorswim-autotrade-almost/

 

 

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on February 15, 2019 2:17 pm