Exiting a trade. Help with TS please

mishee

Newbie
Messages
9
Likes
0
Hi,

Does anyone know how to write the code for: an exit for 12pm London time the next day, every time you are in a trade?

So say a trade enters at some point on a Tuesday it will close at 12pm on the following Wednesday. If it enters on a Friday it will close at 12pm the following Monday etc.

Thanks
 
Thanks Easytrader.

I added that to end of my code but when I verify it says that I can't use 'next bar's price and close price in same strategy'.

the next bars price is from my original code. Is there a way round that?
 
Top