Forums ProRealTime English forum ProOrder support Allow only one strategy to execute a trade Reply To: Allow only one strategy to execute a trade

#34686

You can assembly all of your strategies into a bigger file.

“DEFPARAM CumulateOrders = false” will do the hard job!

Of course you may need to name variables in different ways, say, a1s1  or cond1s1 for the first strategy, then a2s1/cond2s1….. a1s2/cond1s2 for the second strategy etc….

You may name a variable StrategyID = 0 when NOT ONMARKET, the set it to any number you want each buy/sell is executed so you know which strategy was triggered.

Example:

 

2 users thanked author for this post.