Download DeMark TD Sequential MT4 Indicators and PDF

demark-td-sequential-mt4-indicator1DeMark TD Sequential MT4 Indicators
TD Sequential.mq4
TD Sequential v1.mq4
TD Sequential v2.mq4

 

DeMark TD Sequential PDF’s
TD Sequential Impressive Signals From Demark
TD SEQUENTIAL

“Currencies have long been praised for their capacity
to trend, but in today’s market, an objective
countertrend technique might be a forex trader’s
most valuable asset. TD Sequential is designed to
identify trend exhaustion points and keep you one
step ahead of the trend-following crowd.”

This package include all three DeMark TD Sequential Indicators and TD Sequential PDF’s

 

[php]

//+——————————————————————+
//| TD Sequential.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+——————————————————————+
#property copyright “James OBrien”
#property link “http://www.metaquotes.net”

#property indicator_chart_window
//#property indicator_buffers 1
//#property indicator_color1 LimeGreen
//#property indicator_color2 Red
//—- input parameters
extern int NumBars=1000;
extern int Gap=5;
int i;
int num=0;
int num1=0;
string textVar;

//—- buffers
//double ExtMapBuffer1[];
//double ExtMapBuffer2[];

//double b4plusdi,b4minusdi,nowplusdi,nowminusdi;

//+——————————————————————+
//| Custom indicator initialization function |
//+——————————————————————+
int init()
{
//—- indicators

/*

SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,159);
SetIndexBuffer(0, ExtMapBuffer1);

SetIndexStyle(1,DRAW_ARROW,EMPTY);
SetIndexArrow(1,234);
SetIndexBuffer(1, ExtMapBuffer2);
*/
//—-
return(0);
}
//+——————————————————————+
//| Custor indicator deinitialization function |
//+——————————————————————+
int deinit()
{
//—- TODO: add your code here

for(int i=NumBars; i>=0; i–)
{
ObjectDelete(“Sq”+i);
}

//—-
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–;
//if(NumBars==0) NumBars=Bars;
//limit=NumBars-counted_bars;
//—- macd counted in the 1-st buffer

for(int i=NumBars; i>=0; i–)
{

ObjectDelete(“Sq”+i);

if(Close[i+1]<Close[i+5])num = num + 1;
else num = 0;
if (num > 6 && num < 10) {
textVar = num;
ObjectCreate(“Sq”+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-Gap*Point );
ObjectSetText(“Sq”+i, “”+DoubleToStr(num,0), 6, “Arial”, Gold);
ObjectsRedraw();
}
if (num == 9) {
ObjectCreate(“Sq”+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-Gap*Point );
ObjectSetText(“Sq”+i, “”+DoubleToStr(num,0), 16, “Arial”, Red);
ObjectsRedraw();
}
else if((Close[i+1]<Close[i+5])&& num>=10)
{
ObjectCreate(“Sq”+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-Gap*Point );
ObjectSetText(“Sq”+i, “”+DoubleToStr(num,0), 8, “Arial”, Orange);
ObjectsRedraw();
}

if(Close[i+1]>Close[i+5]) num1 = num1 + 1;
else num1 = 0;

if (num1 > 6 && num1 < 9)
{
textVar = num1;
ObjectCreate(“Sq”+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+Gap*Point );
ObjectSetText(“Sq”+i, “”+DoubleToStr(num1,0), 6, “Arial”, Aqua);
ObjectsRedraw();
}
else
if (num1 == 9) {
ObjectCreate(“Sq”+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+Gap*Point );
ObjectSetText(“Sq”+i, “”+DoubleToStr(num1,0), 16, “Arial”, RoyalBlue);
ObjectsRedraw();
}
else if(num1>=10)
{
ObjectCreate(“Sq”+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+Gap*Point );
ObjectSetText(“Sq”+i, “”+DoubleToStr(num1,0), 8, “Arial”, LightSkyBlue);
ObjectsRedraw();
}
}

//—-
return(0);
}

&nbsp;

[/php]

[php]

//+——————————————————————+
//| TD_Sequential.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+——————————————————————+
#property copyright “James OBrien”
#property link “http://www.metaquotes.net”

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 LimeGreen
//#property indicator_color2 Red
//—- input parameters
//int shift=0;
int i;
int num=0;
int num1=0;
string textVar;
//—- buffers
double ExtMapBuffer1[];
//double ExtMapBuffer2[];

//double b4plusdi,b4minusdi,nowplusdi,nowminusdi;

