I have hue, saturation and value of a color (HSV color-space). The color has to be set on a device that displays them incorrectly. If I specify white it displays light magenta. However, if you specify some green it displays the best white it can (let's say: gray). How do I remove this color cast? Actually: How do I create a color cast in the HSV numbers to compensate for the wrong display?

My approach was the following. But it lead to a skip of some magenta colors, when I ran through the whole rainbow with a saturation of, say, 0.8 (interval 0 to 1):


Shift magenta to the beginning of the hue scale (60 degrees forward) and thus the hue of the current color
Calculate the distance to move in the direction of green. With a saturation of 1 that means to move completely to green (180 degrees).
This is the formula: distance = (180 / 360 - shifted_hue) * (1 - saturation)
Then add the distance to the shifted hue (possibly resulting in a subtraction).
Shift the hue scale back by 60 degrees.


As said, this is leading to an ugly skip of some magenta colors, because the lower the saturation the bigger the gap at magenta.

Do you know of a better algorithm?


Question: Ideas for patenting/selling a trading strategy
Answer: If you have a great technical trading system that gets you winning trading 80-85% of the time in backtesting, the question should be why are you not trading it?

To get a better idea of how good your trading system is you should work out your expectancy per trade. This will tell you how much you should make on average for every trade you take.

Expectancy not only considers your win rate but also you win size to loss size ratio. For example if you are getting winning trades 80% of the time but your average win size is $100, and your 20% of losses average $500, then you will still be losing money.

You should be aiming for an average win size of at least 2.5 to 3 times you average loss size. This will provide you a profitable trading system even if your win rate is 50%.

If your trading system is really that good and provides a win size of at least 2.5 times your loss size then you should be actively trading it. Also, if you put your trading system out there in the public domain together with your trading results you will actually find that, quite opposite to what the consensus above is, your results from your trading plan should actually improve further. The more people acting on the outcome of a signal in the same direction the higher the probability that the movement in the desired direction will actually occur.

If you are looking to make money from your trading ideas, no one will pay anything unless you have real results to back it up. So if you are so confident about your system you should start trading it with real money. Of course you should start off small and build it up over time as your results eventuate as per your simulations.