>
> in the tension.java, you have the following code: 
>
> fastMultiplier = 2.0 / (fastPeriod + 1.0); 
> and 
> fastBalance += (depthBalanceValue - fastBalance) * fastMultiplier; 
>
> Can you elaborate the purpose of the multiplier? Also do you mind 
> explaining why you keep counting the cumulative sum of fastBalance? 
> Also are fast period and slow period measured in seconds or milli 
> seconds? 
>
>
It's actually not a cumulative sum, but rather an exponential moving 
average, and it's calculated in a standard fashion: 
http://en.wikipedia.org/wiki/Exponential_moving_average#Exponential_moving_average
The periods are measured in seconds.


 

-- 
You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=en.

Reply via email to