## FPI - Fractional Product Inefficiency: The Impeccable Hedge

NeoTicker indicators

Moderator: moderators

ryan
rank: <50 posts
Posts: 24
Joined: Wed Oct 18, 2006 9:57 am
Reputation: 0
Gender:
Contact:

Agreed predicting subsequent FPI movements is almost impossible, except that what goes up must come down. Eventually.

However the FPI Moving Average I believe is helpful.

Consider the FPI moving up and down continously -- hundreds of time over a few hours -- remember we can hold or delay a entry/exit as long as we wish.

Why not then compute the average deviation from 0, or any other arbitary deviation to determine our entry/exit points. Why enter/exit 'immdiately' when the FPI swings above/below 1?

We surely want the maximum possible (or perhaps more appropriately practical) deviation between the FPI_Open and FPI_Close to maximise profit.

By setting some conditions -- based on a Moving Average (Average FPI<1 and FPI>1 position over x periods etc.) style indicator overlayed on the FPI -- we can determine when the best times are to enter/exit. As I outlined previously -- where FPI_Min% = 0%, FPI_Normal%=50% and FPI_Max%=100%, we might want to experiment with triggers at different %ages ... eg, FPI_Open when FPI_Open=20% and FPI_Close=80% in a Buy, Buy, Sell ring.

As I think it was Michal that said the differential is important.

androfx
rank: <50 posts
Posts: 20
Joined: Thu Oct 26, 2006 3:27 pm
Reputation: 0
Location: Europe, Czech Republic... sometimes
Gender:
I rater stick with easy stuff. So here is the "ring generator" in Python. It can be easilly changed to do whatever output you want.
It is generating all rings just once - invert will generate the other half.

I quickly checked with Michal's output and it seems the same.

On my laptop 1.8GH 2^24 combinations; Michal's input pairs took around 45 minutes.

Enjoy!

Edit: I have to add - Michal thanks for alogorithm and C# source code.
Attachments
fpiRings3.zip
Last edited by androfx on Wed Nov 01, 2006 7:51 pm, edited 1 time in total.

makosgu
rank: <50 posts
Posts: 8
Joined: Thu Oct 26, 2006 8:29 pm
Reputation: 0
Gender:
@ryan

So we agree that the purpose of optimizing is to maximize profits. Forex avoids slippage since you simply get the price that is quoted at the time you execute. In other words, either the position was accepted at the FPI bid or ask or not. Like any instrument, the FPI BID & ASK fluctuate continually and fortunately, explicitly since they are directly a function of the component instruments. As a result, if this net FPI is cycling hundreds of times per hour, maximizing profits would be taking action at every opportunity irrespective of the magnitude of the payoff assuming you could compound (there is a limit to the extent that you could compound). The issue is that when you delay your entry/exit by waiting for the next exit/entry, you have actually missed two transactions... How???

ryan
rank: <50 posts
Posts: 24
Joined: Wed Oct 18, 2006 9:57 am
Reputation: 0
Gender:
Contact:
Makusgu, great post. Yes, so we are agreed on the methodology, it's just a case of determining whether there is value in holding any trade, or simply instantly trading when the FPI_Open/Close conditions are met on the agreed principal that when these conditions are met, regardless, the trade will be profitable, and hence your thesis is that you will be losing opportunities by holding the trade rather than continually entering/exiting.

Fair call. I cannot say I disagree.

Do you have a view on any other applications for the FPI?

davidf
rank: <50 posts
Posts: 24
Joined: Fri May 19, 2006 6:10 pm
Reputation: 0
Gender:
Contact:

### Live Test FPI

Hi All:

i made some test FPI on live data from CMS-FX. On data sample in xls sheet are calculated four trades at FPI extrems. For better understoodnig you read formula in rows and columns.

DavidF
Attachments
forexarbitraz.zip

bwilhite
rank: <50 posts
Posts: 5
Joined: Wed Nov 01, 2006 8:07 pm
Reputation: 0
Gender:
I'm new here...I'll try to behave myself.

