[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 553
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Вам удобней это будет отдельным индикатором сделать. Сначала, в цикле пересчета заполняете инд. буфер значениями индикатора, а затем по этим значениям считаете сигнальную МА.
Вот пример расчета МА по RSI (ф-я старт):
artmedia70, We will go through all orders and sum up their profits. If the resulting profit is higher than zero or higher than a predefined value, we will close all positions.
Try the code to close all orders yourself.
Hint: For a loop in which all orders will be closed, you need to reverse the direction of the order enumeration - exactly as I did in the above code. Namely, we should go from the last order to the first one. If we change the direction, not all orders will be closed in the loop. For example, the order placed first in the list will be closed and, as a result, another one will replace it. And since the counter of the loop is incremented by one, another order from this line will be skipped.
I have a question - does the MT4 tester take swaps into account? There is no mention of swaps in the tester log file.
Возник вопрос - учитывает ли тестер МТ4 свопы? В лог-файле тестера нет ни единого упоминания о свопах.
OrderSwap()
OrderSwap()
There is currently no way to add this command for testing
- can it be considered as a confirmation that MT4 takes swaps into account during testing and optimisation?
думаю да, так как она вычисляется и возвращает значения. а следовательно (вероятность 99% :) учитывается на балансе
Thank you!
How to correctly draw a circle with the radius of the last ZigZag break.
The radius calculation will be like this, but I don't know how to draw a circle in MT.
Расчет радиуса будет такой,а как сделать чтобы на рисовался круг в МТ не знаю.
https://www.mql5.com/ru/articles/1503/page2
How can I make indicator lines instead of objects?
This seems to be the formula where (x0,y0)is the centre of the radius.
In the Cartesian coordinate system the circle is not the graph of a function, but it can be described as the union of the graphs of the following two functions: