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.
Give me five more minutes
but how??? where to fix it??
Here, you can edit it.
/---- main calculation loop while(pos>=0) { sum+=Close[pos]; ExtMapBuffer[pos]=sum/MA_Period; sum-=Close[pos+MA_Period-1]; pos--; }OK. Well, I've already added ten.
What's so funny? People are solving a problem, and you're threatening to close the topic in a hurry.
Stop trolling. I'm not an idiot, I can see that. There is constructive feedback, but no thanks to you.
And yet: where is the answer to my question!
Edit here
Sorry, but I don't know much about code... Is it a ready-made solution to be found in the MA code and replaced with what you have tweaked?
No. It's a piece of code that you have to correct.
It can. To do this, you do not need to take past bars, but future ones.
This way you can get e.g. a MA with a period of minus 20 everywhere except for the last 20 bars.
I.e. it is the same as shifting -20 in МА settings?
Stop trolling. I'm not an idiot, I can see everything. There's constructive feedback, but no thanks to you.
And yet: where is the answer to my question?!
I was just able to say thank you.
Edit here