HPotter

FX Sniper: T3-CCI Copy Strategy

5757 21 835
This simple indicator gives you a lot of useful information - when to enter, when to exit
and how to reduce risks by entering a trade on a double confirmed signal.
You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect             ...
Remove from Favorite Scripts Add to Favorite Scripts
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 25/07/2014
// This simple indicator gives you a lot of useful information - when to enter, when to exit
// and how to reduce risks by entering a trade on a double confirmed signal.
// You can use in the xPrice any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect...
////////////////////////////////////////////////////////////
study(title="FX Sniper:  T3-CCI Strategy", shorttitle="T3-CCI")
CCI_Period = input(14, minval=1)
T3_Period = input(5, minval=1)
b = input(0.618)
hline(0, color=purple, linestyle=line)
xPrice = close
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)
nn = iff(T3_Period < 1, 1, T3_Period)
nr = 1 + 0.5*(nn - 1)
w1 = 2 / (nr + 1)
w2 = 1 - w1    
xcci = cci(xPrice, CCI_Period)
e1 = w1*xcci + w2*nz(e1[1])
e2 = w1*e1 + w2*nz(e2[1])
e3 = w1*e2 + w2*nz(e3[1])
e4 = w1*e3 + w2*nz(e4[1])
e5 = w1*e4 + w2*nz(e5[1])
e6 = w1*e5 + w2*nz(e6[1])
xccir = c1*e6 + c2*e5 + c3*e4 + c4*e3  
cciHcolor = iff(xccir >= 0 , green,
        iff(xccir < 0, red, black))
pos = iff(xccir > 0, 1,
        iff(xccir < 0, -1, nz(pos[1], 0))) 
barcolor(pos == -1 ? red: pos == 1 ? green : blue )
plot(xccir, color=blue, title="T3-CCI")
plot(xccir, color=cciHcolor, title="CCIH", style = histogram)
aniekan.edoho
2 years ago
what is the name of this indicator
Reply
AlexandreIV
2 years ago
Hello, looks great. Could you explain how it works? Thanks.
Reply
HPotter PRO AlexandreIV
2 years ago
I do not use it. I just make coding from mql. Small info there http://forexciting.blogspot.ru/2012/07/fx-sniper-t3-cci-metatrader4-indicator.html
Reply
Dare2 PRO AlexandreIV
2 years ago
Alexandre, The FX Sniper: T3-CCI is one of the key indicators in the Lindencourt methodology. So look up Lindencourt to learn how to use it.

Reply
vaicru PRO Dare2
2 years ago
it works ?
Reply
Dare2 PRO vaicru
2 years ago
Yes. It works in combination with other indicators. I have never used it alone.
Reply
AlexandreIV AlexandreIV
2 years ago
Thank you guys.
Reply
Dare2 PRO
2 years ago
HP you did such a great job in converting T3-CCI to Pine Script for me, I thought you might be willing do do another. This on is an RSI histogram alert and can be used very nicely in combination with the T3-CCI. I use it to filter moving average and CCI signals. Here's the code:

