Such order types are not available directly on the MetaTrader 4 platform, however you can use trading robots for this purpose.
For more details, I suggest reviewing the MQL5 Community Forum available if you go to Help>> MQL5.Community>>Forum on the MT4 platform.