Max trades per bar
-
Dear pros, is there a way to set a max number of trades per bar? Something like the function 'once per bar', but I would like it to be more than 1.
-
- Create a variable trades
- Before opening a trade, check that trades < tradelimit
- When opening a trade, modify trades to trades +1
- Once per bar: reset trades back to 0
-
Oh, and you could also just modify this number, lol:

Just make sure the block is right before "buy/sell now", after all conditions
-
@roar you're a genius, thank you so much!
