Hello everyone, In one part of my EA I need to compare the local PC's date with the broker's server date, i.e. if ( DateLocal==Day()) { bla bla... How can the PC's date be queried for this (per tick)? I don't know of a standard MQL4 function for
Hello, everybody. For one of the strategies I am thinking of writing a small EA for MT4, but it will execute trades on Interactive Brokers platform. I cannot trade via MT4 brokers with this particular strategy, hence the question. I have found one
Hello everyone. I need some initial guidance on how to make MT4 grab signals (buy/sell/modify, set SL, set TP) from a chat and/or e-mail sent by a trader trading manually (not on MT4). I guess such a system should have a function to grab info from
Hello everyone. I have noticed that the EA I am working on closes trades if an MT4 is restarted. The issue is that the SL and TP values are lost due to the deinitialisation and logic to close trades gets triggerred on 0 TP values. Could anyone
Hello there. My EA sometimes does not open or close an order due to a disconnect or other issues. I am using a VPS and there are no issues with other brokers I am using for tests. I want to make my EA open or close trades more reliably. Can anyone
Hello, everyone.. What is the best way to check if there have been any orders closed from midnight to the current time on the same day? The next day the check should start from 0 again.I am thinking of using a OrdersHistoryTotal (0).. Thank you for
Hello everyone, I need to get some Resistance, Pivot and Support lines values from a Fibonacci indicator. I have to read and store R1, R2, R3, Pivot, S1, S2 and S3. The values are calculated once per day (at midnight) and are static for the whole
Hello, there. I am thinking of writing an EA that can profit from manipulation actions in the markets. The idea is to identify manipulation early and follow its direction (usually down) and then follow a reverse trend (or bounce). I am thinking of
Hello everyone. I am trying to write a piece of code to add to my EA that will allow a choice of getting/redeaing tick data from CSV files (so I can test with real market data, but not with generated by the tester). I think I need to open a file in
Hi, Everybody. This is my first post, so pls take it easy on me. I have done a search on the forum, but could not find an answer to my question. Having failed to obtain historical tick data from two brokers I am using I decided to collect it myself