Questions from Beginners MQL5 MT5 MetaTrader 5 - page 851
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Wouldn't it be better to make a simple Refresh() function, for example, with the required formal parameters, and call it when necessary?
And by the way, when you get rates_total in the indicator beyond OnCalculate() using Bars() with a date range, you can lead to freezing of the indicator:
And when refresh() is performed, will the indicator be recalculated by all bars?
Is Refresh() going to recalculate the indicator on all bars?
So... how do you make the function, that's how it will be...
In mcool5 I got the rsi buffer from the indicator, but how do I open a trade if rsi is above 70?
I mean how to open a deal - I know and how to get this current rsi value for comparison with the number 70 - I don't know.
All the instructions are here: https://www.mql5.com/ru/articles/43
In mcool5 I got the rsi buffer from the indicator, but how do I open a trade if rsi is above 70?
I mean how to open a deal - I know and how to get this current rsi value for comparison with the number 70 - I don't know.
All the instructions are here: https://www.mql5.com/ru/articles/43
Here is an example
Guys, I am writing with a question how to copy the price of an open trade, for example, I open a position and record the date, levels, etc., etc., and I do not feel comfortable writing everything by hand, the date is copied, stop is copied, TP is also copied, but the price is not?
Show me your mql5 code, please.
How to calculate the lot size depending on the deposit size, and the expected series of losing trades, if the lot is multiplied by 2 after a losing trade.
Profit always equals loss, TP = 10, SL = 10. For example depo 6000 What lot to open first trade to survive 15 losing trades in a row?
Skipped maths.
How to calculate the lot size depending on the deposit size, and the expected series of losing trades, if the lot is multiplied by 2 after a losing trade.
Profit always equals loss, TP = 10, SL = 10. For example depo 6000 What lot to open first trade to survive 15 losing trades in a row?
I missed maths.
Even the smallest lot would be too big.
Even the smallest lot would be too big.
Well, 15 is for example, I'm interested in the formula for calculating the lot
Well, 15 is for example, I'm interested in the formula for calculating the lot
You need the formula for the sum of the first N members of a geometric progression (search for it).
N - this is how many times in a row closing on the SL
The obtained amount is multiplied by the loss in currency from 1 SL with the minimum lot (0.01) - get the total loss after N losses for the case of the minimum lot.