Register
Welcome to Forex-TSD! , one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more
07-28-2007, 02:12 PM
Member
Join Date: Jun 2007
Posts: 63
FX_Sniper's_T3_CCI
anyone has open source for this indicator?
please post here
07-28-2007, 03:03 PM
Senior Member
Join Date: Sep 2006
Posts: 497
Quote:
Originally Posted by
Million_Fund
anyone has open source for this indicator?
please post here
FX Sniper's T3 CCI.mq4
PHP Code:
//+------------------------------------------------------------------+
//| FX Sniper's T3 CCI.mq4 |
//| FX Sniper |
//| |
//+------------------------------------------------------------------+
#property copyright "FX Sniper: T3-CCI :-)"
#property link "http://dunno.com :-)/"
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Blue
#property indicator_color2 Green
#property indicator_color3 Red
//----
extern int CCI_Period = 14 ;
extern int T3_Period = 5 ;
extern double b = 0.618 ;
//----
double e1 , e2 , e3 , e4 , e5 , e6 ;
double c1 , c2 , c3 , c4 ;
double n , w1 , w2 , b2 , b3 ;
double cci [];
double cciHup [];
double cciHdn [];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init ()
{
//---- indicators setting
SetIndexBuffer ( 0 , cci );
SetIndexBuffer ( 1 , cciHup );
SetIndexBuffer ( 2 , cciHdn );
//----
SetIndexStyle ( 0 , DRAW_LINE );
SetIndexStyle ( 1 , DRAW_HISTOGRAM );
SetIndexStyle ( 2 , DRAW_HISTOGRAM );
//----
IndicatorShortName ( "FXST3CCI(" + CCI_Period + ", " + T3_Period + ")" );
SetIndexLabel ( 0 , "FXST3CCI" );
SetIndexLabel ( 1 , NULL );
SetIndexLabel ( 2 , NULL );
//---- variable reset
b2 = b * b ;
b3 = b2 * b ;
c1 = - b3 ;
c2 = ( 3 *( b2 + b3 ));
c3 = - 3 *( 2 * b2 + b + b3 );
c4 = ( 1 + 3 * b + b3 + 3 * b2 );
n = T3_Period ;
//----
if( n < 1 )
n = 1 ;
n = 1 + 0.5 *( n - 1 );
w1 = 2 / ( n + 1 );
w2 = 1 - w1 ;
//----
return( 0 );
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start ()
{
int limit ;
int counted_bars = IndicatorCounted ();
//---- check for possible errors
if( counted_bars < 0 )
return(- 1 );
//---- last counted bar will be recounted
if( counted_bars > 0 )
counted_bars --;
limit = Bars - counted_bars ;
//---- indicator calculation
for( int i = Bars - 1 ; i >= 0 ; i --)
{
cci [ i ] = iCCI ( NULL , 0 , CCI_Period , PRICE_TYPICAL , i );
e1 = w1 * cci [ i ] + w2 * e1 ;
e2 = w1 * e1 + w2 * e2 ;
e3 = w1 * e2 + w2 * e3 ;
e4 = w1 * e3 + w2 * e4 ;
e5 = w1 * e4 + w2 * e5 ;
e6 = w1 * e5 + w2 * e6 ;
cci [ i ] = c1 * e6 + c2 * e5 + c3 * e4 + c4 * e3 ;
//----
if( cci [ i ] >= 0 )
cciHup [ i ] = cci [ i ];
else
cciHup [ i ] = 0 ;
//----
if( cci [ i ] < 0 )
cciHdn [ i ] = cci [ i ];
else
cciHdn [ i ] = 0 ;
}
//----
return( 0 );
}
//+------------------------------------------------------------------+
__________________
RUN With The BULLS And HUNT With The BEARS - Nothing By Chance
07-28-2007, 10:37 PM
Member
Join Date: Jun 2007
Posts: 63
thanks dude...appreciate that
12-13-2007, 12:19 AM
Junior Member
Join Date: Dec 2007
Posts: 3
FX_Sniper's_T3_CCI
Is there a site where I can download the indicator so I can demo test?
Thnx
12-13-2007, 12:26 AM
Senior Member
Join Date: Feb 2006
Posts: 587
Quote:
Originally Posted by
protlo
Is there a site where I can download the indicator so I can demo test?
Thnx
You have it ! Just copy/paste the code above on a new indic.
12-13-2007, 04:02 AM
Senior Member
Join Date: Oct 2007
Posts: 230
Here it is!
Dave
<><<<
11-18-2008, 02:29 PM
Junior Member
Join Date: May 2006
Posts: 10
Quote:
Originally Posted by
Million_Fund
anyone has open source for this indicator?
please post here
It is very pretty but what does it do?
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT. The time now is 04:23 AM .