I would like to be able to number the below TrCond as it occurs
in an array. Basically I want to use this as you would a Trough but 
I want to define a low trough value before it makes a 10% advance.
How can I get the previous Value of this occurance by signing it a 
number. I am thinking I must use a loop buy not sure?
I hope this is clear enough.
THANKS  
Ernie


// Test Scan to find 10% Lowest Low Troughs by Number

TrCond = Ref(L,-2) > Ref(L,-1) AND   
          Ref(L,-1) < L AND 
          Ref(H,-1) < H AND Ref(L,-1) < Ref(HHV(H,10),-2)*.90;
for( i = 1; i < BarCount; i++ ) 
{ 
    TrCond[ i ] = L[i]; 
} 
 
Filter = TrCond;
AddColumn(C,"Close",1.2);
AddColumn(Ref(L,-1),"L-1",1.2);
AddColumn(TrCond[1],"TR1",1.2);
AddColumn(TrCond[2],"TR2",1.2);
AddColumn(TrCond[3],"TR3",1.2);


Reply via email to