I would like to allow only one buy or one sell trade PER BAR.
Once a buy trade has been opened and closed on the same bar, no other buy trades should be allowed on that bar. Only sell trades can be allowed.
Once a sell trade has been opened and closed on the same bar, no other sell trades should be allowed on that bar. Only buy trades can be allowed.
What is the simplest paragraph(s) of code required, and where exactly do I place it/them?
Once a buy trade has been opened and closed on the same bar, no other buy trades should be allowed on that bar. Only sell trades can be allowed.
Once a sell trade has been opened and closed on the same bar, no other sell trades should be allowed on that bar. Only buy trades can be allowed.
What is the simplest paragraph(s) of code required, and where exactly do I place it/them?