//+——————————————————————+
//| Custom indicator initialization function |
//+——————————————————————+
int init()
{
//—- indicators

SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,159);
SetIndexBuffer(0, ExtMapBuffer1);
/*
SetIndexStyle(1,DRAW_ARROW,EMPTY);
SetIndexArrow(1,234);
SetIndexBuffer(1, ExtMapBuffer2);
*/
//—-
return(0);
}
//+——————————————————————+
//| Custor indicator deinitialization function |
//+——————————————————————+
int deinit()
{
//—- TODO: add your code here
int limit;
limit=1500;
for(int i=limit; i>=0; i–)
{
ObjectDelete(“”+i);
}

//—-
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=1500-counted_bars;
//—- macd counted in the 1-st buffer

&nbsp;

for(int i=limit; i>=0; i–)
{
if(Close[i+1]<Close[i+5])num = num + 1;
else num = 0;
if (num > 0 && num < 10) {
textVar = num;
ObjectCreate(“”+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
ObjectSetText(“”+i, “”+DoubleToStr(num,0), 10, “Arial”, Red);
}
if (num == 9) {
ObjectCreate(“”+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
ObjectSetText(“”+i, “”+DoubleToStr(num,0), 16, “Arial”, Red);
}
else if((Close[i+1]<Close[i+5])&& num>=10)
{
ObjectCreate(“”+i, OBJ_TEXT, 0, Time[i+1],Low[i+1]-5*Point );
ObjectSetText(“”+i, “”+DoubleToStr(num,0), 10, “Arial”, Orange);
}

if(Close[i+1]>Close[i+5]) num1 = num1 + 1;
else num1 = 0;

if (num1 > 0 && num1 < 10)
{
textVar = num1;
ObjectCreate(“”+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
ObjectSetText(“”+i, “”+DoubleToStr(num1,0), 10, “Arial”, RoyalBlue);
}
if (num1 == 9) {
ObjectCreate(“”+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
ObjectSetText(“”+i, “”+DoubleToStr(num1,0), 16, “Arial”, RoyalBlue);
}
else if((Close[i+1]>Close[i+5])&& num1>=10)
{
ObjectCreate(“”+i, OBJ_TEXT, 0, Time[i+1],High[i+1]+10*Point );
ObjectSetText(“”+i, “”+DoubleToStr(num1,0), 10, “Arial”, LightSkyBlue);

}

}

//—-
return(0);
}

&nbsp;

[/php]

[php]

//+——————————————————————+
//| cTD Sequential.mq4 |
//| Copyright © 2006, ch33z3 |
//| http://4xjournal.blogspot.com/ |
//| TD Sequential is a TradeMark of Thomas DeMark |
//+——————————————————————+
#property copyright “Copyright © 2006, ch33z3”
#property link “http://4xjournal.blogspot.com/”

//—- indicator settings
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Green

extern color BuySetup=Red;
extern color SellSetup=Green;
extern color Countdown=Orange;

//—- indicator parameters

//—- indicator buffers
double R[];
double G[];

//+——————————————————————+
//| Custom indicator initialization function |
//+——————————————————————+
int init()
{
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_ARROW,0,1.5);
SetIndexBuffer(0,R);
SetIndexArrow(0,234);
SetIndexStyle(1,DRAW_ARROW,0,1.5);
SetIndexBuffer(1,G);
SetIndexArrow(1,233);
return(0);
}

//+——————————————————————+
//| Custom indicator deinitialization function |
//+——————————————————————+
int deinit()
{
for(int i=0;i<Bars;i++) {
ObjectDelete(“”+i);
ObjectDelete(“cd”+i); }
return(0);
}

//+——————————————————————+
//| TD Sequential |
//+——————————————————————+
int start()
{
int bc=0;
int sc=0;
double tfm=Point*MathSqrt(Period())/1.05;
double tfm2=Point*MathSqrt(Period());
int x;
int fbc=0;
int fsc=0;
double low;
double high;
int bcd=0;
int scd=0;

int limit;
int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars–;
limit=Bars-counted_bars+10;
for(int i=limit; i>0; i–) {

//+– Buy Setup Start –|
if(Close[i]<Close[i+4] && Close[i+1]>=Close[i+5] && bc==0) {
bc=1;
ObjectCreate(“”+i,OBJ_TEXT,0,Time[i],High[i]+tfm);
ObjectSetText(“”+i,””+bc,8,”Arial”,BuySetup);
fbc=i;
scd=0;}
if(Close[i]<Close[i+4] && bc!=0 && ObjectFind(“”+i)==-1 && fbc!=i) {
bc++;
if(bc==9) {
if(Low[i+2]>Low[i+3]) low=Low[i+3];
else low=Low[i+2];
if(Low[i]<low || Low[i+1]<low) {
ObjectCreate(“”+i,OBJ_TEXT,0,Time[i],High[i]+tfm);
ObjectSetText(“”+i,””+bc,10,”Arial Black”,BuySetup); }
else {
ObjectCreate(“”+i,OBJ_TEXT,0,Time[i],High[i]+tfm);
ObjectSetText(“”+i,””+bc,8,”Arial”,BuySetup); }
bc=0;
G[i]=Low[i]-tfm2;
if(bcd==0) bcd=1; }
else {
ObjectCreate(“”+i,OBJ_TEXT,0,Time[i],High[i]+tfm);
ObjectSetText(“”+i,””+bc,8,”Arial”,BuySetup); } }
else if(Close[i]>=Close[i+4]) {
for(x=i+1; x<=i+bc; x++) ObjectDelete(“”+x);
bc=0; }

if(bcd==1) bcd=-1*i;
if(bcd==-1*(i+1)) bcd=1;
if(bcd==13 && Close[i]<=Close[i+5]) {
ObjectCreate(“cd”+i,OBJ_TEXT,0,Time[i],High[i]+tfm*2.5);
ObjectSetText(“cd”+i,””+bcd,8,”Arial Black”,Countdown);
bcd=0; }
if(bcd==13 && Close[i]<=Close[i+2] && Close[i]>Close[i+5]) {
ObjectCreate(“cd”+i,OBJ_TEXT,0,Time[i],High[i]+tfm*2.5);
ObjectSetText(“cd”+i,””+bcd,8,”Arial”,Countdown);
bcd=0; }
if(bcd>=1 && Close[i]<=Close[i+2] && bcd<13) {
ObjectCreate(“cd”+i,OBJ_TEXT,0,Time[i],High[i]+tfm*2.5);
ObjectSetText(“cd”+i,””+bcd,8,”Arial”,Countdown);
bcd++; }

//+– Sell Setup Start –|
if(Close[i]>Close[i+4] && Close[i+1]<=Close[i+5] && sc==0) {
sc=1;
ObjectCreate(“”+i,OBJ_TEXT,0,Time[i],Low[i]-tfm);
ObjectSetText(“”+i,””+sc,8,”Arial”,SellSetup);
fsc=i;
bcd=0;}
if(Close[i]>Close[i+4] && sc!=0 && fsc!=i && ObjectFind(“”+i)==-1) {
sc++;
if(sc==9) {
if(High[i+2]>High[i+3]) high=High[i+2];
else high=High[i+3];
if(High[i]>high || High[i+1]>high) {
ObjectCreate(“”+i,OBJ_TEXT,0,Time[i],Low[i]-tfm);
ObjectSetText(“”+i,””+sc,10,”Arial Black”,SellSetup); }
else {
ObjectCreate(“”+i,OBJ_TEXT,0,Time[i],Low[i]-tfm);
ObjectSetText(“”+i,””+sc,8,”Arial”,SellSetup); }
sc=0;
R[i]=High[i]+tfm2;
if(scd==0) scd=1; }
else {
ObjectCreate(“”+i,OBJ_TEXT,0,Time[i],Low[i]-tfm);
ObjectSetText(“”+i,””+sc,8,”Arial”,SellSetup); } }
else if(Close[i]<=Close[i+4]) {
for(x=i+1; x<=i+sc; x++) ObjectDelete(“”+x);
sc=0; }

if(scd==1) scd=-1*i;
if(scd==-1*(i+1)) scd=1;
if(scd==13) {
if(Close[i]>=Close[i+5]) {
ObjectCreate(“cd”+i,OBJ_TEXT,0,Time[i],Low[i]-tfm*2.5);
ObjectSetText(“cd”+i,””+scd,8,”Arial Black”,Countdown);
scd=0; }
if(Close[i]>=Close[i+2] && Close[i]<Close[i+5]) {
ObjectCreate(“cd”+i,OBJ_TEXT,0,Time[i],Low[i]-tfm*2.5);
ObjectSetText(“cd”+i,””+scd,8,”Arial”,Countdown);
scd=0; }}
if(scd>=1 && Close[i]>=Close[i+2] && scd<13) {
ObjectCreate(“cd”+i,OBJ_TEXT,0,Time[i],Low[i]-tfm*2.5);
ObjectSetText(“cd”+i,””+scd,8,”Arial”,Countdown);
scd++; }
}
return(0);
}
//+——————————————————————+

&nbsp;

[/php]

Click Here to Download

1 reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *