TraderBambu, Juice (and your friend)
Thank you both for the compliments.
Also, here below is a modification that was requested by someone who needs to paint the bars with another efs but would still like to see which bars cross the Linear Regression. Substitute the corresponding sections in the efs.
function onAction1() {
//setPriceBarColor(Color.RGB(0,0,255));
if (vLastAlert != 1) Alert.playSound("C:\\PROGRAM FILES\\ESIGNAL\\Sounds\\Ding.wav");
if (vLastAlert !=1) drawShapeRelative(0, 5, Shape.DOWNTRIANGLE , null, Color.blue, Shape.RELATIVETOTOP,1);
vLastAlert = 1;
}
function onAction2() {
//setPriceBarColor(Color.RGB(255,0,0));
if (vLastAlert != 2) Alert.playSound("C:\\PROGRAM FILES\\ESIGNAL\\Sounds\\Ding.wav");
if (vLastAlert !=2) drawShapeRelative(0, 0, Shape.UPTRIANGLE, null, Color.red, Shape.RELATIVETOBOTTOM,2);
vLastAlert = 2;
}
The result is two triangles, one blue on the top border of the chart and one red on the bottom border of the chart that are plotted in correspondence of the bars that cross the Linear Regression Channel
Alex
Thank you both for the compliments.
Also, here below is a modification that was requested by someone who needs to paint the bars with another efs but would still like to see which bars cross the Linear Regression. Substitute the corresponding sections in the efs.
function onAction1() {
//setPriceBarColor(Color.RGB(0,0,255));
if (vLastAlert != 1) Alert.playSound("C:\\PROGRAM FILES\\ESIGNAL\\Sounds\\Ding.wav");
if (vLastAlert !=1) drawShapeRelative(0, 5, Shape.DOWNTRIANGLE , null, Color.blue, Shape.RELATIVETOTOP,1);
vLastAlert = 1;
}
function onAction2() {
//setPriceBarColor(Color.RGB(255,0,0));
if (vLastAlert != 2) Alert.playSound("C:\\PROGRAM FILES\\ESIGNAL\\Sounds\\Ding.wav");
if (vLastAlert !=2) drawShapeRelative(0, 0, Shape.UPTRIANGLE, null, Color.red, Shape.RELATIVETOBOTTOM,2);
vLastAlert = 2;
}
The result is two triangles, one blue on the top border of the chart and one red on the bottom border of the chart that are plotted in correspondence of the bars that cross the Linear Regression Channel
Alex
Comment