1 (edited by JLA 2019-11-09 15:00:05)

Topic: Stochastic rule in exported EA is wrong

In EAS, the Sto signal for Long is

Stochastic line crosses the signal line upward.

In the exported EA, it is

   bool ind0long  = ind0val1 > ind0val2 + sigma && ind0val3 < ind0val4 - sigma;

which is wrong! should be < and >. And reverse for Short too.

Same for both MT4 & 5.

2 (edited by GD 2019-11-09 13:15:54)

Re: Stochastic rule in exported EA is wrong

In EA Studio graphs is it Ok but in MT4 there is the problem?

Re: Stochastic rule in exported EA is wrong

Hello JLA. We will analyse it and tell if it`s apply.
Thank you for the report.

Vinicius Pereira, Portuguese Support.
Improve your trading with my strategies & signals on MQL5. High success rate & many followers. Check them out & join my EAS telegram group for updates.

4 (edited by JLA 2019-11-09 14:58:30)

Re: Stochastic rule in exported EA is wrong

GD, yes. I didn't get the same graph in MT.  Traced back to find that. Changed <> and voila!

5

Re: Stochastic rule in exported EA is wrong

JLA
At least there is a solution until Popov will fix it.
Finally we have to check every EA in MT 4 after end.

Re: Stochastic rule in exported EA is wrong

This problem is fixed.

Please reload EA Studio and re-export the expert.

The bug was in the indexing of the indicator buffer.

Thank you for the report!