I am new to MT Trader and got the following questions. Any help is apprecaited.
1) Both EA and Indicators are written in MQL4, how does MT Trader know whether it is an EA or indicator? I checked the reference, the program structures seem no different (i.e. init(), start()). Other than the code are being put in different directories, I couldn't find the different. When I load an indicator with EA, it does give a "file is an indicator" message in log file. Therefore MT must have a way knowing it is an indicator. My question is how can it find out?
2) I am trying to develop some code base on an indicator (i.e. when an indicator shows up, the order will get execute). I read the MACD Sample already. Is there any place I can find more sample code which execute orders based on indicators?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I am new to MT Trader and got the following questions. Any help is apprecaited.
1) Both EA and Indicators are written in MQL4, how does MT Trader know whether it is an EA or indicator? I checked the reference, the program structures seem no different (i.e. init(), start()). Other than the code are being put in different directories, I couldn't find the different. When I load an indicator with EA, it does give a "file is an indicator" message in log file. Therefore MT must have a way knowing it is an indicator. My question is how can it find out?
2) I am trying to develop some code base on an indicator (i.e. when an indicator shows up, the order will get execute). I read the MACD Sample already. Is there any place I can find more sample code which execute orders based on indicators?
Thanks in advance.
- tony