Quote:
|
Originally Posted by Sadly
Being new to MetaTrader and not really having a clue about MQL4 I was wondering how an indicator can be used as an EA.
Taking PriceChannel_Stop_v6 as an example, if I place this into the 'Experts' folder can I then backtest it and optimise it?
If I then want it to do a conditional test from a separate indicator on the same chart, how is that done?
Any pointers in the right direction would be very welcome, thank you.
|
My dear Sadly,
An EA has nothing to do with an indicator : an EA trade, this means send some orders to open, close or manage positions.
An EA can have his own logic build in and in that case he doesn't need anything else to manage the positions.
An indicator doesn't trade : he just compute and/or visualize some information. An indic can also visualise his information regarding the past.
An EA is always in the present (even if can access to some infos of the past).
To trade using the information of an indicator, the EA can have the same logic build in, but there is much better : the EA can call the indic, so its' not needed to reproduce the same program.
I think the first step is to read the help file of the terminal, then,
do a "search" on this forum to find the lessons of CodersGuru, and, please, begin by the very first one !