Experts: EA Stochastic - page 2

 

Thanks a bunch for the code.

 
uncompiled
 
Ana29tol #:
doesn't compile.

You're fooling me. I just checked in the terminal.

MetaTrader 5 x64 build 3121 started for MetaQuotes Software Corp.
Windows 11 build 22000, 12 x Intel Core i7-9750 H  @ 2.60 GHz, 22 / 31 Gb memory, 719 / 947 Gb disk, UAC, GMT+2
2021.12.06 15:35:49.287 Terminal        C:\Users\barab\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77C8CF37AD8BF550E51FF075

EA version 1.001.


Compilation result - zero errors:

'EA Stochastic.mq5'     EA Stochastic.mq5       1       1
'PositionInfo.mqh'      PositionInfo.mqh        1       1
'Object.mqh'    Object.mqh      1       1
'StdLibErr.mqh' StdLibErr.mqh   1       1
'Trade.mqh'     Trade.mqh       1       1
'OrderInfo.mqh' OrderInfo.mqh   1       1
'HistoryOrderInfo.mqh'  HistoryOrderInfo.mqh    1       1
'DealInfo.mqh'  DealInfo.mqh    1       1
'SymbolInfo.mqh'        SymbolInfo.mqh  1       1
'AccountInfo.mqh'       AccountInfo.mqh 1       1
'MoneyFixedMargin.mqh'  MoneyFixedMargin.mqh    1       1
'ExpertMoney.mqh'       ExpertMoney.mqh 1       1
'ExpertBase.mqh'        ExpertBase.mqh  1       1
'Indicators.mqh'        Indicators.mqh  1       1
'Trend.mqh'     Trend.mqh       1       1
'Indicator.mqh' Indicator.mqh   1       1
'Series.mqh'    Series.mqh      1       1
'ArrayObj.mqh'  ArrayObj.mqh    1       1
'Array.mqh'     Array.mqh       1       1
'ArrayDouble.mqh'       ArrayDouble.mqh 1       1
'Oscilators.mqh'        Oscilators.mqh  1       1
'Volumes.mqh'   Volumes.mqh     1       1
'BillWilliams.mqh'      BillWilliams.mqh        1       1
'Custom.mqh'    Custom.mqh      1       1
'TimeSeries.mqh'        TimeSeries.mqh  1       1
'ArrayInt.mqh'  ArrayInt.mqh    1       1
'ArrayLong.mqh' ArrayLong.mqh   1       1
code generated          1       1
0 errors, 0 warnings, 2218 msec elapsed         1       1
 
Hello! Please explain the algorithm of the Expert Advisor's operation
 
PVla13 #:
Hello! Please explain the algorithm of the Expert Advisor operation

Signals are taken from stochastics.

The signal to open a BUY position:

STO (Main line) on bar #0 < 'Stochastic signal (level UP)' AND STO (Main line) on bar #'Compared bar (not a "0"!)'-1 < 'Stochastic signal (level UP) '

For SELL it is similar. The block of signals is formed in the 'SearchTradingSignals' function

 
Thank you. It would be good to track the direction of movement of the main line on the compared bars, as well as the moment when the main line crosses the signal line and the position of this crossing in relation to the extreme levels. Without it there are a lot of false signals.
 
Is there a Chinese commented version of the code?