| New signals service! | |
|
|||||||
| 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 |
|
|||
|
Custom Indicator vs EA
Hello All,
I had a custom indicator that I added some code to in order to take trades, in an attempt to convert it into an EA. However, now when I try to attach it to a chart, it won't attach, and MT4 tells me it's not an EA, it's an indicator. What am I doing wrong? How does MT4 identify a Custom Indicator vs an EA? Even though I have code in their to execute trades, MT4 insists it's an indicator! Thanks in advance, for your assistance. Tim |
|
||||
|
Not completely true, the expert advisor can draw lines, I have several that will draw lines, attached is my modified version of the hans123. buy and sell lines have been added.
I have others that draw fib lines, etc use your imagination and you can put anything in the ea. |
|
||||
|
Quote:
The lines I meant are the Buffers that the indicators can draw (ex: moving average , cci etc) while the expert advisors can't. The only way to see the buffers used in the EA is in the backtesting - after testing the EA click Open Chart button. P.S: I hope to see this feature in MetaTrader soon.
__________________
There is a fine line between freedom of expression and hate literature. |
|
||||
|
True,
the buffers (setindexbuffer) function is not allowed So if you wanted to include your complete system into 1 file as an expert advisor, you can not, but it could be added using the icustom feature, unless metaquotes takes that away as well. did you know in the new version 191 you now get an error if you try to get pivot levels using the same code you were using in version 190 (high + low + open) /3 what else will they remove? |
|
||||
|
I think adding Buffers to the Expert Advisor will make the world of MQL4 programming easier. Just imagine you can draw the EMAs or the CCIs you use in the EA on the chart. The programmers of the EA have to make an indicator as a visually aid for the user (Example: EMA CROSS + EMA_CROSS_IND).
__________________
There is a fine line between freedom of expression and hate literature. |
|
||||
|
Quote:
You build an EA based on one or more indicators to automate your trades! There are two kinds of indicators in MQ4: Built in indicators: i.e. Moving Average, MACD, Bollinger bands etc. To use these indicators you use their built in functions: i.e. iMA(), iMACD() and iBands(). Custom indicators: These are the indicator you downloaded from the net and you can use them in your MQ4 EAs by using the iCustom function. For more details please review my tutorial at: http://www.metatrader.info/node/34 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Custom Indicator in EA (MT4) | jimven | Setup Questions | 5 | 05-28-2007 11:35 AM |
| Need an MT4 custom indicator | wadeboxjr | Metatrader 4 | 1 | 08-22-2006 08:50 PM |
| Custom Indicator Help | FX-Hedger | Indicators - Metatrader 4 | 4 | 03-05-2006 01:26 PM |
| Custom Indicator | Roets | Setup Questions | 1 | 01-03-2006 07:54 AM |
| using a custom indicator | forextrend | Metatrader 4 | 2 | 12-02-2005 01:36 AM |