this given parameter, weight, shows the ratio of the current weight to the previous one, and I need the ratio of all to the last one, i.e. to the current one. the proportion of the weight of the yema on different bars to the current yema decreases exponentially - I just need to make this exponent visual
so i'm asking for a formula :) which will visualise the weight of the other yamas in the current one. Let's say the weight of the first one is 0.2. Then the second is 0.2*(1-0.2) = 0.2*0.8^1 = 0.16 third - 0.2*0.8^2 = 0.128 fourth - 0.2*0.8^3 = 0.1024 etc. these must be displayed
These are not EMA calculations, but weights of prices in the EMA calculated at a given bar. And the weights of the other EMAs in the current... I can't get into that, that's for sure.
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.
the proportion of the weight of the yema on different bars to the current yema decreases exponentially - I just need to make this exponent visual
which will visualise the weight of the other yamas in the current one.
Let's say the weight of the first one is 0.2.
Then the second is 0.2*(1-0.2) = 0.2*0.8^1 = 0.16
third - 0.2*0.8^2 = 0.128
fourth - 0.2*0.8^3 = 0.1024 etc.
these must be displayed
And the weights of the other EMAs in the current... I can't get into that, that's for sure.
Моей или от eddy?
yours we smoke in another thread:))))