Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 17:22:49 +0000



[User Discussion] - New chart studie

View Count: 1452

[2014-05-23 17:31:43]
User52247 - Posts: 26
Hi all,
I found a new indicator that detects the output flat range : "moindre carré"

Would someone kindly translate it for sierra?
example chart attached : http://hpics.li/d4f9ba6
Thanks

FORMULE CHART STUDIE "MOINDRE CARRE"

PeriodL=50
PeriodS=20
del=4

MMEL=exponentialaverage[PeriodL](close)
MMES=exponentialaverage[PeriodS](close)

y1=(MMES[del]+MMEL[del])/2
y2=(MMES+MMEL)/2

coeff=((y2-y1)/del)*1000

return coeff
[2014-05-23 18:12:55]
crazybears - Posts: 314
hi
looks interesting and easy to code i'll try to code
[2014-05-23 18:57:51]
User52247 - Posts: 26
OK thanks
[2014-05-23 19:56:24]
crazybears - Posts: 314
try


attachmentMOINDRE_CARRE.cpp - Attached On 2014-05-23 19:56:08 UTC - Size: 2.03 KB - 499 views
[2014-05-23 20:27:31]
User52247 - Posts: 26
MOINDRE_CARRE.cpp -> C: -> SierraChart ->ACS_Source -> What do I need to do to put it on the graph ?
[2014-05-23 20:54:05]
crazybears - Posts: 314
1) Select-> Analysis -> Build Custom Studies DLL

2) on Window open click on Select file(s)button

3) select MOINDRE_CARRE.cpp click open located in C: -> SierraChart ->ACS_Source
4) click Build Custom Studies DLL button
5) should be no mess. error :)
6) click on studies -> Add Custom studies

have fun :D
[2014-05-23 21:02:59]
User52247 - Posts: 26
Wonderful, everything is ok. THANKS A LOT
You're the best :)

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

Login

Login Page - Create Account