BoJ pledges to overshoot inflation target; US Fed kicks rate hike can down the road again; dovish RBNZ statement opens door for further easing

By Ian Dobbs*:

With last week’s busy central bank calendar out of the way we look forward to a quieter week this week.

Outcomes of the respective meetings last week were mixed. The first meeting from the BoJ saw rates left on hold at -0.1% and the central bank pledge to overshoot on its 2% inflation target, this as it expands its monetary base indefinitely.

However, limits to the success and extent of what the central bank can do have continued to see investors buy the JPY in the interim.

The US Fed again pushed a move for a rate hike out and once again reduced the ‘dot plot’ rate path lower towards that of the market, a theme prevalent through 2016. Recent differing comments over the need for a move shows that achieving a consensus amongst Fed members will be difficult.

In NZ the RBNZ left rates on hold, although maintained an open door for further easing in a statement that was seen as mildly more dovish than that expected by the market.

Major Announcements last week:

  • US Housing Starts, 1.142M m/m vs. 1.19M exp. (Aug.)
  • Australian Q2 House Price Index, 2.0% q/q vs. 2.5% exp.
  • NZ GDT Dairy price index, 1.7% vs. 7.7% prior.
  • Japanese BoJ Interest Rate Decision, -0.1% vs. -0.1% prior.
  • US FOMC Interest Rate Decision, 0.5% vs 0.5% prior.
  • NZ RBNZ Interest Rate Decision, 2% vs. 2% prior.
  • US Initial Jobless Claims (week to 16 Sep.), 252k vs. 262k exp.
  • US Existing Home Sales, 5.33M m/m vs. 5.45M exp. (Aug.)
  • Japanese Nikkei Manufacturing PMI, 50.3 vs. 49.3 exp. (Sep.)
  • EU Markit Manufacturing PMI, 52.6 vs. 51.5 exp. (Sep.)
  • Canadian Inflation, -0.2% m/m vs. 0.1% exp. (Aug.)
  • US Markit Manufacturing PMI, 51.4 vs. 51.9 exp. (Sep.)

NZD/USD

The New Zealand dollar again sits largely unchanged against the USD since our report on Friday. Further weakness has been seen this week, although so far buyers around .7220 have limited last week’s RBNZ and dairy price inspired losses. Support in the .7200/20 zone looks pivotal on the week, although with a quiet local data calendar and sentiment weakened after last week’s central bank commentary we would be surprised to see the topside extend much beyond the .7300/20 area.

DIRECT FX Current level Support Resistance Last wk range
NZD / USD 0.7276 0.7200 0.7365 0.7223 – 0.7369

NZD/AUD (AUD/NZD)

The New Zealand dollar is little changed against the Australian dollar since our commentary on Friday. Further falls were seen in the interim to around the .9485 (1.0543) level by the end of the day as the market continued to digest the additional divergence in monetary policy themes from the respective central banks. This week will be very quiet on the data front and looks likely to see the NZD consolidate after last week’s heavy falls. We continue to favour buying the AUD on rallies in this pair (dips on AUD/NZD) and expect levels around .9575 (1.0444) to cap on increased NZD demand.

DIRECT FX Current level Support Resistance Last wk range
NZD / AUD 0.9524 0.9480 0.9575 0.9484 – 0.9738
AUD / NZD 1.0500 1.0444 1.0549 1.0269 – 1.0544

NZD/GBP (GBP/NZD)

The New Zealand dollar has rallied against the UK pound since our commentary on Friday. The move comes on the back of the relative weakness in the GBP which has eased on the back of sentiment over the difficulty that the UK will have when it begins formal talks on an EU exit, especially over access to the European single market. Data considerations look relatively quiet for the pair this week, at least until Friday when we receive data on UK GDP. We continue to favour targeting present GBP weakness to cover short-term GBP requirements, although current momentum suggests last week’s highs could potentially again be revisited over coming weeks.

