Page 72 of 76

Re: CCI indicators for MT4

Posted: Sun Jan 14, 2024 4:12 pm
by mrtools
sal wrote: Sun Jan 14, 2024 3:23 pm this indicator no change in arrows
wrong indicator attached, please have a look
No I posted the filtered version, added the filter conditions you asked for on slope change only.

Re: CCI indicators for MT4

Posted: Sun Jan 14, 2024 4:38 pm
by sal
mrtools wrote: Sun Jan 14, 2024 4:12 pm No I posted the filtered version, added the filter conditions you asked for on slope change only.
i can see on chart lot of arrows see snap, :(
as per rule its very few suppose to visible on chart
see rule filter arrow marked for DN
simple way we can say.. DOWN ARROW MUST BE ON BULLISH BAR
UP ARROW MUST BE ON BEARISH BAR
if we select mode for SLOPE direction of CCI in settings

Re: CCI indicators for MT4

Posted: Sun Jan 14, 2024 4:43 pm
by sal
vertical lines locations are following the requested rule

Re: CCI indicators for MT4

Posted: Mon Jan 15, 2024 12:56 am
by mrtools
sal wrote: Sun Jan 14, 2024 4:38 pm i can see on chart lot of arrows see snap, :(
as per rule its very few suppose to visible on chart
see rule filter arrow marked for DN
simple way we can say.. DOWN ARROW MUST BE ON BULLISH BAR
UP ARROW MUST BE ON BEARISH BAR
if we select mode for SLOPE direction of CCI in settings
Simply change in lines 210 - 212

Code: Select all

 case col_colorOnSlope: 
                    if (cci[i]>cci[i+1] && Open[i]<Close[i])  trend[i] =  1;
                    if (cci[i]<cci[i+1] && Open[i]>Close[i])  trend[i] = -1;
to

Code: Select all

 case col_colorOnSlope: 
                    if (cci[i]>cci[i+1] && Open[i]>Close[i])  trend[i] =  1;
                    if (cci[i]<cci[i+1] && Open[i]<Close[i])  trend[i] = -1;
Far as I'm aware bullish/bearish bar is open<>close.

Re: CCI indicators for MT4

Posted: Mon Jan 15, 2024 1:31 am
by sal
mrtools wrote: Mon Jan 15, 2024 12:56 am Simply change in lines 210 - 212

Code: Select all

 case col_colorOnSlope: 
                    if (cci[i]>cci[i+1] && Open[i]<Close[i])  trend[i] =  1;
                    if (cci[i]<cci[i+1] && Open[i]>Close[i])  trend[i] = -1;
to

Code: Select all

 case col_colorOnSlope: 
                    if (cci[i]>cci[i+1] && Open[i]>Close[i])  trend[i] =  1;
                    if (cci[i]<cci[i+1] && Open[i]<Close[i])  trend[i] = -1;
Far as I'm aware bullish/bearish bar is open<>close.
thanks bro.. now its updated <3

Re: CCI indicators for MT4

Posted: Mon Jan 15, 2024 2:01 am
by sal
Far as I'm aware bullish/bearish bar is open<>close.
[/quote]
mr.tools
some places the arrows are not appear.. and after replace the close, the slope colour change...
see snap
before and after

Re: CCI indicators for MT4

Posted: Mon Jan 15, 2024 2:10 am
by sal
cci "V" pattern at OB/OS is a good sign of trend reversal.. with disagree price action ..
see snap

Re: CCI indicators for MT4

Posted: Mon Jan 15, 2024 2:25 am
by mrtools
My bad, my idea messed with the cci slope coloring, right now off the top of my head not sure how to do this just using slope coloring.

Re: CCI indicators for MT4

Posted: Mon Jan 15, 2024 3:11 am
by sal
mrtools wrote: Mon Jan 15, 2024 2:25 am mr.tools
some places the arrows are not appear.. and after replace the close, the slope colour change...
see snap
before and after
mrtools wrote: Mon Jan 15, 2024 2:25 am My bad, my idea messed with the cci slope coloring, right now off the top of my head not sure how to do this just using slope coloring.
bro..
i think its based on BULL COLOUR AND BEAR COLOUR of price.
i find code model from indicator which works well

extern color BullCol = clrRed; //clrGreen;
extern color BearCol = clrGreen; //clrRed;
IndicatorBuffers(2);
SetIndexBuffer(0,buffer1);
SetIndexStyle(0,DRAW_ARROW,0,0,BullCol);
SetIndexArrow(0,upCode);
SetIndexBuffer(1,buffer2);
SetIndexStyle(1,DRAW_ARROW,0,0,BearCol);
SetIndexArrow(1,dnCode);

buffer1[i] = iCustom(NULL,TimeFrame,indicatorFileName,PERIOD_CURRENT,BullCol,BearCol,gap,upCode,dnCode,0,y);
buffer2[i] = iCustom(NULL,TimeFrame,indicatorFileName,PERIOD_CURRENT,BullCol,BearCol,gap,upCode,dnCode,1,y);

Re: CCI indicators for MT4

Posted: Tue Jan 23, 2024 8:39 pm
by Pristine7471
Does anyone have a double CCI with an alert when the CCI's cross? The only ones I can find have an alert when the CCI crosses zero. Thanks in advance!