[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Td sequential



PureBytes Links

Trading Reference Links

Hi,

is someone is in interest with; it is the Td sequential long entry 
translated from MS expert.

stephane

MaxGraph=14;

/*********Setup Buy*********/

TD1=IIf(Close<Ref(Close,-4),1,0); 
TD2=IIf(TD1==1 AND Ref(TD1,-1)==1 AND Ref(TD1,-2)==1 AND Ref(TD1,-3)
==1 AND Ref(TD1,-4)==1 AND Ref(TD1,-5)==1 AND Ref(TD1,-6)==1 AND 
Ref(TD1,-7)==1 AND Ref(TD1,-8)==1, 1,0); 
TD3= H>=Ref(LLV(L,BarsSince(BarsSince(TD1))),-3);
TD4= Ref(C,-9)>=Ref(C,-13);
SetupBuy= TD3 AND TD2 AND TD4 ;

/***********SetupSell************/
TD1=IIf(Close>Ref(Close,-4),1,0); 
TD2=IIf(TD1==1 AND Ref(TD1,-1)==1 AND Ref(TD1,-2)==1 AND Ref(TD1,-3)
==1 AND Ref(TD1,-4)==1 AND Ref(TD1,-5)==1 AND Ref(TD1,-6)==1 AND 
Ref(TD1,-7)==1 AND Ref(TD1,-8)==1, 1,0);
TD3= L<=Ref(HHV(H,BarsSince(BarsSince(TD1))),-3);
TD4= Ref(C,-9)<=Ref(C,-13);
SetupSell= TD3 AND TD2 AND TD4 ;

/*********CountA********/
CountA= Sum(IIf(C<Ref(C,-2),1,0),BarsSince(SetupBuy)+1);

/***********A***********/
B1= CountA >=13; 
B1= Hold(B1==0,2) AND B1;
Sell= SetUpsell;
Buy= SetUpbuy;

Ccount=IIf(B1,ValueWhen(B1,HHV(C,BarsSince(Buy))),0);
Hsetup=IIf(B1,ValueWhen(Buy,HHV(H,9)),0);

As=B1 AND (HighestSinceBars(Buy,Buy)<
HighestSinceBars(Sell,Sell)) AND
Hsetup > Ccount;

/******B**********/
B1= CountA >=13; 
B2= CountA >13 AND Close > Ref(Close,-4);

Ccount=IIf(B1,ValueWhen(B1,HHV(C,BarsSince(Buy))),0);
Hsetup=IIf(B1,ValueWhen(Buy,HHV(H,9)),0);

B1=Hold(B1==0,2) AND B1;
B2=Hold(B2==0,2) AND B2;

Bs=ExRem(B2,B1) AND
(HighestSinceBars(Buy,Buy)<
HighestSinceBars(Sell,Sell)) AND
Hsetup > Ccount;

/*************C***********/
B1= CountA >=13; 
B3= CountA >13 AND Close > Ref(High,-2);

Ccount=IIf(B1,ValueWhen(B1,HHV(C,BarsSince(Buy))),0);
Hsetup=IIf(B1,ValueWhen(Buy,HHV(H,9)),0);

B1= Hold(B1==0,2) AND B1;
B3= Hold(B3==0,2) AND B3;

Cs= ExRem(B3,B1) AND
(HighestSinceBars(Buy,Buy)<
HighestSinceBars(Sell,Sell)) AND
Hsetup > Ccount;

/***********D************/
B1= CountA >=13; 
B4= CountA >13 AND Close>Open AND (C-O) > ((H-C)+(O-L)) ;

Ccount= IIf(B1,ValueWhen(B1,HHV(C,BarsSince(Buy))),0);
Hsetup=IIf(B1,ValueWhen(Buy,HHV(H,9)),0);

B1=Hold(B1==0,2) AND B1;
B4=Hold(B4==0,2) AND B4;

Ds= ExRem(B4,B1) AND
(HighestSinceBars(Buy,Buy)<
HighestSinceBars(Sell,Sell)) AND
Hsetup > Ccount;

Buy=BS OR Cs OR Ds;

Graph0=C;
Graph0Color=1;
Graph0Style=64;
Graph1=Buy*C;
Graph1Color=6;
Graph1Style=2;


/* 
1 noir
2 white
3 blue pale
4 red
5 Vert
6 blue
7 jaune
8 Vert
9 Orange
11 Mauve
/***************end****************/