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
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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?