#property copyright "BLUR71"
#property link "blrobertsjr@hotmail.com"
#property indicator_separate_window
#property indicator_buffers 4
#property indicator_color1 LimeGreen
#property indicator_width1 2
#property indicator_color2 Red
#property indicator_width2 2
#property indicator_color3 DarkSlateGray
#property indicator_width3 1
#property indicator_color4 Aqua
#property indicator_width4 0
#property indicator_style4 2
#property indicator_levelcolor DarkSlateGray
#property indicator_levelstyle 2
#define indicator_minimum -50
#define indicator_maximum 50
extern bool AlertOn=false, ColorDescendingBars=false,PlotMainLine=true, PlotSignalLine=false;
extern int RSIPeriod=13,RSIPrice=0,MASignal=0,MAMode=0,BuyAlertLevel=-10,SellAlertLevel=10;
extern double RSIHistoModify=1.5;
double UpBuffer, DownBuffer, RSIMain, RSISignal;
int Positive=0, Negative=0;
//----
int init()
{IndicatorBuffers(4);
SetIndexStyle(0,2);
SetIndexBuffer(0,UpBuffer);
SetIndexEmptyValue(0,EMPTY_VALUE);
SetIndexStyle(1,2);
SetIndexBuffer(1,DownBuffer);
SetIndexEmptyValue(1,EMPTY_VALUE);
if(PlotMainLine)
SetIndexStyle(2,0); else
SetIndexStyle(2,12);
SetIndexBuffer(2,RSIMain);
if (PlotSignalLine)
SetIndexStyle(3,0); else
SetIndexStyle(3,12);
SetIndexBuffer(3,RSISignal);
SetLevelValue(0,BuyAlertLevel);
SetLevelValue(1,SellAlertLevel);
return(0);}
//----
int deinit() {return(0);}
//----
int start()
{int counted_bars=IndicatorCounted(),I,limit;
IndicatorShortName("RSI HistoAlert ");
if (counted_bars<0) return(-1);
if (counted_bars>0) counted_bars--;
limit=Bars-31;
if(counted_bars>=31) limit=Bars-counted_bars-1;
//----
for (I=limit;I>=0;I--)
{RSIMain=((iRSI(0,0,RSIPeriod,RSIPrice,I)-50)*RSIHistoModify);
if(RSIMain>BuyAlertLevel)
{if (Positive==0)
{Positive=1;Negative=0;
if (I == 1 && AlertOn ) Alert(Symbol()," M",Period()," RSI Histo BUY @ ",Ask);}}
else if (RSIMain<SellAlertLevel)
{if(Negative==0)
{Negative=1;Positive=0;
if (I == 1 && AlertOn) Alert(Symbol()," M",Period()," RSI Histo SELL @ ",Ask);}}
if(ColorDescendingBars==true)
{if (RSIMain>RSIMain)
{UpBuffer=RSIMain;
DownBuffer=EMPTY_VALUE;}
else
{DownBuffer=RSIMain;
UpBuffer=EMPTY_VALUE;}}
else if(ColorDescendingBars==false && RSIMain>=0.00)
{UpBuffer=RSIMain;}
else
{DownBuffer=RSIMain;}}
for(I=0; I<limit; I++)
RSISignal=iMAOnArray(RSIMain,Bars,MASignal,0,MAMode,I);
return(0);
}
Reply
HPotter PRO Dare2
2 years ago
I need a *.mql file, and screenshot of result on the EURUSD for example.
Reply
Dare2 PRO HPotter
2 years ago
Okay, I'll get that to you.
Reply
Dare2 PRO HPotter
2 years ago
Not sure how to do that HP. The above is the content of the mql file, but how do I post the actual mql4 source file here? Also the picture will not copy and paste. So, forgive my ignorance, but I am at a bit of a loss.
Reply
Dare2 PRO HPotter
2 years ago
I know how to post a tradingview chart but getting a copy of a screen print from mt4 onto tradingview is another thing. What I really need to be able to do is put what you want in an email and send it to tradingview c/o but doubt that they have a 'mail room'.
Reply
HPotter PRO Dare2
2 years ago
I to send you my email in the PM.
+2 Reply
Dare2 PRO HPotter
2 years ago
That would be great. Mine is drallen2@centurylink.net.
Reply
HPotter PRO Dare2
2 years ago
Done
RSI HistoAlert
Reply
Dare2 PRO HPotter
2 years ago
I thank you so very much HP. It is exactly what I needed and a work of art to boot!
Reply
HPotter PRO Dare2
2 years ago
With colored position
RSI HistoAlert Strategy
Reply
nufim
2 years ago
cool induk
Reply
Emisfero
2 months ago
Sorry @HPotter , I have tried to hear your advices but i didn't manage to set the indicator because i'' don't understand how to set it ...could you help me please? Thanks in advance
Reply
HPotter PRO Emisfero
2 months ago
You should add to favorite and then it should be in the Indicators list as a Favorite
Reply
Emisfero HPotter
2 months ago
Thank you much! :D
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out