I'm new to programming with MT4 and was wondering how I could cancel a pending order if its not filled by the end of a candle? I'm on an ECN broker so it can't be placed in the OrderSend function. Any ideas would be greatly appreciated.
EA to cancel pending order when price reaches certain level? 44 replies
Cancel pending order script for MT5 1 reply
MT4 Order Pending Order/Order Modify Issue 1 reply
EA to cancel all pending orders once a position opens 3 replies
Order cancel order 1 reply
DislikedI'm new to programming and was wondering how I could cancel a pending order if its not filled by the end of a candle? Any ideas would be greatly appreciated.Ignored
DislikedI'm on an ECN broker so you can not use the expiration in order send, plus I don't know how you would have it cancel at the end of a candle. Anyone else with ideas?Ignored
DislikedI'm new to programming with MT4 and was wondering how I could cancel a pending order if its not filled by the end of a candle? I'm on an ECN broker so it can't be placed in the OrderSend function. Any ideas would be greatly appreciated.Ignored
if (barStart < Time[0]) //start of new bar { string timeStamp = TimeToStr(TimeCurrent(), TIME_DATE|TIME_MINUTES); string newstr = StringSetChar(timeStamp, 13, '_'); WindowScreenShot(FileName + newstr + ".gif", 640, 480, -1, -1, chartType); barStart = Time[0]; }
if (barStart < Time[0]) //start of new bar { barStart = Time[0]; }
datetime barStart = 0;