关于本网站

本网站登载有作为外国股票市场主要货币的美元(USD)、欧元(EUR)、日元(JPY)、英镑(GBP)、澳元(AUD)、瑞士法郎(CHF)、加元(CAD)、新西兰元(NZD)的相对动态图。难以从EURUSD、USDJPY等货币组合的变动情况中看出的单种货币的优势使用本网站可以一目了然。

动态图的看法

动态图以纽约市场结束的中国北京时间6:00(美国夏季期间为中国北京时间5:00)的价值为起点,表示一天中的变化。竖轴越往上对应的货币越被买入,越往下越被卖出。因为变动是相对的,任何时间各种货币的价值的合计都为常数0。

货币变动的计算方法

//变化率
function GetVal($v1, $v2)
{
  if ($v2 == 0) {
    return;
  }
  return log($v1/$v2)*10000;
}

function GetValM($v1, $v2, $v3, $v4)
{
  $v1 = $v1 * $v3;
  $v2 = $v2 * $v4;
  if ($v2 == 0) {
    return;
  }
  return log($v1/$v2)*10000;
}

function GetValD($v1, $v2, $v3, $v4)
{
  if ($v3 == 0 || $v4 == 0) {
    return;
  }

  $v1 = $v1 / $v3;
  $v2 = $v2 / $v4;
  if ($v2 == 0) {
    return;
  }
  return log($v1/$v2)*10000;
}

//$v1是起点的价格,$v2为现在时刻的价格
$EURUSD = GetVal($v1['EURUSD'],$v2['EURUSD']);
$USDJPY = GetVal($v1['USDJPY'],$v2['USDJPY']);
$USDCHF = GetVal($v1['USDCHF'],$v2['USDCHF']);
$GBPUSD = GetVal($v1['GBPUSD'],$v2['GBPUSD']);
$AUDUSD = GetVal($v1['AUDUSD'],$v2['AUDUSD']);
$USDCAD = GetVal($v1['USDCAD'],$v2['USDCAD']);
$NZDUSD = GetVal($v1['NZDUSD'],$v2['NZDUSD']);
$EURJPY = GetValM($v1['EURUSD'],$v2['EURUSD'],$v1['USDJPY'],$v2['USDJPY']);
$EURCHF = GetValM($v1['EURUSD'],$v2['EURUSD'],$v1['USDCHF'],$v2['USDCHF']);
$EURGBP = GetValD($v1['EURUSD'],$v2['EURUSD'],$v1['GBPUSD'],$v2['GBPUSD']);
$CHFJPY = GetValD($v1['USDJPY'],$v2['USDJPY'],$v1['USDCHF'],$v2['USDCHF']);
$GBPCHF = GetValM($v1['GBPUSD'],$v2['GBPUSD'],$v1['USDCHF'],$v2['USDCHF']);
$GBPJPY = GetValM($v1['GBPUSD'],$v2['GBPUSD'],$v1['USDJPY'],$v2['USDJPY']);
$AUDCHF = GetValM($v1['AUDUSD'],$v2['AUDUSD'],$v1['USDCHF'],$v2['USDCHF']);
$AUDJPY = GetValM($v1['AUDUSD'],$v2['AUDUSD'],$v1['USDJPY'],$v2['USDJPY']);
$AUDCAD = GetValM($v1['AUDUSD'],$v2['AUDUSD'],$v1['USDCAD'],$v2['USDCAD']);
$EURCAD = GetValM($v1['EURUSD'],$v2['EURUSD'],$v1['USDCAD'],$v2['USDCAD']);
$GBPCAD = GetValM($v1['GBPUSD'],$v2['GBPUSD'],$v1['USDCAD'],$v2['USDCAD']);
$GBPAUD = GetValD($v1['GBPUSD'],$v2['GBPUSD'],$v1['AUDUSD'],$v2['AUDUSD']);
$EURAUD = GetValD($v1['EURUSD'],$v2['EURUSD'],$v1['AUDUSD'],$v2['AUDUSD']);
$CADCHF = GetValD($v1['USDCHF'],$v2['USDCHF'],$v1['USDCAD'],$v2['USDCAD']);
$CADJPY = GetValD($v1['USDJPY'],$v2['USDJPY'],$v1['USDCAD'],$v2['USDCAD']);
$AUDNZD = GetValD($v1['AUDUSD'],$v2['AUDUSD'],$v1['NZDUSD'],$v2['NZDUSD']);
$EURNZD = GetValD($v1['EURUSD'],$v2['EURUSD'],$v1['NZDUSD'],$v2['NZDUSD']);
$GBPNZD = GetValD($v1['GBPUSD'],$v2['GBPUSD'],$v1['NZDUSD'],$v2['NZDUSD']);
$NZDCAD = GetValM($v1['NZDUSD'],$v2['NZDUSD'],$v1['USDCAD'],$v2['USDCAD']);
$NZDCHF = GetValM($v1['NZDUSD'],$v2['NZDUSD'],$v1['USDCHF'],$v2['USDCHF']);
$NZDJPY = GetValM($v1['NZDUSD'],$v2['NZDUSD'],$v1['USDJPY'],$v2['USDJPY']);

//各货币价值的计算
$Pairs = 7;
$EUR = ($EURUSD+$EURJPY+$EURCHF+$EURGBP+$EURAUD+$EURCAD+$EURNZD)/$Pairs;
$USD = (-$EURUSD+$USDJPY+$USDCHF-$GBPUSD-$AUDUSD+$USDCAD-$NZDUSD)/$Pairs;
$JPY = (-$EURJPY-$USDJPY-$CHFJPY-$GBPJPY-$AUDJPY-$CADJPY-$NZDJPY)/$Pairs;
$CHF = (-$EURCHF-$USDCHF+$CHFJPY-$GBPCHF-$AUDCHF-$CADCHF-$NZDCHF)/$Pairs;
$GBP = (-$EURGBP+$GBPUSD+$GBPCHF+$GBPJPY+$GBPAUD+$GBPCAD+$GBPNZD)/$Pairs;
$AUD = (-$EURAUD+$AUDUSD+$AUDJPY+$AUDCHF-$GBPAUD+$AUDCAD+$AUDNZD)/$Pairs;
$CAD = (-$EURCAD-$USDCAD+$CADJPY+$CADCHF-$GBPCAD-$AUDCAD-$NZDCAD)/$Pairs;
$NZD = (-$EURNZD+$NZDUSD+$NZDJPY+$NZDCHF-$GBPNZD+$NZDCAD-$AUDNZD)/$Pairs;

免责事项

本网站登载的内容仅以信息提供为目的,不以诱导投资为目的。登载信息也有错误或老旧的可能性。对于因利用本网站的信息所发生的所有事故・损失,本网站不承担一切责任。

咨询

咨询表