Hi,
I noticed in the lt_ma, but even if it gives an approximation of what i want. In reality it just gives the average of last traded odds not counting with amounts neither the number of times that a bet was placed at a certain odd.
In lt_ma it matters the odd of the last traded bet and when it was traded. The time when the bet was traded can have a deep impact in the value of lt_ma. It´s different to have been placed 1 minut or 1 hour ago even if it still is an identical bet at the same odds and amounts.
So if for example i´ve 2 traded bets:
1- Odd: 12,00 amount traded: 500 time periods: 1
2- Odd: 11,00 amount traded: 100 time periods: 9
total time periods:10
Bet 1 traded before the bet 2
In this case in the 10 period my lt_ma would be (12*1+11*9)/10=11,1 and would decrease till approximately 11 while time goes on.
In this example i would like to know a way to obtain this result:
(12*500+11*100)/600=11.83
Maintaining the same result till the next traded bet, as the time is not a variable.
i.e. i would like to use the amount instead of the time.
I guess the reasoning aplied to lt_ma can also be aplied to the lt_trend.
Is there anyway i can obtain that result (11.83)?
Thanks,