I’ve learned so much from all of you on this forum so for that thanks a lot!
Today I hope that someone can help me with a specific query though. I’ve coded most of my strategies with progressive stops. As my profit runs up I’ve adjusted stop loss to lock in more profit. Every now and then, I have a problem where my stops suddenly disappear though. I’ve let’s say upped it twice and thereafter I suddenly have no stop loss and I’ve lost big. Means I can’t really let an Algo run unattended either. Does anyone know of this problem? Is it perhaps true that when target is adjusted (limit order), a stop loss order must also be set?
Without the code itself, it’s a little bit tricky to answer precisely. However, did you looked at your orders history (CTRL+O), to see the reasons why the stoploss didn’t move correctly?
If you are using STOP pending orders to set your stoploss, remember that you need to set them at each new candlestick, because this kind of orders only last 1 bar (expiration).
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue