Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 02:55:26 +0000



[Programming Help] - Arrows with Color Bar Based On Alert Condition

View Count: 1924

[2020-04-14 16:59:54]
MecGrp - Posts: 12
Hello,

I am trying to get an up arrow at the lows (or down arrow at the high) of a bar based on a simple conditions.

For example, If Close is lower than Open AND Numbers Bars Calculated value ("Ask Volume Bid Volume Difference Changes (SG3)) is > 0... then give me an Up arrow at the lows of the bar.

=AND(C<O,ID4.SG3>0)

See "What-I-Want-To-See" image.

I have reviewed your documentation or read some threads on the support board but am still missing something.

I have only been able to do that with "Point On Low" draw style within the "Color Bar Based On Alert Condition" Study but if I select an arrow (or triangle or anything else), I get an obscure graph. I have also played around with the scale setting but to no avail. See "What-I-Get" image.

Thanks for your help.
imageWhat-I-Want-to-See.png / V - Attached On 2020-04-14 16:28:07 UTC - Size: 62.73 KB - 526 views
imageSettings.png / V - Attached On 2020-04-14 16:28:37 UTC - Size: 159.5 KB - 369 views
imageWhat-I-get.png / V - Attached On 2020-04-14 16:53:50 UTC - Size: 149.33 KB - 403 views
[2020-04-15 12:54:59]
Sawtooth - Posts: 3982
You'll need two instances of the color bar study, one for each direction.

Then follow the instructions here:
Color Bar Based on Alert Condition: Drawing Arrows/Text or Other Styles at the High or Low of Bars
[2020-04-15 19:24:51]
MecGrp - Posts: 12
Thanks.

My issue was in step 5 and 6:

5. Set the Output When Condition Is True Input with the study to Use Input Data. This step and the next step, are necessary to control the value for the Draw Style to be drawn at. Other than using 1 which will not work.
6. Set the Input Data Input to High or Low.

That seemed to do the trick (see fixed image).

Now am just going to play around with the formula to get the indicator aligned to my liking.

Thanks again.
imageFixed.PNG / V - Attached On 2020-04-15 19:22:35 UTC - Size: 28 KB - 456 views

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

Login

Login Page - Create Account