Support Board
Date/Time: Tue, 26 Nov 2024 02:21:14 +0000
[Programming Help] - LBR Studies
View Count: 407
[2024-01-07 02:25:34] |
User624595 - Posts: 207 |
Many popular platforms like thinkorswim, tradingview, etc have officially or users have added the popular set of LBR studies, 3-10 MACD, 2 Period ROC, 3 Bar Triangle, Momentum Pinball, etc. Has anyone coded these for SC, or could Support add them?
|
[2024-01-07 21:26:18] |
mkata - Posts: 103 |
Could someone help with SC study and code for 3 bar triangle? Signal if the third bar, has: high below prior 2 bar high, low above prior 2 bar low.
I went ahead and did the triangle one. (PS. I won't be doing the others since they already exist and/or my own lack of interest) |
3BarTriangle.cpp - Attached On 2024-01-07 21:17:38 UTC - Size: 1.13 KB - 134 views 3BarTriangle_64.dll - Attached On 2024-01-07 21:17:53 UTC - Size: 91 KB - 293 views |
[2024-01-10 20:30:37] |
User624595 - Posts: 207 |
It should signal if current high is below EITHER of the 2 prior bars, and current low above either of the 2 prior bars, not both. It may be set to AND, and is not signaling on valid 3 bar triangles. Also, could it be possible to have it draw a triangle on the chart as shown? Thank you! |
2024-01-10_11h08_53.png / V - Attached On 2024-01-10 20:30:33 UTC - Size: 12.1 KB - 66 views |
[2024-01-10 21:42:44] |
mkata - Posts: 103 |
I see, I guess I read that wrong. Given that definition you are going to end up with a lot of signals. Do this: 1) Use the High/Low over N-bars study set to 3 (ID1) 2) Color Bar Alert Condition: =AND(H<ID1.SG1, L>ID1.SG2) 3) Hide High/Low over N-bars study |
[2024-01-11 01:55:31] |
User624595 - Posts: 207 |
Thank you, curious, is there a change in the code for the one you wrote that covers that definition also? Instead of "&&" some kind of "OR" ? Date Time Of Last Edit: 2024-01-11 01:55:38
|
[2024-01-11 16:14:02] |
mkata - Posts: 103 |
Yes, here's the "correct" version.
Date Time Of Last Edit: 2024-01-11 16:49:43
|
3BarTriangleV2.cpp - Attached On 2024-01-11 16:12:57 UTC - Size: 1.14 KB - 187 views 3BarTriangleV2_64.dll - Attached On 2024-01-11 16:13:05 UTC - Size: 91 KB - 129 views |
To post a message in this thread, you need to log in with your Sierra Chart account: