I am developing a strategy to buy/sell and hold subsequently add to longs on dip (but at a higher price that paid earlier etc),
The software is rebuying and reselling but doing it in the next bar (when the conditions are still right). My intention is not to allow a second entry within say 10 bars of previous entry. I am using this coding to prevent re-entry:
if ((BarsSinceEntry() > 10 || BarsSinceEntry() == -1)
and other conditions
then action
but I suppose that is too simplistic. Any ideas gratefully received.
Thanks
jmsUK
Comment