Yikes, my head is spinning. I'm no longer able to follow along here, but I wish you good luck nonetheless.
I know. It is too complicated at this point. Thanks for the well wishes, they are appreciated. FWIW, if the third unit is not on, it is very easy to follow. Only the third unit complicates things enormously, and only when OFV is whipping back and forth, which it is now.
SPX, 1222.42. FV, 1128.55. OFV, 1226.20. <- Note that OFV is above SPX, with a FV below SPX. That means when OFV goes live (tomorrow), we would be just short one unit because OFV overrules FV on the short time frame after I put on the initial three units. It controls 2 of the three units after that.
For those that understand code, here is the simple C# logic that controls the third unit (this is close to the actual code but simplified for actual position management and execution) Code: void HandleThirdUnit(double SPX, double OFV) { if (position == Position.flatPos) { if (OFV > SPX) { Debug.Print("OFV = {0} Buy at {1}", OFV, SPX); position = Position.longPos; } else if (OFV < SPX) { Debug.Print("OFV = {0} Sell {1}", OFV, SPX); position = Position.shortPos; } } else if (position == Position.longPos) { if (OFV < SPX) { Debug.Print("OFV = {0} Sell at {1}", OFV, SPX); position = Position.shortPos; } } else if (position == Position.shortPos) { if (OFV > SPX) { Debug.Print("OFV = {0} Buyt at {1}", OFV, SPX); position = Position.longPos; } } } So OFV does not know what the actual macro position is, only whether it is long or short unto itself. HandleThirdUnit is only called if the macro 3-unit flag has been set.
Also, remember, you don't have to follow how I trade FV, OFV (and perhaps soon CFV) - you can look at the numbers and basic idea and make use of them to suit your own style. Or you can see sort of what I am doing, and mix it...
The OFV logic is live. We were short two units into today, so OFV only bought one back at 1233.25 (normally it controls two units at once). It can now sell short two units if OFV drops below SPX. This is matched against the 1172 entry, so -61. Still short one unit from 1220, which OFV does not control. Note how volatile OFV can be from day to day, but it stays relatively stable intra day.