Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 23:32:29 +0000



[User Discussion] - moving average, current day only

View Count: 1467

[2013-12-08 14:34:21]
Todd - Posts: 62
I would like to create a moving average of period 100, but I would only like to consider bars from the current session. If I'm on bar 10 of the current session, then I would only like to have those 10 bars in the MA calculation. Is there a way to accomplish this? Thanks for your help.
[2013-12-09 02:55:04]
vegasfoster - Posts: 444
I can do this within next couple days.
[2013-12-09 03:05:28]
Todd - Posts: 62
Vegas- that's very generous of you!
[2013-12-10 19:12:15]
vegasfoster - Posts: 444
I have the cutoff set how my brain works, but take a look and if it's shifted of how you think of it then I can change it. Also, if you want to use an exotic moving average not listed, e.g. T3, then I will have to add it manually. Let me know.
attachmentGregoryMA.cpp - Attached On 2013-12-10 19:11:37 UTC - Size: 1.97 KB - 540 views
attachmentGregoryMA.dll - Attached On 2013-12-10 19:11:52 UTC - Size: 17 KB - 466 views
[2013-12-11 02:12:19]
Todd - Posts: 62
I just gave this a try and it worked perfectly, and had all the parameters I was expecting.

Do you work for Sierra Chart.. how can I thank you for your help?
[2013-12-11 06:29:48]
vegasfoster - Posts: 444
:)
[2013-12-11 15:02:17]
Todd - Posts: 62
Whatever the case, thanks Vegas! Looking over the code was helpful as well.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account