resin17 / Publications
Forum
How to get a PC's date?
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 this. Perhaps, some sort of a dll that can be used
MT4 to IB bridge
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 utility to bridge between MT4 and IB TWS -Trade
make MT4 to grab signals from chat/e-mail
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 the chat/e-mail, write it to a file and MT4 can then
Storing SL and TP
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 recommend how to store SL, TP and other values used for
Reliable order open and close
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 please recommend a sample of a reliable order
iCustom question
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 day. It should be easy to use the iCustom, but I
Closed orders check
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 any recommendations. R
EA for manipulated markets
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 using volume and momentum indicators in combination
Reading from file
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 the init function , but read data (date, time
getting tick data
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 going forward. (1 min data from Metaquotes or