Bollinger’s Fuel algorithm – how and when to refill a car?

Bollinger fuel algorithm

Takeaway: The Bollinger fuel algorithm is one strategy that
answer the question of refueling a car (a truck, or any
vehicle that has a known capacity for the fuel and
some user-provided information about how much the
vehicle consumes). The Bollinger comes from a well-known financial technical
analysis instrument called Bollinger’s bands. In this article we will be investigating
the use of Bollinger’s bands in refueling strategies.

Problem statement:

“Given uncertain future prices of a commodity, when
should one replenish a fuel tank of a car?”
Limited by: one has to use the car, ie. the tank cannot be a negative number, and
in practise it cannot be even close to zero (too risky).

Bollinger’s bands to the rescue!

Bollinger’s bands are a method to estimate the likelihood
of a current minimum or maximum, based on the variance of
a commodity (a price) in the last D samples.

In this application we try to find out whether using
these limits are useful in deciding when and how much to
take fuel into a car’s fuel tank.

=> local minima exploited
=> local maxima avoided

- does fuel as commodity have the same rules as a stock price (or index)?
- economic shocks
- how much does the car's fuel capacity affect decisions? And in what 
  way?

Algorithm [prototype draft]

function BREP(F,stn[],C)

 - Bollinger replenishment algorithm
 - given Fuel (=amount)
 - stn[] list is a list of [x,y,price] stating the known 
   prices in an area
 - C is a consumption function of some kind
   -> sets limit to the practical search cutoff value
      (can't search forever if there's a real consumption)

Published by jukkasoft

Me: a code enthusiasta, technology optimist, but also a realist. In my blog something like 80% of the articles are technology related - mostly in English and Finnish. I like to envision and ponder about things, how life could be, what we are doing wrong today, and so on. "Invented" a facebook -like system in 2000, as a short product pamphlet. Haven't yet realized the 20+ ideas that might have become big things. Maybe learning this skill one of these days!

2 thoughts on “Bollinger’s Fuel algorithm – how and when to refill a car?

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: