Forum: ThinkOrSwim
October 27th, 2019, 07:28 PM
|
Replies: 9
Views: 1,831
AddOrder(OrderType.BUY_TO_OPEN, close<close[1]...
AddOrder(OrderType.BUY_TO_OPEN, close<close[1] and close[1]<close[2] and close[2]<close[3], close, 100, Color.green, Color.green, "Buy");
AddOrder(OrderType.SELL_TO_CLOSE, close>close[1], close,...
|
Forum: ThinkOrSwim
October 27th, 2019, 07:22 PM
|
Replies: 9
Views: 1,831
|
Forum: ThinkOrSwim
October 27th, 2019, 07:06 PM
|
Replies: 9
Views: 1,831
Oh I understand your question now.
Do you...
Oh I understand your question now.
Do you have a sell condition? Thinkscript needs a sell condition to exit the position before opening a new long position. It may be easier if you post the whole...
|
Forum: ThinkOrSwim
October 27th, 2019, 06:56 PM
|
Replies: 9
Views: 1,831
I think you can do
"condition1 = ...."
...
I think you can do
"condition1 = ...."
in thinkscript. Then "buy if condition1" etc
//Revision
On second thought, I don't think that will work. You need separate lines or code for each...
|
Forum: ThinkOrSwim
October 27th, 2019, 06:41 PM
|
Replies: 9
Views: 1,831
I don't know how to get TOS to take multiple...
I don't know how to get TOS to take multiple entries off of the same order. One work around which is kind of cumbersome is to add a separate order that includes "close is less than close 4 days ago",...
|