Can you please explain how the MACD indicator is smoothed? For example in the standard MACD Sample?
externdouble MACDOpenLevel=3; // глобальные переменныеexterndouble MACDCloseLevel=2;
------------------------------------------------------------------+
MathAbs(MacdCurrent)>(MACDOpenLevel*Point) //одно из условий BUY
MacdCurrent>(MACDOpenLevel*Point) //одно из условий SELL
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.
I throw a buy or sell script on the tester chart, but the position does not open. Is it supposed to be like this?
script to the tester? this one definitely won't open...
Levels are introduced here to avoid the "chattering" effect when the signal line crosses the MACD
So that serial opening-closing does not take place.
Can't remember the code. Perhaps the closing takes place 2 points before the crossing.