![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
I've come to the point where I need a formula for the sum of a power series :(
Do I need this general solution, if the answer is a single digit which does not depend on any conditions? Write a program and let an iron machine do the work.
I've come to the point where I need a formula for the sum of a power series :(
Well, it's kind of a non-issue! Draw a general view of a power series.
The formula for the withdrawable profit for each month:
fp = (d * (1 + pp) ^ (m - 1)) * ps
d is the initial deposit.
The bank rate (ratio) is pp+ps. pp - we keep it, ps - we withdraw it. At first we make the deposit (pp+ps), and then we withdraw part of it (ps), and keep the other part (pp). Maybe it would be better to enter withdrawal coefficient from the accrued, then in the formula will be bank interest and withdrawal coefficient from the accrued).
m is the number of the month.
Sergei,
I suggest you supplement the problem with the inflation rate, i.e. withdraw the maximum possible k = q - inflation. (i.e. the deposit remains not less than the initial amount in real terms / naturally, for simplicity we consider inflation as a constant value/).
I wonder how much the solution will change.
Alexei, what difference does it make?
Let the monthly inflation rate be I per cent. Then, for the equation of the withdrawal amount for period t , we can write:![](https://c.mql5.com/mql4/forum/2011/02/3_1.jpg)
For the derivative of k:
i.e. by replacing the variables q-I by Q we automatically come to the same expressions as above and hence we will not make our life easier in terms of obtaining an analytical solution for df/dk=0.
So what did you mean by that? Simply adding an additional term responsible for inflation to the expression? It is certainly interesting, but it's not the best way to complicate the model without the solution of the simplest scenario.
The formula of profit withdrawal for each month:
fp = (d * (1 + pp) ^ (m - 1)) * ps
d is the initial deposit.
The bank rate (ratio) is pp+ps. pp - we keep it, ps - we withdraw it. We start with pp+ps, then withdraw (ps) and keep (pp). Maybe it would be better to enter withdrawal coefficient from the accrued, then in the formula will be bank interest and withdrawal coefficient from the accrued).
m - sequence number of the month.
First, let's look at the filling of the first vessel only -- the second vessel is off, the valve is closed -- there is no withdrawal from the deposit.
.
.
and remember that for the discrete version used the growth factor = 0.2
well these are subtleties...
.
.
on the second step let's open the valve ;)
.
zy.
here we will not introduce a lag - in order not to complicate things
I think it is useful to remember the annuity formula and how it is derived...
;)
I think it is useful to remember the annuity formula and how it is derived...
;)
Well, bankers are not in the clear!
so this annuity explains how to turn on the valve?
:)))