Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, TedMar, AndrewAMD), 986 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Scaling Currencies Relative To Each Other On Chart #434414
12/18/13 03:09
12/18/13 03:09
Joined: Sep 2012
Posts: 99
T
TankWolf Offline OP
Junior Member
TankWolf  Offline OP
Junior Member
T

Joined: Sep 2012
Posts: 99
Hi All,

Was wondering if anyone knows how to scale 2 currencies together on the one chart so they overlay. I can plot both currencies on the same chart but I cant seem to work out a way to calculate a scaling ratio to compare 2 currencies to exploit possible arbitrage scenarios that may arise. Any suggestions would be helpful.

Originally Posted By: "Code"

function run() {
BarPeriod = 60;
StartDate = 2008;
EndDate = 2013;
LookBack = 200;
ColorUp = 0; ColorDn = 0;
set(PLOTNOW);

asset("GBP/USD");
vars PoundPrice = series(price());

asset("EUR/USD");
vars EuroPrice = series(price());

vars Correlation100 = series(Correlation(PoundPrice,EuroPrice,100));

plot("PoundPrice",PoundPrice[0],0,RED);
plot("EuroPrice",EuroPrice[0],0,BLUE);
plot("Correlation100",Correlation100[0],NEW,BLACK);
}

Re: Scaling Currencies Relative To Each Other On Chart [Re: TankWolf] #434423
12/18/13 11:00
12/18/13 11:00
Joined: May 2013
Posts: 245
S
swingtraderkk Offline
Member
swingtraderkk  Offline
Member
S

Joined: May 2013
Posts: 245
have you tried plotting the bar changes of each as pips, % , or % ATR?

I'm not sure there are arbitrage opportunities available for exploitation by the retail trader, you need no spreads, great speed and great execution, if you have those we'd all be very grateful if you could share the broker ;-)

However, this would be useful for pairs trading or relative strength analysis.

Re: Scaling Currencies Relative To Each Other On Chart [Re: TankWolf] #434424
12/18/13 11:13
12/18/13 11:13
Joined: Jul 2013
Posts: 522
D
dusktrader Offline
User
dusktrader  Offline
User
D

Joined: Jul 2013
Posts: 522
This sounds like a neat idea, one I would like to explore as well. I might be over-simplifying, but I think what you want is to create a synthetic currency based on the movement of 1 active currency as the core (say EURUSD). All synthetic currencies would start from the same value as your core so that when plotted, they would all start from the same point and then diverge accordingly.

In that way, each synthetic currency could be based on the percentage moves of its actual currency, but applied to the synthetic currency, which is based on your core.

Like this:
EURUSD 1.3749 --> 1% move up = 1.3886 --> 2% move down = 1.3608
sGBPUSD 1.3749 --> 2% move up = 1.4024 --> 1% move up = 1.4164

That would allow you to to see divergences, and know to what degree. You might need some sort of special handling in place for JPY currencies I think.

There are some examples of building synthetic currencies in the manual (search synthetic)


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1