Basic code to open at beginning of hourly bar with say a fixed (not trailing) stop of 100 pips .
Need help with following:
If the trade is still open at beginning of next bar, stop should be moved at 100 pips from second bar open price, but only in direction of trade i.e. up for a long trade.
If bars are not needed in above equation, move stop at specified time on clock.
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