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

Re: Help please, with Easy Language for consective counting and starting over after 9



PureBytes Links

Trading Reference Links

this doesn't start over at 9. i don't see why you would want to do that 
anyway. :-) it just prints 1,2,...,9,10,11,....

input: price(close);
var: count(0), newtext(0);

if price > price[1] then begin
  count = count + 1;
  {if you REALLY want it to go from 9 down to 1 [shrug], add the
   following line}
  {if count = 10 then count = 1;}
  newtext = text_new(date, time, high, numtostr(count,0));
  text_setstyle(newtext,2,1);
end 
else count = 0;

if false then plot1(c,"");
 
-- 
   Dennis