Thomas DeMark Sequential System

sanju005ind

Investor, Option Writer
The thread was started a decade go and is still helpful in gaining insights to DeMark indicators.Have gained tremendous knowledge as to why prices are reacting at certain invisible places where there is no traditional pivots or S/R levels .Hats off to @Smart_trade for patiently answering to queries being put repeatedly.Can be rest assured that even after a decade this posts are very useful.
 
Last edited:
Hi all
Can anybody help me fix the error?
if(ShowTDST)
{
tdstba =Cum(0);
tdstb = Null;
HHV9 = HHV(H,9);
for (i = 0; i < 10; i++) tdstba = Null;

for( i = 10; i < BarCount; i++ )
{
if (Buy9Bars == 9)
{
HHV_b = HHV9;
if (HHV_b > C[i-9])
tdstb = HHV_b;
else tdstb = C[i-9];

for (j = 0; j < 9; j++ )
tdstba[i-j] = tdstb;
}
else tdstba = tdstb;
}

tdstsa =Cum(0);
tdsts = Null;
LLV9 = LLV(L,9);
for (i = 0; i < 10; i++) tdstsa = Null;

for( i = 10; i < BarCount; i++ )
{
if (Sell9Bars == 9)
{
LLV_b = LLV9;
if (LLV_b < C[i-9])
tdsts = LLV_b;
else tdsts = C[i-9];

for (j = 0; j < 9; j++ )
tdstsa[i-j] = tdsts;
}
else tdstsa = tdsts;
}
Plot(tdstba, "TDSTb", colorBlue,styleStaircase | styleThick|styleDots);
Plot(tdstsa, "TDSTs", colorRed,styleStaircase | styleThick|styleDots);

}
_SECTION_END();

I have erro:
if (Sell9Bars == 9)
Condition in IF, WHILE, FOR statements has to be Numeric or Boolean type. You can not use array here, please use [] (array subscript operator) to access array elements
pls
 
Just completed the thread, after reading the book, now concept is very clear in mind.
Tom original work is pretty expensive though.
Anybody here can help with the correct Afl for seq, CD, combo and TDST.
Will be really thankfull.
Regards
Sunil
 
Hi all
Can anybody help me fix the error?
...
...
for( i = 10; i < BarCount; i++ )
{
if (Buy9Bars == 9)
{
HHV_b = HHV9;
if (HHV_b > C[i-9])
tdstb = HHV_b;
else tdstb = C[i-9];

for (j = 0; j < 9; j++ )
tdstba[i-j] = tdstb;
}
else tdstba = tdstb;
}

tdstsa =Cum(0);
tdsts = Null;
LLV9 = LLV(L,9);
for (i = 0; i < 10; i++) tdstsa = Null;

for( i = 10; i < BarCount; i++ )
{
if (Sell9Bars == 9)
{
LLV_b = LLV9;
if (LLV_b < C[i-9])
tdsts = LLV_b;
else tdsts = C[i-9];

for (j = 0; j < 9; j++ )
tdstsa[i-j] = tdsts;
}
else tdstsa = tdsts;
}
Plot(tdstba, "TDSTb", colorBlue,styleStaircase | styleThick|styleDots);
Plot(tdstsa, "TDSTs", colorRed,styleStaircase | styleThick|styleDots);

}
_SECTION_END();

I have erro:
if (Sell9Bars == 9)
Condition in IF, WHILE, FOR statements has to be Numeric or Boolean type. You can not use array here, please use [] (array subscript operator) to access array elements
pls
Please modify the code as:
Code:
for( i = 10; i < BarCount; i++ )
{
    for(bb = 0; bb<9; bb++){
        if (Buy9Bars[bb] == 9)
        {
            HHV_b = HHV9;
            if (HHV_b > C[i-9])
                tdstb = HHV_b;
            else tdstb = C[i-9];

            for (j = 0; j < 9; j++ )
                tdstba[i-j] = tdstb;
        }
        else tdstba = tdstb;
    }
}
for both Buy9Bars and Sell9Bars and then give it a try..
Regards
 

Similar threads