I recently ran into a bad situation with my live strategy. My strategy had placed an order, the stop loss and profit target were set (using the code below), and then my internet connection was interrupted causing my strategy to remain disabled while in a live position. There are several parts to this issue that I need addressed.
- The most important thing I need to nail down is how to send proper OCO orders to my broker (Forex.com/City Index):
- If for some reason it is not possible to send my OCO order to my broker and it absolutely must be simulated locally on my PC, then can you please explain why this is the case?
- What is the best way to prevent this situation from happening again (aside from having a UPS, 100% up-time connection, surge protection, etc)? There wouldn't be a need to have extra (expensive) hardware if the OCO was sent to the broker.
if (entrySignal == true) { EnterShort(size); SetStopLoss(CalculationMode.Pips, stop); SetProfitTarget(CalculationMode.Pips, target); }
Comment