I have modified the original code for Tipu CCI published in the Market by removing the compatibility with Tipu Panel. This version of Tipu CCI is for learning purposes and is open for anyone who is interested in developing an Expert Advisor using this indicator.
Here is an example of how to use Tipu CCI in an Expert Advisor.
//---signal int iSignal = iCustom(_Symbol,_Period,"Tipu CCI","",14,PRICE_TYPICAL,0,0,"",1,5,clrNONE,clrNONE,"",false,false,1,false,false,false,4,0); //---trend int iTrend = iCustom(_Symbol,_Period,"Tipu CCI","",14,PRICE_TYPICAL,0,0,"",1,5,clrNONE,clrNONE,"",false,false,1,false,false,false,5,0); //---method#1 if(iSignal == OP_BUY) //buy signal, for sell signal use OP_SELL if(iTrend == OP_BUY)Â Â //buy trend, for sell trend use OP_SELL //---method#2 bool bBuy = iCustom(_Symbol,_Period,"Tipu CCI","",14,PRICE_TYPICAL,0,0,"",1,5,clrNONE,clrNONE,"",false,false,1,false,false,false,6,0); bool bSell = iCustom(_Symbol,_Period,"Tipu CCI","",14,PRICE_TYPICAL,0,0,"",1,5,clrNONE,clrNONE,"",false,false,1,false,false,false,7,0);