Mactheriverrat 3,157 posts msg #160187 - Ignore Mactheriverrat |
3/26/2023 3:32:19 PM
/* tp36 is number of consecutive days tp36 above (+)/below(-) previous tp36 */
set{tp36b,days( indicator T3(3, 0.618) is above indicator T3(6, 0.618) ,250)}
set{tp36a,days( indicator T3(3, 0.618) is below indicator T3(6, 0.618) ,250)}
set{tp36, tp36a - tp36b} and add column tp36 {tp36}
Set{cntt3abovet6,count( indicator T3(3, 0.618) > indicator T3(6, 0.618) ,1)}
draw cntt3abovet6
Set{cntt3abovet6b,count( indicator T3(3, 0.618) < indicator T3(6, 0.618) ,1)}
draw cntt3abovet6b
|