8.5
FX Triangular Arbitrage
PYTHON PLUGIN
Fx
Arbitrage
Description
Strategy 8.5: FX triangular arbitrage detection
Strategy Logic
Strategy 8.5: Triangular arbitrage across three FX pairs.
For currencies A, B, C:
R(A->B->C->A) = Bid(A->B) * Bid(B->C) / Ask(C->A)
If R > 1 + threshold, an arbitrage opportunity exists.
Expects data keyed by pair names (e.g. "EUR/USD", "USD/JPY", "EUR/JPY")
with columns 'bid' and 'ask' (falls back to 'close' as mid-price).
The param 'triangles' is a list of 3-tuples defining the pair triplets.
Parameters
| Parameter | Default Value | Type |
|---|---|---|
| threshold | 0.0005 | float |
| triangles | [] | list |
Risk Configuration
| Risk Parameter | Value |
|---|---|
| Max Position Pct | 15.0% |
| Stop Loss Pct | 0.1% |
| Take Profit Pct | 0.2% |
| Max Drawdown Pct | 2.0% |