condition is true as last reported

D

dinodotcom

New member
VIP
Can you help me with the syntax of scan for a condition in a TOS? I am wanting to check a condition on three time frames but I do not want to check within a certain about of bars, I only want to know if the condition is true as last reported and do not wish to specify a limit to the amount of bars? Sort a of a last known condition.
 
H

horserider

Well-known member
VIP
Warehouse
Just delete the "within X bars " at end of thinkscript code of the scan.
 
D

dinodotcom

New member
VIP
Thank you @horserider but when I did that it only gave me the tickers that are true for today only?
 
H

horserider

Well-known member
VIP
Warehouse
Dinodotcom Put the code here and maybe someone can help.
I think I see what you wanted now. Not sure but could try using something like "within last 200 bars"
 

Top