nv = 0 ' Extrapolate value at t<0,t>n by values at 0...n
...
t<0 - I don't get it... Is it data in the v() array, "values at points"? I don't understand much in the morning, variables make me dizzy, but I wanted to understand and try. Would you explain in more details what is what for and why it's being done here?
And to the parabola the risk calculation. Current price*0.15 and the number of orders by arithmetic progression. We obtain the step based on the means. 25-30 spreads by 4-digit minimum
How's it going? Has anyone built a parabola?
I haven't built it yet, I'm reading, figuring it out.
How's it going? Has anyone built a parabola?
Let Alexander_K know when you're done.
This code is neither complicated nor simple. But there is nothing particularly complicated. So, it will work.
You can do it like this;
Public Function nv(n, t As Integer) As Single
nv = 0 ' Extrapolation of value at the point t<0,t>n by values at the points 0...n.
Dim j, k As Integer
Dim l As Single
For j = 0 To n
l = 1
For k = 0 To n
If k <> j Then l = l * (t - k) / (j - k)
Next k
nv = nv + l * v(j)
Next j
End Function
Let Alexander_K know when you've leaked.
Uh-.... Why?!
Pardon me, but this thread was created to help everyone the suffering, not me specifically. That's the concept that should be adhered to here.
You can do it like this;
Public Function nv(n, t As Integer) As Single
nv = 0 ' Extrapolate value at t<0,t>n by values at 0...n
...
t<0 - I don't get it... Is it data in the v() array, "values at points"? I don't understand much in the morning, variables make me dizzy, but I wanted to understand and try. Would you explain in more details what is what for and why it's being done here?