psraju:
When posting code please use the code button (Alt+S). Edit your post to display the code correctly.
Anything to do with MT4, please post in the correct section.
I will move your topic to the MQL4 and MT4 section.
- Perhaps you should read the manual.
Your code Documentation Buffer_4 = iMA( NULL, 0, WavePeriod, 0, MODE_EMA, Buffer_6, 1 );
double iMA( string symbol, // symbol int timeframe, // timeframe int ma_period, // MA averaging period int ma_shift, // MA shift int ma_method, // averaging method int applied_price, // applied price int shift // shift );
- Use SRC.
- Post in the correct place.
Thank you for the information.
I see this in the indicator
iMAOnArray(Buffer_5, 0, AvgPeriod, 0, MODE_EMA, i);
I dont know how to code this in EA.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Traders
Im trying to create a small expert advisor for wave trend indicator.
Im doing something wrong here, as im a new bee to this mql4 coding.
I have indicator for it, but im trying to create EA to buy and sell automatically.
my conditions are,
if wave trend indicator is below -60 and crossed, buy
if wave trend indicator is above 60 and crossed, sell
I attached the indicator. Please assist or guide me to resolve this. Thank you very much