Ok, so I've read through the whole thread...now I just want to ask a VERY SIMPLE question. Let us say that the FPI is <1 so we go short EUR/CHF and then we go long EUR/USD and long USD/CHF. One of these latter pairs will need to be traded at other than a "round lot" size. How do I determine the proper lot size for my synthetic position? I think I know the answer, but I want to be sure.

I don't want any other information than that, as I understand what is going on. I've done much research into this kind of thing in other markets, so the concept is not the problem (it's also a type of spread trade, a pair trade, or a conversion trade depending on the market and how you think of it)...just this one thing please!!! I would really appreciate a reply from makosgu or michal with just a SIMPLE calculation.

androfx
rank: <50 posts
Posts: 20
Joined: Thu Oct 26, 2006 3:27 pm
Reputation: 0
Location: Europe, Czech Republic... sometimes
Gender:
bwilhite wrote:I would really appreciate a reply from makosgu or michal with just a SIMPLE calculation.

Have a look at post Thu 19 Oct, 2006 23:12. It is from Michal and deadly clear

michal.kreslik
rank: 1000+ posts
Posts: 1034
Joined: Sat May 13, 2006 2:40 am
Reputation: 3
Location: Monte Carlo, Monaco
Real name: Michal Kreslik
Gender:
Contact:
bwilhite wrote:One of these latter pairs will need to be traded at other than a "round lot" size. How do I determine the proper lot size for my synthetic position? I think I know the answer, but I want to be sure.

I don't want any other information than that

Hello, bwilhit,

http://kreslik.com/forums/viewtopic.php?p=2354#2354

Michal

makosgu
rank: <50 posts
Posts: 8
Joined: Thu Oct 26, 2006 8:29 pm
Reputation: 0
Gender:
@Ryan

For me, an FPI moving average does not add value to my trading decision simply because any moving average longer than 1 period will lag. Since a 1 period moving average is simply the current FPI value, the indicator would be redundant for me.

What I do agree about is the optimization of profits. I also agree that the FPI data is normally distributed about 1 as opposed to zero. Knowing the distribution gives us a number of statistical analytics. For example, you can identifiy several standard deviations from the mean, which for our case is 1. The standard deviations tells us the probability that FPI will be within a certain range from the mean/equillibrium (ie. 1 in our case). From this you can you can then estimate the amount of time that FPI will be outside of these upper and lower range boundaries... For example, if 95% of the time, the FPI is ranging between .99 and 1.01, this means that 5% of the time, FPI is either greater than 1.01 or less than .99. If your distribution is constructed from a 5 day sample (ie. 120 hours), then you would expect to see a total of 6 hours of a trigger zone where FPI was greater than 1.01 or less than .99. Of course, this is also assuming that you are constructing your distribution from every FPI change in value (ie. tick) as opposed to each minute bar's open or close. You can tell the error in using the open and close by noticing the change in value of the FPI between the two points. In real time, the difference between the close of one bar and the open of the next bar is a single moment. In other words, sequential bars will show how much of an error there is if there is a significant difference in the FPI value between the close of a bar and the open of the next bar...

As for the differential, we all agree that the differential is important and furthurmore, I agree on maximizing the opportunity. However, we differ is in the magnitude of the deviation. For me, it is not necessary for the deviation to be 3 std devs from 1. 1.5 std devs is good enough given the stats of how the FPI value fluctuates (ie. normally). These are better odds then you will find at any Vegas game.

As a result, the only things that are of importance to me is maximizing profits which again is done be taking some measurable barrier on the distribution, identifying the probability, FPI value in REAL DOLLARS, and then creating the actual profit loss distribution. Solving this distribution in terms of deviations from the mean then shows you an explicit PNL distribution from which you can solve the EXACT threshold barrier to use. Admittedly, this math is overkill but some are satisfied with good enough while others are detailed oriented about all aspects...

REgards...

Coder
rank: <50 posts
Posts: 3
Joined: Tue Oct 31, 2006 11:33 am
Reputation: 0
Gender:

### Oanda test data

Hello,

Here is a test that I did on some Oanda data last night.

It seems that Oanda's price data is very efficient. I don't think we will
have many opportunities to use this strategy with Oanda.

I will run the same test with MB Trading and see what happens.

Coder
Attachments
Oanda Test Pairs.zip