DIRECT FX Current level Support Resistance Last wk range
NZD / GBP 0.5609 0.5560 0.5675 0.5564 – 0.5677
GBP / NZD 1.7827 1.7621 1.7986 1.7614 – 1.7972

 NZD/CAD

The New Zealand dollar has rallied against the Canadian dollar on the back of Friday’s weaker than expected Canadian inflation and retail sales releases, which saw the CAD marked materially lower after their release. This week could see volatility remain high given the uncertainty over the outcome of the key oil nation producer talks presently being conducted in Algeria (set to conclude on the 28th). Canadian GDP data will be in focus on Friday. We have no bias this week given the highly unpredictable nature of the outcome of the key oil producer talks.

DIRECT FX Current level Support Resistance Last wk range
NZD / CAD 0.9623 0.9450 0.9735 0.9463 – 0.9734

NZD/EURO (EURO/NZD)

The New Zealand dollar has slid further in trade against the Euro since Friday. The move comes on the back of the relative outperformance in the Euro in recent trade, in part on the back of strong German IFO data overnight. A marginal breach of support around .6440 (1.5528 resistance) was seen to lows near .6430 (1.5552 highs), although for now a partial rebound has been seen. This rejection has clouded the outlook somewhat for further downside although, we feel following last week’s RBNZ commentary that strength in the NZD will be somewhat more limited for now. This has us favouring the bounce to stall towards .6500 (1.5385). Data this week is limited with inflation numbers late in the week out of Europe looking to have the best chance of impacting.

DIRECT FX Current level Support Resistance Last wk range
NZD / EUR 0.6468 0.6425 0.6600 0.6430 – 0.6593
EUR / NZD 1.5460 1.5152 1.5564 1.5168 – 1.5553

NZD/YEN

The New Zealand dollar has continued to decline in trade against the Japanese Yen since Friday. The move represents a continuation of the theme set from last week after the respective BoJ and RBNZ central bank meetings. With little on the event calendar this week (watch for today’s BoJ minutes though) we see little reason for the cross to move materially against last week’s tide and hence favour selling towards resistance at 74.00 (if reached). Support is eyed at 72.20, a break of which should initially open 71.00/10 in time.

DIRECT FX Current level Support Resistance Last wk range
NZD / YEN 73.03 72.20 74.00 72.66 – 74.99

AUD/USD

The Australian dollar is unchanged against the USD since Friday. There has been little fresh impetus for the market since our commentary which has seen trade contained within a ~.7600/50 range. The week is quiet in Australia so look to US data later in the week to influence trade. We continue to lack a bias and expect quiet trade for most of the week with a positive tone while .7600 holds (weak support). Initial resistance is eyed at .7675 (weak), although the much higher .7735/60 zone which has capped rallies since May is far more critical.

DIRECT FX Current level Support Resistance Last wk range
AUD / USD 0.7635 0.7600 0.7675 0.7531 – 0.7674

AUD/GBP (GBP/AUD) 

The Australian dollar has continued to advance against the UK pound since our commentary on Friday. The move can be put down to the relative weakness seen in the GBP in recent days on the back of concern over the likely outcome of negotiations on UK access to the European single market (when Brexit discussions begin). Data considerations will take a back seat again this week, at least until Friday. We continue to favour buying dips in this cross targeting the August highs of .5980 (1.6722 lows).

DIRECT FX Current level Support Resistance Last wk range
AUD / GBP 0.5886 0.5870 0.5980 0.5777 – 0.5907
GBP / AUD 1.6989 1.6722 1.7036 1.6929 – 1.7311

AUD/EURO (EURO/AUD)

The Australian dollar has eased in trade against the Euro since Friday. The slide can be put down to the outperformance of the EUR, in part on the back of the better than expected German IFO released overnight. Data considerations are again light for the cross this week with European inflation numbers being amongst those most likely to impact (likely low sensitivity). We lack any bias on the next move.

DIRECT FX Current level Support Resistance Last wk range
AUD / EUR 0.6788 0.6735 0.6855 0.6739 – 0.6834
EUR / AUD 1.4733 1.4588 1.4848 1.4633 – 1.4839

