Forum: ThinkOrSwim
September 11th, 2019, 09:25 PM
|
Replies: 12
Views: 4,433
|
Forum: ThinkOrSwim
September 10th, 2019, 09:15 PM
|
Replies: 12
Views: 4,433
This works but its not pretty.....
Hey man, this DOES work but it is not pretty. You need to enter periodstarttime as the first 1 minute bar that prints in the pre-market trading hours. Also the periodendtime as the periodstarttime +...
|
Forum: ThinkOrSwim
September 10th, 2019, 11:46 AM
|
Replies: 12
Views: 4,433
|
Forum: ThinkOrSwim
September 9th, 2019, 09:09 PM
|
Replies: 12
Views: 4,433
|
Forum: ThinkOrSwim
September 9th, 2019, 08:48 PM
|
Replies: 12
Views: 4,433
Coding horizontal line at specific bar
Right... ya need another “else” after the “else if” in case neither of the aforementioned conditions are met. Adding an “else double.nan” at the end of the string would resolve it I think?
|
Forum: ThinkOrSwim
September 9th, 2019, 07:40 PM
|
Replies: 12
Views: 4,433
It is going to be something like:
def C =...
It is going to be something like:
def C = close;
plot closingprice = if secondsfromtime(1605)<=0 and secondstilltime(1605)>=0 then C else if secondsfromtime(1605)>0 then c[1];
I am not sure if...
|