Edward Hirsch / Publications
Codes
Symbols.mqh for MetaTrader 4
Retrieve a list of all Symbols/Instruments known to the Server with MarketInfo output to a CSV file
Syntax checker Revision 1 for MetaTrader 4
Check a MetaQuotes Language 4 program for basic syntax errors like unbalanced braces, parentheses, brackets,.sin
Syntax checker for MetaTrader 4
Check a MetaQuotes Language 4 program for basic syntax errors like unbalanced braces, parentheses, brackets,.single and double quote, and multi line comment symbol pairs
Candle Patterns for MetaTrader 4
Visual and Audio alerts when reversal or continuation candle patterns occur
OrdersSuite Revision 2 for MetaTrader 4
Functions for processing the orders of Spot currency pairs, Spot Gold and Spot Silver with error handling. OrderProcess() strengthened. New functions Lots, OrderCloseByRetracement, OrderModifyTS and OrderSendI added. Revision 2 has been used to run expert
AudioPrice Revision 1 for MetaTrader 4
Have audio output of latest price in stereo! Revised to cater for fractional pips as now offered by some brokers to MT4
OrdersSuite Revision 1 for MetaTrader 4
Functions for processing the orders of Spot currency pairs, Spot Gold and Spot Silver with error handling. Revision 1: OrderModify2() & OrderProcess() corrected, OrderProcess() & OrderSend2() enhanced
StringArraySuite for MetaTrader 4
Functions for handling two dimensional string arrays. Usefull for prototyping
AudioPrice for MetaTrader 4
Have audio output of latest price
TimeSuite for MetaTrader 4
Library of functions usefull for time calculations and determining if a report is imminent
Forum
Where have all the Comments gone
Documentation for some experts can only be made available via the Comments tab, so trying to sell the expert becomes quite hard without documentation
double trouble
Using MetaEditor v 5.00 build 934 and MetaTrader 4.00 build 670 produces the following: double d1= 20 / 1200 * 600 ; double d2= 600 * 20 / 1200 ; Print ( "d1=" ,d1, " d2=" ,d2); // d1=0.0 d2=10.0
Service Desk response time
What is the normal wait time
ManualTrader
ManualTrader runs a continuous script to open Buy or Sell positions, place pending and straddle orders for instruments on multiple charts, maintain and close partial or full orders. Reverse orders, close half order, open OCO orders, delay orders for trading reports are also catered for. "Action
Characters used in Symbol name
So far I have found the following characters used to form Symbol or Instrument names: #ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789._abcdefghijklmnopqrstuvwxyz are there any others? Thanking you all in advance
Detecting symbol for "Single Comment Line"
Using FileReadString() and StringSubstr() and comparing to "//" does not match the symbol to indicate the start of a single line comment, the solution was to convert to ASCII char code with StringGetChar(). Possibly a control or escape character escapes me
FileIsLineEnding()
Slawa, FileIsLineEnding() in Build 220 sends program into a loop. StringArrayLoad() from StringArraySuite.mqh revision 1 reference https://www.mql5.com/en/code worked in Build 218 but not in 220 when calling FileIsLineEnding. StringArrayLoad() from StringArraySuite.mqh reference
FileOpen()
While testing and attempting to open an unexisting file, experts log yields correct message "invalid handle -1 in FileSize " but GetLastError() returns 4051 using Build 220
Championshp 2008 - Errors
Could you please explain the following erors: The verification of your Expert Advisor is complete. Expert Advisor checking report: 2008.08.31 03:52 loading reportstraderf on GBPUSD:60 expert takes too long time (more than 5 minutes) 5 min 47 seconds Errors: 1 ============================== The
Error 2 ERR_COMMON_ERROR
Error 2 ERR_COMMON_ERROR encountered using MT4 Build 211 (15 Oct 2007) AccountServer()=MIG-Demo Copy of Journal: 2008.03.12 19:25:05 '644565': modification of pending order #12410751 sell stop 573916.96 »k at 0 sl: tp: 0 -> price: 2 sl: 2 tp: 2 failed [Common error] 2008.03.12 19:25:03 '644565'