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