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.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thanks a bunch for the code.
doesn't compile.
You're fooling me. I just checked in the terminal.
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 1Hello! 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