EA-Indicator Video
To view a video of a the EA-Indicator plug-in, click here:
Important Notes:
- The EA-Indicator Plug-in uses the four trading function drawings to create the MQL logic for the custom indicator. The drawing functions must be named: OpenBuyTrade, CloseBuyTrade, OpenSellTrade, CloseSellTrade.
- In order to draw the back history for the indicator, the logic on the trading drawings must use "shift-able" expressions. The EA-Indicator Plug-in finds "shift-able" price and indicator functions and generates the correct MQL code to draw the history of the indicator on the chart.
- If "shift-able" expressions are not used, the indicator will still display correct values in real time, but will not generate signals for historical data. For example, if the expression "Bid" is used in the logic of a trading drawing, the platform can not evaluate the value of Bid for past bars - the Bid value simply is not saved. However,if the expression iHigh is used, the platform can accurately draw historical data because High values are saved for each bar.
- In summary, any function that provides a shift parameter will draw the correct history. This includes all technical indicators, all price functions and various other MQL functions.
- All of the drawings used in the VTS Expert Advisor system are included in the custom indicator code because they may be needed to evaluate the logic of the drawing functions. For this reason, there will be warnings for unreferenced functions. These warnings may safely be ignored.
- This is an example of the warnings that can be safely ignored:
MetaQuotes Language 4 compiler build 509 (24 Jun 2013)
Copyright 2001-2013, MetaQuotes Software Corp.
1;39;;;Function "fnComment6194" is not referenced and will be removed from exp-file
1;39;;;Function "OpenSellTrade" is not referenced and will be removed from exp-file
1;39;;;Function "OpenBuyTrade" is not referenced and will be removed from exp-file
1;39;;;Function "ea_start" is not referenced and will be removed from exp-file
1;39;;;Function "ea_init" is not referenced and will be removed from exp-file
1;39;;;Function "ea_deinit" is not referenced and will be removed from exp-file
Exp file "C:\Program Files (x86)\MetaTrader 4\experts\indicators\ind_MaCrossOver.ex4" produced - 0 error(s), 6 warning(s)
C:\Program Files (x86)\MetaTrader 4\experts\indicators\ind_MaCrossOver.mq4 built sucessfully!
- Because all of the drawings used in the VTS Expert Advisor system are included in the custom indicator code, the custom indicator will have the same input parameters as the Expert Advisor. This may not be desired for the custom indicator. To inhibit the input parameters, used the Input Manager and uncheck the show button to hide any inputs not required.