Forum: ThinkOrSwim
July 13th, 2020, 09:40 PM
|
Replies: 23
Views: 8,986
|
Forum: ThinkOrSwim
July 11th, 2020, 09:23 PM
|
Replies: 23
Views: 8,986
Were you able to fix it?
It's just...
Were you able to fix it?
It's just "close("symbol")". So you could say, for example, "def signal = if close("NDX") > close("NDX")[1] then 1 else 0;", then use signal to trigger a buy if you...
|
Forum: ThinkOrSwim
July 11th, 2020, 03:31 PM
|
Replies: 23
Views: 8,986
Were you able to figure out the reason it was...
Were you able to figure out the reason it was waiting a few bars?
I'm having a very similar issue. I have a pretty simple strategy with addorder functions that don't involve offsets at all. When I...
|
Forum: ThinkOrSwim
July 11th, 2020, 02:42 PM
|
Replies: 23
Views: 8,986
You wouldn't want to set the price part of the...
You wouldn't want to set the price part of the AddOrder function to "high" unless the high of the bar is where you would actually buy/sell if you were actively trading it based on the strategy's...
|
Forum: ThinkOrSwim
July 11th, 2020, 11:19 AM
|
Replies: 23
Views: 8,986
I believe you just adapt the trigger for the...
I believe you just adapt the trigger for the order as the price for the order as well (in most cases at least). For example, simply put the price in the addorder function as the EMA, pivot point,...
|