Is there any way to programatically detect the event of the market getting closed in metatrader?
Market - Closed system or Opened system? 1 reply
How to check for already opened position 3 replies
Market Closed Check 2 replies
Help! - How to not place new order too closed to already opened price? 1 reply
If (DayOfWeek() == 5 && Hour() > CloseTime - WarnHours) // do something
DislikedThen perhaps you can tell me what figure in us dollars will make you stop feeling like your time is being wasted and will motivate you to provide an universal solution to this problem ?Ignored
DislikedThank you for the idea, however I already tried that and it turns out that for some symbols the timeout between ticks is changing a lot.Ignored
DislikedI have EA which displays a lot of information on the chart. I want to be able to detect when is the last tick for the trade day and erase everything, so the EA does not show outdated information. I guess this is impossible.Ignored
DislikedI have EA which displays a lot of information on the chart. I want to be able to detect when is the last tick for the trade day and erase everything, so the EA does not show outdated information. I guess this is impossible.Ignored
DislikedThen perhaps you can tell me what figure in us dollars will make you stop feeling like your time is being wasted and will motivate you to provide an universal solution to this problem ?Ignored
DislikedI have EA which displays a lot of information on the chart. I want to be able to detect when is the last tick for the trade day and erase everything, so the EA does not show outdated information. I guess this is impossible.Ignored
Quoting CodeMeisterDislikedUntil you have a clear idea of what you want and can communicate it effectively, I have no interest in this project. Wishful thinking and vague wording don't cut with me and most coders.Ignored
DislikedI have EA which displays a lot of information on the chart. I want to be able to detect when is the last tick for the trade day and erase everything, so the EA does not show outdated information. I guess this is impossible.Ignored
DislikedMaybe I have missed the point on this and people are making this over complicated. why not wait until Saturday morning and clear down the data than.Ignored
QuoteDislikedThank you for the reply, however I was looking for more universal approach since I need this to work on different brokers and some brokers support symbols which are not opened during the whole day.
DislikedMaybe I have missed the point on this and people are making this over complicated. why not wait until Saturday morning and clear down the data than.Ignored
Dislikedanyway, the ordersend solution is an interesting idea, except for the fact that you can't continually ordersend all day and night testing if the broker will accept an order or not. they, understandably, tend to frown upon bogus orders being sent non-stop.Ignored
DislikedThe ordersend has to be combined with a check of the timestamp of the last received tick.
If a defined amount of time has gone by and the last-tick-received-time has not changed, the EA checks market-open/close with a pending order.
Of course this is only possible with fake-ticks fired externally with a script or another tool (like Mt4TickSender from fx1.net) or internally in the EA.Ignored
Dislikedthat was the point i was making. after a certain point you can't harass the server with bogus orders without making the broker cranky. you just can't do it.Ignored
QuoteDislikedthe possible solutions are inelegant so far, and the purpose of it all is unclear.