For my first time, Iâm writing code (for NinjaTrader) to handle overfills / order errors / order safety. While understanding that the specifics of such handling would depend on the specifics of the trading objectives/trading strategies involved, Iâm trying to lay my hands on past (and publicly available) examples of how these matters have been dealt with by others. Iâm not fussed whether these examples are in C#, or whatever (including pseudo code!... or even just a detailed description in plain text!); I'm more interested in getting a feel for the scope of what is handled in each case. Can anyone point me in the right direction?