Edit Your Comment
why this script don't work right now
Jul 24, 2012 at 11:36
會員從Jun 27, 2012開始
5帖子
hello dears
i need programer to help me to make this script work
any body help
?>
i need programer to help me to make this script work
any body help
";
if ($login_name=="") {
echo "Enter your myfxbook account login and password:
login: password: ";
}
else {
$login_string = "$login_name&password=$login_pw";
$url = "http://www.myfxbook.com/api/login.xml?email=$login_string";
$login = file_get_contents($url);
$xml_sess = simplexml_load_string($login);
$sess = $xml_sess->session;
$url="http://www.myfxbook.com/api/get-my-accounts.xml?session=$sess";
$data = file_get_contents($url);
$xml_data = simplexml_load_string($data);
$i =0;
echo "NameProfitProfit AbsBalanceEquityDDAgeDepositsUpdated:";
foreach ($xml_data->xpath('//account') as $niks) {
echo "";
echo $xml_data->accounts->account[$i]->name;
echo "";
$profit = (double) $xml_data->accounts->account[$i]->profit;
$deposits = (double) $xml_data->accounts->account[$i]->deposits;
$withdrawals = (double) $xml_data->accounts->account[$i]->withdrawals;
$net_deposits = $deposits-$withdrawals;
$equity = (double) $xml_data->accounts->account[$i]->equity;
$balance = (double) $xml_data->accounts->account[$i]->balance;
$drawdown = (double) $xml_data->accounts->account[$i]->drawdown;
$per = ($profit/$net_deposits)*100;
$aper = (($equity-$net_deposits)/$net_deposits)*100;
$nu = time();
$start = strtotime($xml_data->accounts->account[$i]->creationDate);
$looptijd = floor(($nu-$start)/(60*60*24));
$update = strtotime($xml_data->accounts->account[$i]->lastUpdateDate);
$updated = floor(($nu-$update)/60);
if ($per > 0) {
echo "+";
}else{
echo "-";
}
print round($per,2);
echo "%";
if ($aper > $per) echo "";
if ($aper > 0) {
$profit = 1;
echo "+";
}else{
$profit = 0;
echo "";
}
print round($aper,2);
echo "%";
if ($aper > $per) echo "";
if($balance>$net_deposits){
echo "";
}else{
echo "";
}
echo "€ ";
echo round($balance,2);
echo "";
if($equity>$net_deposits){
echo "";
}else{
echo "";
}
echo "€ ";
echo round($equity,2);
echo "";
echo round($drawdown,2);
echo "%";
echo "$looptijd days€ $net_deposits";
if($updated > 30) echo "";
echo "$updated Min";
if($updated > 30) echo "";
echo "";
echo "
accounts->account[$i]->id;
echo "\">";
$i++;
}
echo "";
$url = "http://www.myfxbook.com/api/logout.xml?session=$sess";
$logout = file_get_contents($url);
$xml_logout = simplexml_load_string($logout);
}
echo "
";if ($login_name=="") {
echo "Enter your myfxbook account login and password:
login: password: ";
}
else {
$login_string = "$login_name&password=$login_pw";
$url = "http://www.myfxbook.com/api/login.xml?email=$login_string";
$login = file_get_contents($url);
$xml_sess = simplexml_load_string($login);
$sess = $xml_sess->session;
$url="http://www.myfxbook.com/api/get-my-accounts.xml?session=$sess";
$data = file_get_contents($url);
$xml_data = simplexml_load_string($data);
$i =0;
echo "NameProfitProfit AbsBalanceEquityDDAgeDepositsUpdated:";
foreach ($xml_data->xpath('//account') as $niks) {
echo "";
echo $xml_data->accounts->account[$i]->name;
echo "";
$profit = (double) $xml_data->accounts->account[$i]->profit;
$deposits = (double) $xml_data->accounts->account[$i]->deposits;
$withdrawals = (double) $xml_data->accounts->account[$i]->withdrawals;
$net_deposits = $deposits-$withdrawals;
$equity = (double) $xml_data->accounts->account[$i]->equity;
$balance = (double) $xml_data->accounts->account[$i]->balance;
$drawdown = (double) $xml_data->accounts->account[$i]->drawdown;
$per = ($profit/$net_deposits)*100;
$aper = (($equity-$net_deposits)/$net_deposits)*100;
$nu = time();
$start = strtotime($xml_data->accounts->account[$i]->creationDate);
$looptijd = floor(($nu-$start)/(60*60*24));
$update = strtotime($xml_data->accounts->account[$i]->lastUpdateDate);
$updated = floor(($nu-$update)/60);
if ($per > 0) {
echo "+";
}else{
echo "-";
}
print round($per,2);
echo "%";
if ($aper > $per) echo "";
if ($aper > 0) {
$profit = 1;
echo "+";
}else{
$profit = 0;
echo "";
}
print round($aper,2);
echo "%";
if ($aper > $per) echo "";
if($balance>$net_deposits){
echo "";
}else{
echo "";
}
echo "€ ";
echo round($balance,2);
echo "";
if($equity>$net_deposits){
echo "";
}else{
echo "";
}
echo "€ ";
echo round($equity,2);
echo "";
echo round($drawdown,2);
echo "%";
echo "$looptijd days€ $net_deposits";
if($updated > 30) echo "";
echo "$updated Min";
if($updated > 30) echo "";
echo "";
echo "

echo "\">";
$i++;
}
echo "";
$url = "http://www.myfxbook.com/api/logout.xml?session=$sess";
$logout = file_get_contents($url);
$xml_logout = simplexml_load_string($logout);
}
echo "
?>

*商業用途和垃圾郵件將不被容忍,並可能導致帳戶終止。
提示:發佈圖片/YouTube網址會自動嵌入到您的帖子中!
提示:鍵入@符號,自動完成參與此討論的用戶名。