Close order if it start with loss for the first 3 bars
-
Hi,
I tried but could not find an answer.
What I want to do is, if an orders starts with loss for the first 3 bars I want to close it immediately. Thanks in advance. -
@huseyint Maybe you can check order's age and then see if the order is profitable or not
-
You can also create a counter variable so that when it is >=3 and if in loss, close them.
-
@vish thanks for the help, it worked
-
@l-andorrà said in Close order if it start with loss for the first 3 bars:
You can also create a counter variable so that when it is >=3 and if in loss, close them.
I'll try this one also, thanks...
-
You're welcome