Hi all,
Following is the xtl formula.
_SECTION_BEGIN("xtl");
tgt = 35;
a = CCI(20) < -tgt;
b = CCI(20) > tgt;
state = IIf(a>b,-1,IIf(a==b,0,1));
Color = IIf(state == 0, colorBlack, IIf(state == 1, colorLime, IIf(state == -1, colorRed, 0)));
I would to have buy arrow for the following the condition.
Here are the values for the bar when CCI(20)> tgt
O = 342
H = 350
L = 340
C = 348
The range for this bar is 10 (i.e. 350-340)
I would like to get buy arrow at value of 355 i.e. adding half of the range to the high of the trigger bar.
350 + ((350-340)/2) = 355
Can anyone help me on this?
Thanks
Amruta
Following is the xtl formula.
_SECTION_BEGIN("xtl");
tgt = 35;
a = CCI(20) < -tgt;
b = CCI(20) > tgt;
state = IIf(a>b,-1,IIf(a==b,0,1));
Color = IIf(state == 0, colorBlack, IIf(state == 1, colorLime, IIf(state == -1, colorRed, 0)));
I would to have buy arrow for the following the condition.
Here are the values for the bar when CCI(20)> tgt
O = 342
H = 350
L = 340
C = 348
The range for this bar is 10 (i.e. 350-340)
I would like to get buy arrow at value of 355 i.e. adding half of the range to the high of the trigger bar.
350 + ((350-340)/2) = 355
Can anyone help me on this?
Thanks
Amruta