AUD/YEN

The Australian dollar has eased marginally against the Japanese Yen since our report on Friday. The easing comes on the back of lack-lustre trade in the AUD and as the JPY continues to gain against the greenback in the wake of last week’s BoJ meeting. This week looks quiet on the scheduled data front from both countries with Friday’s Japanese inflation numbers and today’s BoJ minutes of note. Positive momentum for the Yen has us now favouring downside in this cross, although ideally support at 76.00 would need to give way.

DIRECT FX Current level Support Resistance Last wk range
AUD / YEN 76.74 76.00 77.55 76.19 – 77.53

AUD/CAD

The Australian dollar has rallied against the Canadian dollar since our last report. The move comes on the back of the CAD sell-off after the weaker than expected Canadian data on Friday. Considerations from the energy markets look set to again return to the driving seat over coming days as the Algerian oil producer meeting concludes on the 28th. Immediate resistance is around August’s 1.0120 highs and then 1.0170, although expect the oil headlines to create significant volatility in the CAD. The uncertainty of the outcome of the producer meeting creates significant uncertainty on the next move- although the recent surge would appear to offer a sound short-term opportunity to cover CAD requirements.

DIRECT FX Current level Support Resistance Last wk range
AUD / CAD 1.0099 1.0000 1.0120 0.9945 – 1.0110

————————————————————————————————————-

To subscribe to our free daily Currency Rate Sheet and News email, enter your email address here.

Email:  

————————————————————————————————————————–

Market commentary:

With last week’s busy central bank calendar out of the way we look forward to a quieter week this week. Outcomes of the respective meetings last week were mixed. The first meeting from the BoJ saw rates left on hold at -0.1% and the central bank pledge to overshoot on its 2% inflation target, this as it expands its monetary base indefinitely. However, limits to the success and extent of what the central bank can do have continued to see investors buy the JPY in the interim. The US Fed again pushed a move for a rate hike out and once again reduced the ‘dot plot’ rate path lower towards that of the market, a theme prevalent through 2016. Recent differing comments over the need for a move shows that achieving a consensus amongst Fed members will be difficult. In NZ the RBNZ left rates on hold, although maintained an open door for further easing in a statement that was seen as mildly more dovish than that expected by the market.

Australia

It was a quiet week in Australia last week that saw most of the influence come from discussion around central bank monetary policy. The talk came after new RBA Governor Lowe recommitted to the 2-3% medium term inflation target and emphasised the flexibility around the target and the importance of guiding expectations. The flexibility means that the RBA would not have to mechanically keep cutting rates just because inflation is below the target. The RBA minutes were largely unremarkable and highlighted that rates look set to stay on hold for the foreseeable future. Data released during the week had little effect and included house price data which showed a further moderation in home price growth in the year to June of 4.1%. The quarterly read of 2% (8% p.a.) was below expectations, although the main state capital cities of Sydney and Melbourne continue to experience more heated conditions. Look for a quiet week locally which features private sector credit and HIA new home sales numbers on Friday.

New Zealand

There has been little fresh news since Friday for the local currency. This has seen it stabilize after it lost ground on key crosses after last week’s mildly more dovish than expected Reserve Bank (RBNZ) OCR statement. The move by the central bank to leave rates on hold was expected. However, the apparent impact of the recent property LVR changes has once again focussed the market on the increased flexibility of the RBNZ to adjust rates lower should they achieve their desired goal of taking the heat out of the property sector. Further selling pressure was noted after last week’s GDT dairy auction which failed to lift to the degree expected. Other recent data included strong visitor and immigration numbers for August. Also trade numbers for August showed a deficit of $500M ($1.256B deficit), greater than expectations, on the back of both weaker than expected exports and higher imports. Expect direction this week to come from offshore with just building consents and the ANZ business confidence survey due on Friday.

United States

