BrokeTeacher
New member
Hello everyone,
I am looking for a way to have a Study Order run only at the beginning of the candle. A TOS rep directed me to the once_per_bar declaration (tlc.thinkorswim.com/center/reference/thinkScript/Declarations/once-per-bar). However, when I attempt to create a Conditional Order, using the Thinkscript Editor, combining this declaration with a study ("open is greater than HiLoActivator"), the study highlights in red and I get the statement that the study is invalid. Doing the study by itself works... doing the declaration by itself works... together gets this error statement.
Does anyone know how I would write the code to make this happen? I would greatly appreciate your assistance.
I am looking for a way to have a Study Order run only at the beginning of the candle. A TOS rep directed me to the once_per_bar declaration (tlc.thinkorswim.com/center/reference/thinkScript/Declarations/once-per-bar). However, when I attempt to create a Conditional Order, using the Thinkscript Editor, combining this declaration with a study ("open is greater than HiLoActivator"), the study highlights in red and I get the statement that the study is invalid. Doing the study by itself works... doing the declaration by itself works... together gets this error statement.
Does anyone know how I would write the code to make this happen? I would greatly appreciate your assistance.