Diane
FWIW even though I am one of the moderators of these forums I am not an employee of eSignal.
In looking at your chart I noticed that both counts are not set up to reset if vPrice is greater than vLower or lesser than vUpper (ie where the yellow circles are drawn). I don't know if this is intended or not. If not then you will need to add either one of the following examples in your third condition. This is so that the count gets reset at every change of state.
Alex
FWIW even though I am one of the moderators of these forums I am not an employee of eSignal.
In looking at your chart I noticed that both counts are not set up to reset if vPrice is greater than vLower or lesser than vUpper (ie where the yellow circles are drawn). I don't know if this is intended or not. If not then you will need to add either one of the following examples in your third condition. This is so that the count gets reset at every change of state.
Alex
PHP Code:
//if you want to reset the count but not draw the numbers
if(vPrice>vLower&&vPrice<vUpper){
drawShapeRelative(0,vPrice,Shape.CIRCLE,null,Color.yellow,null);
if(vFlag!=0) vCounter=1;
vFlag = 0;
}
//or if you want to reset the count and draw the numbers
if(vPrice>vLower&&vPrice<vUpper){
drawShapeRelative(0,vPrice,Shape.CIRCLE,null,Color.yellow,null);
if(vFlag!=0) vCounter=1;
vFlag = 0;
if(vCounter<14) drawTextRelative(your parameters);
}
Comment