aronu
New member
Hi,
I want to set up an oco order that will flatten my positions at a certain time, is their a thinkscript that can check my position side so I will be able to buy if I had a short position and sell if a have a long position? or is there any other way to archive this?
I have implemented a strategy that requires me to close all positions at 1:00 pm, is there a way to create a thinkscript that I can use in the condition wizard that if I have long positions it should trigger a sell order and vice versa?
I want to set up an oco order that will flatten my positions at a certain time, is their a thinkscript that can check my position side so I will be able to buy if I had a short position and sell if a have a long position? or is there any other way to archive this?
I have implemented a strategy that requires me to close all positions at 1:00 pm, is there a way to create a thinkscript that I can use in the condition wizard that if I have long positions it should trigger a sell order and vice versa?