I’m using the code below. There is just one thing I want to change. I don’t want the order to start on ‘close’ but I want the order to start when the price hits “orderhigh” or “orderlow”. What do I have to adjust in the code below?
Because we can’t know in advance when the order is triggered, the “alreadytraded” variable is to test only when you are on market (and at the beginning of the code, to prevent new pending order while already at market and because the code is read from top to bottom).
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