Sergey![]() Member Posts: 6 Joined: 2/11/2016 ![]() | Thank you Jim. It works but not as I want. This stop continues to follow the position after 2nd bar so it can close position on 3rd, 4th or any other following bars. My idea is to wait 2 bars after position opening and if it non profitable at this time then close it. But if it profitable at 3rd bar then leave it to go no matter where the market will go after. Anyway your stop almost correct in my situation, I just change "if Bcnt >= Delay" to "if Bcnt = Delay" and now it work exactly the way I want. Thank you very much one more time for help. |