statist247 #: ...need to throw the current balance into some variable before each check of the conditions for entering a position...
If I were to do it for myself for real trading, then instead of saving the balance, I would check the history (HistoryDealsTotal()) and calculate the previous balance.
I have never thought about this topic, but today something prompted me. The question is actually this: I understand how bars and candlesticks are drawn in MT5 terminal. But how a broken line is drawn, I don't understand at all. Maybe someone knows the formula for calculating the inflection point (actually the price) of this line on each bar?
I have never thought about this topic, but today something prompted me. The question is actually this: I understand how bars and candlesticks are drawn in MT5 terminal. But I don't understand how a broken line is drawn. Maybe someone knows the formula for calculating the inflection point (actually the price) of this line on each bar?
I have a dynamic Magic that is set with m_trade.SetExpertMagicNumber() . I need to enter this Magic in the position comment. How can you find out what Magic is set in environment?
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.
Why GV if a variable at the global level is enough? Or even just static
...variable is saved and it can be compared with the current balance...
File Functions
Why GV if a variable at the global level is enough? Or even just static
This is for real work, after reinitialisation we will lose the maximum balance that was achieved before. Lights out, all that)
...need to throw the current balance into some variable before each check of the conditions for entering a position...
If I were to do it for myself for real trading, then instead of saving the balance, I would check the history (HistoryDealsTotal()) and calculate the previous balance.
Good day everyone!
I have never thought about this topic, but today something prompted me. The question is actually this: I understand how bars and candlesticks are drawn in MT5 terminal. But how a broken line is drawn, I don't understand at all. Maybe someone knows the formula for calculating the inflection point (actually the price) of this line on each bar?
Regards, Vladimir.
Good day, everyone!
I have never thought about this topic, but today something prompted me. The question is actually this: I understand how bars and candlesticks are drawn in MT5 terminal. But I don't understand how a broken line is drawn. Maybe someone knows the formula for calculating the inflection point (actually the price) of this line on each bar?
Regards, Vladimir.
At the closing price of the candle\bar.
At the closing prices of the candle bar.
Hi, Alexey, a big THANK YOU.
Regards, Vladimir.