I have Calculate on bar close False on a strategy (with a type of moving average as a base signal). I would like to limit the amount of entries it attempts to make on a individual bar (as the False...sometimes...will cause the moving averages to go back and forth and to where it gets stopped out and then when it comes back it will enter again on the same bar etc...does not happen a lot but when it does it needs to be limited.)
What functions/options could I use to add to the code to tell it:
On the current bar only attempt a entry "x" times. Then, I could put it 1,2,3, etc for the amount of attempts I want it to try.
Thanks...
Any other ideas would be great too...

Greg

Comment