Here's all I want to do.
Backtesting/optimizing a strategy, I
- Enter a trade based off of a 3min indicator, one contract,using a market order, with a 15 tick stop loss, no problem.
- then, all I want to do, is if the price ever hits 5 ticks higher then the entry price adjust that stop loss to one tick above break even.
-I've used firstickofbar which was a waste of time because COBC always equals true
-I've tried various combinations of Barsinprogress and COBC, which is also of course useless
-my best option is to dynamically manage a stoploss or trailstop, but this still will NEVER get me out of a trade intra candle. So if the price moves to +5 ticks, then drops in the same candle my stop will never get adjusted to breakeven+1 until after the candle, which is too late.
So, I just want to make sure the only way to have a stop get adjusted tick by tick is to use "intrabar granularity" and Add(PeriodType.Tick,1) which makes backtesting an abosulte joke and I can stop wasting my time.
Is this correct? Or is there a way to activate tick by tick processing just while a position is open to update stops?
Thanks in advance,
Wayne
Comment