Investor attention last week was on the US Fed’s interest rate decision on Wednesday. This saw the FOMC remain on hold as they deferred a potential move for the December meeting. The Fed’s dot plot on rates was once again lowered towards that of the market. This trend has become familiar as the Fed’s expectations on future rates have come closer to the markets with each passing quarter this year. Data released during the week included numbers on homebuilder confidence which reached 11 month highs and housing market data which included large misses in housing starts, existing home sales and building permits. Both the Chicago Fed and Friday’s manufacturing PMI numbers also disappointed. Positive’s have come from the weekly jobless claims which continued the trend of positive reads from the labour market. Overnight new home sales numbers, which despite dropping in August continued their positive trend as builders back-logs reached a nine year high. Focus for this week will be on various Fed speakers, whilst on the data front the confidence and PMI numbers feature along with durable goods and GDP.

Europe

A much stronger than expected German IFO has seen the Euro get off to a positive start in trade this week. The business climate index rebounded strongly in its latest read rising to the highest level since May 2014. Both the current and expectations series were seen posting gains on the month prior. Data on Friday included a weaker than expected German Services PMI which weighed on the overall euro area indicator. Other data last week included a drop in the EU current account for July and German producer prices which fell into deflationary territory, largely on the back of falling energy prices. Comments from ECB President Draghi overnight included talking tough on UK access to the EU single market in the coming Brexit negotiations. He also covered the profitability issues faced by the European banks, this as leading German Bank Deutsche fell by 7.4% as speculation increases over its capital requirements and the possibility that state support may be required. In focus this week is further talk ECB from President Draghi, and various regional confidence and inflation reads.

United Kingdom

Negative Brexit sentiment which has undermined trade in the pound sterling in recent days, comes as investors fear the imposition of tough conditions by the EU on the UK as it moves towards formal discussions on its exit from the EU. Comments from UK PM Theresa May and UK foreign secretary Boris Johnson indicate that the UK is looking in invoke Article 50 in early 2017, which would begin the formal exit process. Comments from ECB President Draghi overnight included one that the UK shouldn’t be granted any special favours on single-market access during the negotiations. This fear has been central to the weakness seen in the GBP over the last week. Data released last week was sparse. CBI Industrial trend numbers matched expectations whilst the Rightmove house price index of property coming to the market saw a rebound of 0.7% in September, after falling 2% over the previous two months. Data to feature this week will include mortgage numbers on Thursday and Q2 GDP data on Friday.

Japan

Investor attention last week in Japan was centred on Wednesday’s BoJ monetary policy announcement which saw the central bank commit to overshooting on its 2% inflation target and expanding its monetary base until the goal is achieved. The move to commit to indefinite quantitative easing was accompanied by a shift to prevent a flatter yield curve in an effort to help Japanese banks and pension funds. No move to the interest rate was made (-0.1%), although Governor Kuroda noted yesterday that the main tool for further easing was lowering the rate further and lowering the long-term target as he pledged no limit to monetary policy. Data released during the week was understandably overlooked. August trade data was seen missing its consensus expectation, whilst the flash Nikkei Manufacturing PMI for September at 50.3 was above expectations and the first expansionary reading in seven months. Focus for this week will be on today’s BoJ monetary policy meeting minutes and industrial production/inflation data due on Friday.

Canada

Weaker than expected key Canadian data helped pressure the CAD in trade at the end of last week. The numbers included the August inflation report which missed expectations and was the lowest read since October. Core inflation which remained stagnant for the third straight month highlights the inflation concern that has emanated from the BoC recently.  Data from the retail sector was extremely underwhelming after the -0.1% read for July missed the +0.5% expectation by a large margin. Data earlier in the week had little impact on the markets after wholesale sales (also for July) rose by more than expected. Focus for this week is on the key oil producer meeting which is currently being conducted in Algeria, which has seen oil jump in recent trade. Friday’s GDP report will also be in focus and also watch for any important commentary coming out of BoC Governor Poloz’s speech at Western Washington University today.

Daily exchange rates

<!–

