Support Board
Date/Time: Tue, 20 May 2025 03:30:31 +0000
[Programming Help] - LBR Studies
View Count: 530
[2024-01-07 02:25:34] |
User624595 - Posts: 243 |
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) |
![]() ![]() |
[2024-01-10 20:30:37] |
User624595 - Posts: 243 |
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 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: 243 |
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
|
![]() ![]() |
To post a message in this thread, you need to log in with your Sierra Chart account: