finding the minimum of an equation | Traders Hideout - futures trading strategies, market news, trading charts and platforms

Traders Hideout

Discuss day trading practices and futures trading strategies on this forum for all markets. This forum is also for discussing and reviews for brokers, data feeds, and commercial or third party add-ons


finding the minimum of an equation

  #1 (permalink)

Budapest, Hungary
Trading Experience: None
Platform: ninjatrader
Favorite Futures: FGBL / FESX / ES / ZN / ZB
adamov's Avatar
Posts: 84 since Jun 2012
Thanks: 37 given, 49 received

finding the minimum of an equation

I am trying to get the minimum value of curves in NT7 (C#) in the most resource efficient way.
The equation of one curve is:

y= |-22-16x|+|44-22x|+|21-25x|+|40-22x|+|6-11x|+|12-4x|

They always have and only one minimum point and they look like something like this:
Please register on to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Actually I am looking for the value of x when y is lowest.
Any help is appreciated!

Reply With Quote