var root_url = "http://www.interest.co.nz/charts-csv/";
var tabs_count="7";
var csvfiles_loc= ["/charts-csv/chart_data/exchangerates/daily-usd.csv"," /charts-csv/chart_data/exchangerates/daily-aud.csv"," /charts-csv/chart_data/exchangerates/daily-twi.csv"," /charts-csv/chart_data/exchangerates/daily-yen.csv"," /charts-csv/chart_data/exchangerates/daily-yuan.csv"," /charts-csv/chart_data/exchangerates/daily-eur.csv"," /charts-csv/chart_data/exchangerates/daily-gbp.csv"];
var chart_title_arr= ["US dollar","Australian dollar","Trade weighted index","Japanese Yen","Chinese Yuan","Euro","British pound"];
var chart_subtitles_arr= ["Daily benchmark rate","Daily benchmark rate","Daily benchmark rate","Daily benchmark rate","Daily benchmark rate","Daily benchmark rate","Daily benchmark rate"];
var tab_titles_arr= ["US$","AU$","TWI","u00a5en","u00a5uan","u20acuro","GBP"];
var source_arr= ["RBNZ","RBNZ","RBNZ","RBNZ","RBNZ","RBNZ","RBNZ"];
var source_hyperlink_arr= ["8"];
var tabswidth="8";
var decimal_arr= ["4","4","4","2","2","4","4"];

// variable declaration
var xpad;
var padding_value=0;
var range_selector=0
var loc;
var updt;
var val_num;
var vi=0;
var max_val;
var x;

var finalAr = new Array();
for (var i = 0; i <= tabs_count; i++) {
finalAr[i] = new Array();
}
var flagAr = new Array();
for (var i = 0; i <= tabs_count; i++) {
flagAr[i] =[];
}
var yaxisAr = new Array();
for (var i = 0; i 536)
{
var b = arr.length – 536; // to get last 36 points
}
else if (arr.length < 536)
{
var b = 537 – arr.length;
}
else if(arr.length == 536)
{
var b=2;
}

// to generate the format for date representation in x axis

var timestamweek = 604800000;
var timestamday = 86400000;
var timestammonth30 = 2592000000;
var timestammonth31 = 2678400000;
var timestamyear = 31536000000;
var timestamquarterly = 7776000000;

