Handle(DXHandle,0) is a function that returns the value of an moving average of seven candles of one minute. DXPontosDistancia is a value that they obtained from backtesting(is 140) and _Point is the pont of the active(in this case Bra50). If that condition is true, we make a buy operation. My question is: what is the point of that substraccion? Why we substract a moving average with the Ask Price?
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 have the following code(is not mine) in an Expert Advisor:
Handle(DXHandle,0) is a function that returns the value of an moving average of seven candles of one minute. DXPontosDistancia is a value that they obtained from backtesting(is 140) and _Point is the pont of the active(in this case Bra50). If that condition is true, we make a buy operation. My question is: what is the point of that substraccion? Why we substract a moving average with the Ask Price?