Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
kline[i] = iStochastic(NULL, Period(), 13, 4, 6, MODE_LWMA, 0, MODE_MAIN, i);
Perhaps you should read the manual. iStochastic - Technical Indicators - MQL4 Reference
mode
[in] Indicator line index. It can be any of the Indicators line identifiers enumeration value (0 - MODE_MAIN, 1 - MODE_SIGNAL).
[in] Indicator line index. It can be any of the Indicators line identifiers enumeration value (0 - MODE_MAIN, 1 - MODE_SIGNAL).
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.

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
Can anyone help me to say what is wrong with this EA.
I change the parameter for stochastic after that it dont start. This EA starts buy trades and suddenly it start an sell trade. I want an EA to trade after that the stochastic gives signal when it cross its signalline.
Lars