for (var u=0;u<2;u++) {
arr[u] = parseLineCSV(arr[u]);
fomat= String(arr[u][0]);
var k=0;

do {
k++;
} while(fomat.charAt(k)!="-")
var k1 =k;

do {
k++;
} while(fomat.charAt(k)!="-")
var k2=k;

do {
k++;
} while(k<fomat.length)
var k3=k;

var dd= fomat.substring(0,k1);
var mm = fomat.substring(k1+1,k2);
var yy = "20"+fomat.substring(k2+1,k3+1);
var yy1=fomat.substring(k2+1,k3+1);

// conversion of months into numerical form

//+++++++++++++++++++++++++++++++++++
if (mm == "Jan")
{
mm= "01";
}
else if (mm == "Feb")
{
mm= "02";
}

else if (mm == "Mar")
{
mm= "03";
}

else if (mm == "Apr")
{
mm= "04";
}

else if (mm == "May")
{
mm= "05";
}

else if (mm == "Jun")
{
mm= "06";
}

else if (mm == "Jul")
{
mm= "07";
}

else if (mm == " Aug")
{
mm= "08";
}

else if (mm == "Sep")
{
mm= "09";
}

else if (mm == "Oct")
{
mm= "10";
}

else if (mm == "Nov")
{
mm= "11";
}

else if (mm == "Dec")
{
mm= "12";
}

// +++++++++++++++++++++++++++++++++++++++++++++++++++++++

var date2 = mm+"/"+dd+"/"+yy;

if (u==0)
{
var timestam1 = Date.parse(date2);
}
else if(u==1)
{
var timestam2 = Date.parse(date2);
}
}
var timestamvar = (timestam2- timestam1);
var flagAR_count=0;
for (var i=2;i<arr.length;i++) {
flagAR_count++;
var tempAr = new Array();
var tempAr1 = new Array();
arr[i] = parseLineCSV(arr[i]);
if (arr[i]!='')
{

fomat= String(arr[i][0]);
replic=String(arr[i][0]);
var k=0;

do {
k++;
} while(fomat.charAt(k)!="-")
var k1 =k;

do {
k++;
} while(fomat.charAt(k)!="-")
var k2=k;

do {
k++;
} while(k<fomat.length)
var k3=k;

var dd= fomat.substring(0,k1);
var mm = fomat.substring(k1+1,k2);
var current_year=""+new Date().getFullYear();
var c_year=Number(current_year.substring(2,4));
var c_data=Number(''+fomat.substring(k2+1,k3+1));
if(c_data c_year)
{
var yy = “19”+fomat.substring(k2+1,k3+1);
}
else if(c_data == c_year)
{
var yy = “20”+fomat.substring(k2+1,k3+1);
}
// conversion of months into numerical form

//+++++++++++++++++++++++++++++++++++
if (mm == “Jan”)
{
mm= “01”;
}
else if (mm == “Feb”)
{
mm= “02”;
}

else if (mm == “Mar”)
{
mm= “03”;
}

else if (mm == “Apr”)
{
mm= “04”;
}

else if (mm == “May”)
{
mm= “05”;
}

else if (mm == “Jun”)
{
mm= “06”;
}

else if (mm == “Jul”)
{
mm= “07”;
}

else if (mm == “Aug”)
{
mm= “08”;
}

else if (mm == “Sep”)
{
mm= “09”;
}

else if (mm == “Oct”)
{
mm= “10”;
}

else if (mm == “Nov”)
{
mm= “11”;
}

else if (mm == “Dec”)
{
mm= “12”;
}
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++

var date = mm+”/”+dd+”/”+yy;

var timestam_1 = Date.parse(date);
var timestam= timestam_1+86400000; //86400000 added to get correct timezone output from Date.parse
var time4 = new Date(timestam);
var Weeko = time4.getDay();
var dd2 = time4.getDate();
var mm2 = time4.getMonth();
var flag_y=arr[i][1];
var ahref_title=”Click here for full story”;
if(arr[i][2]) {
var url=arr[i][2];
var flag_date='{“x”:’+timestam+’, “title”:”  “,”text”:”Click here for Story!”}’;

flagAr[csvgen_counter].push(flag_date);
}
var yy2 = time4.getFullYear();
var yy3 = yy2+””;
var yy4= yy3.substring(2,4);
//++++++++++++++++++++++++this for days conversion++++++++++++++++++++++++++++
if (Weeko==1)
{
Weeko = “Mon”;
}

else if (Weeko==2)
{
Weeko = “Tue”;
}

else if (Weeko==3)
{
Weeko = “Wed”;
}

else if (Weeko==4)
{
Weeko = “Thu”;
}

else if (Weeko==5)
{
Weeko = “Fri”;
}

else if (Weeko==6)
{
Weeko = “Sat”;
}

else if (Weeko==0)
{
Weeko = “Sun”;
}

//+++++++++++++++++++++++this is for month conversion+++++

if (mm2==0)
{
mm2 = “Jan”;
}

else if (mm2==1)
{
mm2 = “Feb”;
}

else if (mm2==2)
{
mm2 = “Mar”;
}

else if (mm2==3)
{
mm2 = “Apr”;
}

else if (mm2==4)
{
mm2 = “May”;
}

else if (mm2==5)
{
mm2 = “Jun”;
}

else if (mm2==6)
{
mm2 = “Jul”;
}

else if (mm2==7)
{
mm2 = “Aug”;
}

else if (mm2==8)
{
mm2 = “Sep”;
}

else if (mm2==9)
{
mm2 = “Oct”;
}

else if (mm2==10)
{
mm2 = “Nov”;
}

else if (mm2==11)
{
mm2 = “Dec”;
}
//++++++++++++++++++++++++++++++++++++++++

//weekly
if ( timestamvar == timestamweek)
{
fomat2=dd2+”-“+mm2+”-“+yy4;
padding_value=timestamweek;
range_selector=2;
}

// Daily
else if ( timestamvar = timestamyear)
{
fomat2=mm2+”-“+yy4;
padding_value=timestamyear;
range_selector=3;
}

//monthly
else if ((timestamvar <= timestammonth30)&&(timestamvar = timestamquarterly)
{
fomat2=mm2+”-“+yy4;
padding_value=timestamquarterly;
range_selector=3;
}

else
{
fomat2=dd2+”-“+mm2+”-“+yy4;
padding_value=timestamday;
range_selector=3;
}

arr[i][0]= fomat2;
var decpad;
decpad = parseFloat(arr[i][1]);
arr[i][1] = decpad;

if(i==(arr.length-1))
{

// Functionality to get the last value

var xvalu=dd2+”-“+mm2+”-“+yy4;
var yvalu= String(arr[i][1]);
var xyvalu=”Latest value at “+xvalu+” is “+yvalu;
updt=”Updated on “+xvalu;
}

tempAr.push(timestam);
if(!arr[i][1])
{
arr[i][1]=null;
}
yaxisAr[csvgen_counter].push(arr[i][1]);
// tempAr1.push(timestam);
// tempAr2.push(tempAr1);
tempAr.push(arr[i][1]);
last_val=timestam;
finalAr[csvgen_counter].push(tempAr);
}
xpad=last_val+padding_value; //*****************to end up graph early//////
if(arr[i]== “”)
{
vi=arr.length-i;
arr.length=arr.length-vi;
i=arr.length-1;
fomat = replic;

var k=0;

do {
k++;
} while(fomat.charAt(k)!=”-“)
var k1 =k;

do {
k++;
} while(fomat.charAt(k)!=”-“)
var k2=k;

do {
k++;
} while(k<fomat.length)
var k3=k;

var dd= fomat.substring(0,k1);
var mm = fomat.substring(k1+1,k2);
var yy = "20"+fomat.substring(k2+1,k3+1);

// conversion of months into numerical form

//+++++++++++++++++++++++++++++++++++
if (mm == "Jan")
{
mm= "01";
}
else if (mm == "Feb")
{
mm= "02";
}

else if (mm == "Mar")
{
mm= "03";
}

else if (mm == "Apr")
{
mm= "04";
}

else if (mm == "May")
{
mm= "05";
}

else if (mm == "Jun")
{
mm= "06";
}

else if (mm == "Jul")
{
mm= "07";
}

else if (mm == "Aug")
{
mm= "08";
}

else if (mm == "Sep")
{
mm= "09";
}

else if (mm == "Oct")
{
mm= "10";
}

else if (mm == "Nov")
{
mm= "11";
}

else if (mm == "Dec")
{
mm= "12";
}
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++

var date = mm+"/"+dd+"/"+yy;
//here flagAr may be
var timestam = Date.parse(date);
var time4 = new Date(timestam);
var Weeko = time4.getDay();
var dd2 = time4.getDate();
var mm2 = time4.getMonth();

var yy2 = time4.getFullYear();
var yy3 = yy2+"";
var yy4= yy3.substring(2,4);
//++++++++++++++++++++++++this for days conversion++++++++++++++++++++++++++++
if (Weeko==1)
{
Weeko = "Mon";
}

else if (Weeko==2)
{
Weeko = "Tue";
}

else if (Weeko==3)
{
Weeko = "Wed";
}

else if (Weeko==4)
{
Weeko = "Thu";
}

else if (Weeko==5)
{
Weeko = "Fri";
}

else if (Weeko==6)
{
Weeko = "Sat";
}

else if (Weeko==0)
{
Weeko = "Sun";
}

//+++++++++++++++++++++++this is for month conversion+++++

if (mm2==0)
{
mm2 = "Jan";
}

else if (mm2==1)
{
mm2 = "Feb";
}

else if (mm2==2)
{
mm2 = "Mar";
}

else if (mm2==3)
{
mm2 = "Apr";
}

else if (mm2==4)
{
mm2 = "May";
}

else if (mm2==5)
{
mm2 = "Jun";
}

else if (mm2==6)
{
mm2 = "Jul";
}

else if (mm2==7)
{
mm2 = "Aug";
}

else if (mm2==8)
{
mm2 = "Sep";
}

else if (mm2==9)
{
mm2 = "Oct";
}

else if (mm2==10)
{
mm2 = "Nov";
}

else if (mm2==11)
{
mm2 = "Dec";
}
//++++++++++++++++++++++++++++++++++++++++

//weekly
if ( timestamvar == timestamweek)
{
fomat2=dd2+"-"+mm2+"-"+yy4;
}

// Daily
else if ( timestamvar = timestamyear)
{
fomat2=mm2+”-“+yy4;
}

//monthly
else if ((timestamvar <= timestammonth30)&&(timestamvar = timestamquarterly)
{
fomat2=mm2+”-“+yy4;
}

arr[i][0]= fomat2;
var decpad;

decpad = parseFloat(arr[i][1]);
//arr[i][1] = roundVal(decpad);
arr[i][1] = decpad;
if(i==(arr.length-1))
{

var xvalu=dd2+”-“+mm2+”-“+yy4;
var yvalu= String(arr[i][1]);
var xyvalu=”Latest value at “+xvalu+” is “+yvalu;
updt=”Updated on “+xvalu;
}
}

}
}

//other required functions

//chart configuration starts here

function getXMLHttpRequest(file) {

//var arrSignatures = [“MSXML2.XMLHTTP.5.0”, “MSXML2.XMLHTTP.4.0″,
//”MSXML2.XMLHTTP.3.0”, “MSXML2.XMLHTTP”,
//”Microsoft.XMLHTTP”];

//for (var i=0; i < arrSignatures.length; i++) {

try
{
var xmlhttp = new window.XMLHttpRequest();
xmlhttp.open("POST",file,false);
return xmlhttp;
}
catch(e)
{
error=e.message;
}

//}
throw new Error("MSXML is not installed on your system.");
}

function readCSV(locfile) {
// load a whole csv file, and then split it line by line
var req = new getXMLHttpRequest(locfile);
//req.open("POST",locfile,false);
req.send("");
return req.responseText.split(/n/g);
}

function parseLineCSV(lineCSV) {
// parse csv line by line into array
var CSV = new Array();

lineCSV = lineCSV.replace(/,/g," ,");

lineCSV = lineCSV.split(/,/g);

// This is continuing of 'split' issue in IE
// remove all trailing space in each field
for (var i=0;i<lineCSV.length;i++) {
lineCSV[i] = lineCSV[i].replace(/s*$/g,"");
}

lineCSV[lineCSV.length-1]=lineCSV[lineCSV.length-1].replace(/^s*|s*$/g,"");
var fstart = -1;

for (var i=0;i=0) {
for (var j=fstart+1;j<=i;j++) {
lineCSV[fstart]=lineCSV[fstart]+","+lineCSV[j];
lineCSV[j]="-DELETED-";

}
fstart=-1;
}
}
fstart = (lineCSV[i].match(/^"/)) ? i : fstart;
}

var j=0;

for (var i=0;i<lineCSV.length;i++) {
if (lineCSV[i]!="-DELETED-") {
CSV[j] = lineCSV[i];
j++;
}

}

return CSV;
}

function roundVal(val_num){
var dec = 2;
var result = Math.round(val_num*Math.pow(10,dec))/Math.pow(10,dec);
return result;
}

function setdecimalpoints(deca)
{
var deca1= deca;
var deca2= parseInt(deca);
if((deca1-deca2)!=0)
{
return 2;
}
else
{
return 0;
}
}
for(i=0;i

Charts loading…
Charts loading…
Charts loading…
Charts loading…
Charts loading…
Charts loading…
Charts loading…

—————————–

Ian Dobbs is a currency analyst with Direct FX You can contact him here »