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

Spread the love
Reading Time: < 1 minute

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 

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)
Facebook Comments

Published by jukkasoft

Hi! A bit updated description. Code enthusiasta, technology optimist, but also a realist. In my blog I wrote 80% of technology related articles, 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?

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: