Indicators: Average Speed

 

Average Speed:

Calculate Average Speed of price.

Author: Totom Sukopratomo

 
<Deleted>
 
god job tom
 

tomsuk001 Please answer, why do you calculate differently:

case PRICE_CLOSE:{
               d=MathAbs(close[j]-close[j-1])/_Point;
               v=d/t;
               sumv+=v;
               break;
              }
case PRICE_HIGH:{
               d=MathAbs(high[j]-high[j-1])/_Point;
               v=d/t;
               sumv+=d; <----- maybe: sumv+=v ?
               break;
              }
 
avoitenko:

tomsuk001 Please answer, why do you calculate differently:

Thank you for read my code avoitenko. This is my type-mistaken. Corrected code already sent to moderator's check.
 
<Deleted>
<Deleted>
 
samtidar:

god job tom
Thank you samtidar, please redownload corrected code at nearest future.
 

Newest version with corrected code is available to download now.


Thanks.

 
t is like time in minutes, what if we do it in seconds?
 
sasha100:
t - as time in minutes, what if we make it in seconds?
how about reading the explanations before the picture?
 
Thank you, I read the explanations, it is clear, it is possible to make for the tester to change parameters 1-60 seconds for example...