Login Page - Create Account

Support Board


Date/Time: Wed, 27 Nov 2024 21:27:50 +0000



Post From: Simple or impossible alert question

[2014-06-13 18:53:37]
jackw - Posts: 57
I gave this some additional thought, and realized I could simplify things a bit by using the 'Color Bar Based on Slope Study'. It allows you to add both uptrend and downtrend alerts while requiring only 6 studies. (My previous post above would have required 10.)

Again, I'm assuming your chartbook is laid out as follows:
* It contains 3 charts... 10-min, 30-min and 90 min
* You have added the 14 bar CCI and 50 bar CCI studies to the 10-min chart.
* You have added the 50 bar CCI to the 30-min chart, and then used the Study/Price Overlay study to overlay the CCI onto the 10-min chart. On the overlay study, you have set 'Fill Blanks with Last Value' to Yes.
* You have added the 50 bar CCI to the 90-min chart, and then used the Study/Price Overlay study to overlay the CCI onto the 10-min chart. On the overlay study, you have set 'Fill Blanks with Last Value' to Yes.

Add the 'Color Bar Based On Slope' study to the 30-min chart.
Set the 'Based On:' drop box to 'Commodity Channel Index'
Set 'Input Data' to CCI
Set 'Use +1 and -1' to Yes
Hide the color bar study.

Add the 'Color Bar Based On Slope' study to the 90-min chart.
Set the 'Based On:' drop box to 'Commodity Channel Index'
Set 'Input Data' to CCI
Set 'Use +1 and -1' to Yes
Hide the color bar study.

On the 10-min chart, add the 'Study/Price Overlay' study and use it to overlay the 'Color Bar Based On Slope' study from the 30-min chart.
Set 'Fill Blanks with Last Value' to Yes. Hide the study.

On the 10-min chart, add the 'Study/Price Overlay' study and use it to overlay the 'Color Bar Based On Slope' study from the 90-min chart.
Set 'Fill Blanks with Last Value' to Yes. Hide the study.

On the 10-min chart, add the 'Color Bar Based On Alert Condition' study. On the study's Alerts tab, enter the following condition:
AND(ID?.SG1 > ID?.SG1[-1], ID??.SG1 > ID??.SG1[-1], ID???.SG1 = 1, ID????.SG1 = 1)
Replace the '?' with the ID# of the 14 bar CCI study on this chart.
Replace the '??' with the ID# of the 50 bar CCI study on this chart.
Replace the '???' with the ID# of the 'Study/Price Overlay' study you previously added to this chart that referenced the 'Color Bar Based On Slope' study on the 30-min chart.
Replace the '????' with the ID# of the 'Study/Price Overlay' study you previously added to this chart that referenced the 'Color Bar Based On Slope' study on the 90-min chart.
The study will color the chart bars when all 4 CCI are trending up. Set the color you want the bars to be.

On the 10-min chart, add the 'Color Bar Based On Alert Condition' study. On the study's Alerts tab, enter the following condition:
AND(ID?.SG1 < ID?.SG1[-1], ID??.SG1 < ID??.SG1[-1], ID???.SG1 = -1, ID????.SG1 = -1)
Replace the '?' with the ID# of the 14 bar CCI study on this chart.
Replace the '??' with the ID# of the 50 bar CCI study on this chart.
Replace the '???' with the ID# of the 'Study/Price Overlay' study you previously added to this chart that referenced the 'Color Bar Based On Slope' study on the 30-min chart.
Replace the '????' with the ID# of the 'Study/Price Overlay' study you previously added to this chart that referenced the 'Color Bar Based On Slope' study on the 90-min chart.
The study will color the chart bars when all 4 CCI are trending down. Set the color you want the bars to be.

Again, if you are unable to get it to work correctly, post your chartbook, and I'll try to modify if for you.