HFT Strategy with low 1 tick stop issue

Hi There,

I’ve been banging my head against the wall for a couple of days now and can’t seem to get a strategy that works perfectly on back testing, to work in live or playback accounts. The issue is, the strategy demands entering on a stop order with a very low 1 tick stop. In live, it seems like sometimes the prices moves so quick that the strategy enters, but the stop has already passed, so the SL order can’t be placed, leaving me with a naked position.

I’ve tried OnExectuionUpdate, I’ve tried offsets, I’ve tried a bunch of things. none of which place SL 1 tick below actual entry AND don’t affect the performance of the strategy too much.

Currently:

                    TickOff = 1;  // offset hours from UTC
    		longStop = 1;
                    TP = 41; 
	        shortStop= 1;

// Example entry (no real delta implemented yet)
if (longTrigger && Position.MarketPosition == MarketPosition.Flat)
{
SetStopLoss(“LongEntry”, CalculationMode.Ticks, longStop, false);
SetProfitTarget(“LongEntry”, CalculationMode.Ticks, TP);
EnterLongStopMarket(Close[0] + offset, “LongEntry”);
}
else if (shortTrigger && Position.MarketPosition == MarketPosition.Flat)
{
SetStopLoss(“ShortEntry”, CalculationMode.Ticks, shortStop, false);
SetProfitTarget(“ShortEntry”, CalculationMode.Ticks, TP);
EnterShortStopMarket(Close[0] - offset, “ShortEntry”);
}

Thanks in advance for any help.

1 tick stop… :sweat_smile:. I think you might want to reconsider your strategy. I thought my profitable scalping strategy of 20 tick stop was crazy.

2 Likes

Why the difference of behaviour between live data and replay data.

https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?understanding_historical_fill_.htm

1 Like

Market Replay is way more accurate than strategy analyser

Yes, I completely understand why there is a difference. I’m asking abut ways around it to set stops and TPs relevant to the fill price rather than the trigger price.

Have you had any luck with this? I’ve tried similar logic to yours in the past and also hit my head against the wall. So I’ve been sticking to market replay for backtesting.