I am trying to code an auto-traded strategy but would need some “basic” help to complete it as I am still new to the programming – so straight to the Questions:
Q1 – Exit: In the auto trading function you will by default exit at market price, next bar open. I rather want to exit at current bar 5 minutes before closing. How to code that?
Q2 – Entry: By default, you enter at market price, next bar open. I rather want to enter next bar open IF e.g. +0.2% above prev candle high. How to code that?
Q3 – Profit: At previous structure high (looking e.g. 20 days back). How to code that?
Many thanks in advance! Examples are appreciated too.
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