Svinozavr>>: Ну набросал я индикатор по SMA. Вообще-то, что весовая часть дробной части приходится на старший бар, логично. Отсчитываем-то назад, в историю. Вот картинка. красный - SMA(4), синий - SMA(3.5), зеленый - SMA(4.5): Индюк прикреплен, и вот код:
By the way, have been watching the SMAs with periods of 1.1, 1.2 etc. It's funny. In short, it's a lot of fun. I think it has - IMHO - no practical application, but as an actualization of the oxymoron "a simple slip with a fractional period"))) will do. There is something of Zen fables in it ("Clap one palm" etc. )))) === Alexey should put this topic into the non-trade-related tasks branch initially.)))
Yes... That's not the point. It's just that as a purely practical person, it never occurred to me to open this chest. I have enough boxes of my own, I would even say Pandora's boxes)). === Shall I put it in the base? Or is it still better not to embarrass yourself with trinkets?)))
Why for an exponential? It has a "fractional" period from the start, which it doesn't have - it only has feedback coefficients. That's how MT made it so that EMA is not fractional. As it is, it has always had a fractional parameter. Recalculate this coefficient from fractional period and it's done. k=2.0/(1+period); Well, the rest of the standard ones are elementary already done.
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.
Ну набросал я индикатор по SMA. Вообще-то, что весовая часть дробной части приходится на старший бар, логично. Отсчитываем-то назад, в историю.
Вот картинка. красный - SMA(4), синий - SMA(3.5), зеленый - SMA(4.5):
Индюк прикреплен, и вот код:
That's great!
And not 200 lines of code...
;)
In short, it's a lot of fun. I think it has - IMHO - no practical application, but as an actualization of the oxymoron "a simple slip with a fractional period"))) will do. There is something of Zen fables in it ("Clap one palm" etc. ))))
===
Alexey should put this topic into the non-trade-related tasks branch initially.)))
А ларчик просто открывался...
Yes... That's not the point. It's just that as a purely practical person, it never occurred to me to open this chest. I have enough boxes of my own, I would even say Pandora's boxes)).
===
Shall I put it in the base? Or is it still better not to embarrass yourself with trinkets?)))
Голова работает, но не в том ключе.
Then let's get on with it. ;)
Remaining are.
3. for exponential?
Садись "5" - подъеб защитан. Остался 4 вариант, но решается также как и предыдущие 2.
:о)
Тогда продолжим. ;)
Остались -
Why for an exponential? It has a "fractional" period from the start, which it doesn't have - it only has feedback coefficients. That's how MT made it so that EMA is not fractional. As it is, it has always had a fractional parameter. Recalculate this coefficient from fractional period and it's done. k=2.0/(1+period);
Well, the rest of the standard ones are elementary already done.