I would like to know if anyone could tell me how can you code a maximum numbers of orders when DEFPARAM CumulateOrders = true. I am trying to develop a system and I am concern with Money Management. I want to limit the accumulation of orders up to a maximum of five at the same time.
You can use the COUNTOFLONGSHARES keyword to know how many LOTS/CONTRACTS/SHARES are already on market for long orders. Same for short orders with COUNTOFSHORTSHARES
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