From theory to practice - page 1256

 
How's it going? Has anyone built a parabola?
 
Renat Akhtyamov:
How's it going? Has anyone built a parabola?

I haven't built it yet, I'm reading, figuring it out.

 
Renat Akhtyamov:
How's it going? Has anyone built a parabola?
What's there to build... I can draw a hyperbola in Paint.)
 
It's not that complicated and it's not that simple. But it's not very complicated. So it will work.
 

Let Alexander_K know when you're done.

 
Renat Akhtyamov:
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

 
Martin_Apis_Bot Cheguevara:

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?
 
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
 
As a result, the first order will go to sell from a bounce, and to buy from a pullback