I found a script which uses loop parse to calc the average, but it doesnt work with arrays ...
A good script to see if a price is rising, would be great, ive included the basic dataset im using & the average script im using atm ...
Note the script doesnt work...
Thanks!
Code: Select all
a=
(
33,019.00
33,020.00
33,021.00
33,022.00
33,023.00
35,020.00
33,024.00
33,025.00
33,026.00
35,020.00
33,027.00
35,000.00
35,010.00
35,020.00
35,030.00
33,020.00
35,040.00
35,030.00
35,020.00
33,020.00
35,010.00
35,000.00
34,990.00
34,980.00
33,020.00
35,110.00
35,120.00
35,130.00
33,020.00
35,140.00
35,150.00
)
x++
if x:=10
loop,10
MyVar:=Clipboard
StringSplit, NewVarArray, a, `n ; Separates a string into an pseudo-array
loop, parse, NewVarArray, `n
{
if A_LoopField <>
{
sum += A_LoopField
count += 1
}
}
msgbox % sum / count