|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Quote:
Besides: When you use the Preprocessor #include like that in your code: #include <stderror.mqh> The MQL4 compiler will replace this line of code with the code found in the file "stderror.mqh". If you open any “mqh” file you will find it contains two things: 1- Importing the library it will use 2- Definitions of the variables and functions of the imported library. For example this is the code of stdlib.mqh //+------------------------------------------------------------------+ //| stdlib.mqh | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net/ | //+------------------------------------------------------------------+ #import "stdlib.ex4" string ErrorDescription(int error_code); int RGB(int red_value,int green_value,int blue_value); bool CompareDoubles(double number1,double number2); string DoubleToStrMorePrecision(double number,int precision); string IntegerToHexString(int integer_number); Here the code: 1- imports "stdlib.ex4" 2- Write the definitions of the variables and functions of the imported library. When you include "stdlib.mqh" in your code you can use its 5 functions: ErrorDescription, RGB, CompareDoubles, DoubleToStrMorePrecision and IntegerToHexString. to know more please refer to my MQL4 Course Regards, Coder's Guru |
|
||||
|
Quote:
__________________
Disclaimer: If you trade my EAs or systems or taking my advice including but not limited to selecting a broker, you are doing so at your own discretion. Forex is a risky business. You may lose substantial amount of money by taking the risk of live trading. I shall not be held responsible for your losses or problems of any kind with the broker. PipBoxer.com / PBHelp.com / ForexBrace.com (Free MQL Training) / GridBoxer.com / Investatech.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trailing file | newdigital | Tools and utilities | 15 | 05-28-2008 03:14 PM |
| How to open a .HST FILE | HellGungrave_777 | Metatrader 4 | 4 | 06-22-2007 03:54 AM |
| What is .set file? | maniek | Questions | 0 | 03-31-2006 08:20 PM |
| Mt3 EXP file | forexpipmaster | General Discussion | 7 | 02-03-2006 05:17 PM |
| I can not attach a file | WhatFor | Non Related Discussions | 4 | 11-03-2005 05:16 PM |