var sChartURL = 'http://www.hoovers.idmanagedsolutions.com/charts/advanced/advanced.chart?'; var aIndicators = Array(); aIndicators["MOM"] = {"name":"Momentum", "Description":"Momentum measures the percentage change in price from one period to the next, using 100 as its center line.", "p1name":"Number of Periods", "p1":"20", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["ROC"] = {"name":"Rate of Change", "Description":"Rate of Change measure the percentage change in price from one period to the next.", "p1name":"Number of Periods", "p1":"10", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["FST"] = {"name":"Fast Stochastics", "Description":"The Stochastics Oscillators compare where a stock's price closed to its price range over a specific period of time.", "p1name":"Number of Periods", "p1":"14", "p2name":"Periods for SMA", "p2":"3", "p3name":"na", "p3":"na" }; aIndicators["SST"] = {"name":"Slow Stochastics", "Description":"The Stochastics Oscillators compare where a stock's price closed to its price range over a specific period of time.", "p1name":"Number of Periods", "p1":"14", "p2name":"Periods for SMA", "p2":"3", "p3name":"na", "p3":"na" }; aIndicators["OBV"] = {"name":"On Balance Volume", "Description":"The On Balance Volume indicator measures positive and negative volume flow, following a concept that volume precedes price.", "p1name":"Moving Avg Periods", "p1":"38", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["WILLIAMS"] = {"name":"Williams %R", "Description":"Williams %R is an indicator that is especially popular for measuring overbought and oversold levels. ", "p1name":"Number of Periods", "p1":"14", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["MFI"] = {"name":"Money Flow Index", "Description":"The Money Flow Index is a measure of the strength of money flowing in and out of a security.", "p1name":"Number of Periods", "p1":"38", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["MACD"] = {"name":"MACD Indicator", "Description":"The Moving Average Convergence/Divergence indicator follows the difference between a series of moving averages.", "p1name":"Periods for First EMA", "p1":"12", "p2name":"Periods for Second EMA", "p2":"26", "p3name":"Periods for Signal Line", "p3":"9" }; aIndicators["VPT"] = {"name":"Volume Price Trend", "Description":"VPT shows a cumulative volume line that adds or subtracts a multiple of the percentage change in share price trend and current volume.", "p1name":"Number of Periods", "p1":"14", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["RSI"] = {"name":"Relative Strength Index", "Description":"RSI measures a stock's health relative to its own history.", "p1name":"Time Period (days)", "p1":"14", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["VHF"] = {"name":"Vert. Horiz. Filter", "Description":"The Filter identifies trending and ranging markets by measuring the level of trend activity.", "p1name":"Number of Periods", "p1":"14", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["CCI"] = {"name":"Commodity Channel Index", "Description":"The CCI identifies cyclical turns in an instrument.", "p1name":"Number of Periods", "p1":"20", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["ATR"] = {"name":"Wilders Volatility (ATR)", "Description":"ATR simply measures the degree of price movement or volatility, but not indicate price movement or duration.", "p1name":"Number of Periods", "p1":"14", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["PVI"] = {"name":"Pos. Volume Index", "Description":"PVI highlights days when volume is up on the previous day. It is often used in conjuction with its Negative couterpart to identify bearish and bullish markets.", "p1name":"Number of Periods", "p1":"38", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["NVI"] = {"name":"Neg. Volume Index", "Description":"NVI highlights days when volume is down on the previous day. It is often used in conjuction with its Positive couterpart to identify bearish and bullish markets.", "p1name":"Number of Periods", "p1":"38", "p2name":"na", "p2":"na", "p3name":"na", "p3":"na" }; aIndicators["BB"] = {"name":"Bollinger Bands", "Description":"Bollinger Bands compare volatility and relative price levels over time.", "p1name":"Periods for SMA", "p1":"20", "p2name":"Number of Std Deviations", "p2":"2", "p3name":"na", "p3":"na" }; var changingSymbol = false; var allowCustomIndicatorParams = false; var iNotationLookupRefreshRate = 500; var aParameters = Array(); aParameters['ID_NOTATION'] = '1532991' aParameters['TYPE'] = 'line' aParameters['ID_BENCH1'] = '' aParameters['ID_BENCH2'] = '' aParameters['AVG1'] = '' aParameters['AVG2'] = '' aParameters['IND_MAIN'] = '' aParameters['IND_1'] = '' aParameters['IND_2'] = '' aParameters['INDPARAMS_1'] = '' aParameters['INDPARAMS_2'] = '' aParameters['AXIS_SCALE'] = 'lin' aParameters['RESOLUTION'] = 'D' aParameters['TIME_SPAN'] = '1Y' aParameters['WIDTH'] = '480' aParameters['HEIGHT']='300' var aResolutionMatrix = Array(); aResolutionMatrix["1D"] = ['1M','5M','15M','H']; aResolutionMatrix["5D"] = ['30M','H','90M']; aResolutionMatrix["1M"] = ['D','W']; aResolutionMatrix["3M"] = ['D','W']; aResolutionMatrix["6M"] = ['D','W','M']; aResolutionMatrix["1Y"] = ['D','W','M']; aResolutionMatrix["5Y"] = ['M']; aResolutionMatrix["10Y"] = ['M']; var aResolutions = Array(); aResolutions['1M'] = "1 Minute"; aResolutions['5M'] = "5 Minutes"; aResolutions['15M'] = "15 Minutes"; aResolutions['30M'] = "30 Minutes"; aResolutions['H'] = "60 Minutes"; aResolutions['90M'] = "90 Minutes"; aResolutions['D'] = "Daily"; aResolutions['W'] ="Weekly"; aResolutions['M'] ="Monthly"; var rNewChartResource; //var MA10_s = new Image(); MA10_s.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma10_selected.gif' //var MA20_s = new Image(); MA20_s.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma20_selected.gif' //var MA50_s = new Image(); MA50_s.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma50_selected.gif' //var MA100_s = new Image(); MA100_s.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma100_selected.gif' //var MA200_s = new Image(); MA200_s.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma200_selected.gif' var type_line_s = new Image(); type_line_s.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/line_selected.gif' var type_mountain_s = new Image(); type_mountain_s.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/mountain_selected.gif' var type_ohlc_s = new Image(); type_ohlc_s.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ohlc_selected.gif' var type_candle_s = new Image(); type_candle_s.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/candle_selected.gif' //var volume_s = new Image(); volume_s.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/volume_selected.gif' //var MA10_us = new Image(); MA10_us.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma10_unselected.gif' //var MA20_us = new Image(); MA20_us.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma20_unselected.gif' //var MA50_us = new Image(); MA50_us.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma50_unselected.gif' //var MA100_us = new Image(); MA100_us.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma100_unselected.gif' //var MA200_us = new Image(); MA200_us.src = 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ma200_unselected.gif' var type_line_us = new Image(); type_line_us.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/line_unselected.gif' var type_mountain_us = new Image(); type_mountain_us.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/mountain_unselected.gif' var type_ohlc_us = new Image(); type_ohlc_us.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/ohlc_unselected.gif' var type_candle_us = new Image(); type_candle_us.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/candle_unselected.gif' //var volume_us = new Image(); volume_us.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/volume_unselected.gif' //var indicator_bg_top = new Image(); indicator_bg_top.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/indicator_topbg.gif' //var indicator_bg_btm = new Image(); indicator_bg_btm.src= 'http://www.hoovers.idmanagedsolutions.com/images/advanced_chart/indicator_botbg.gif' function startLoading(){ var AvailWidth = document.getElementById('theChart').offsetWidth; var FromLeft = (AvailWidth-document.getElementById('IDMS_LoadingDialog').offsetWidth)/2; document.getElementById('IDMS_LoadingDialog').style.marginLeft = FromLeft+'px'; document.getElementById('IDMS_LoadingDialog').style.visibility='visible'; } function killLoading(){ document.getElementById('IDMS_LoadingDialog').style.visibility='hidden'; } function LookupSymbolNotation(sSymbol,bMainSymbol){ if(bMainSymbol==true){ changingSymbol = true; } startLoading(); if(sSymbol==''){ NewChart('ID_BENCH2',''); // if(mainSymbol==undefined){ // NewChart('ID_BENCH2',''); // } else { // return false; // } } else { //document.getElementById('IDMS_chartSpace').innerHTML=sBlankOutIDMS_chartSpace; frames['IDMS_lookupframe'].location.href = '/global/partners/idms/symbolComparisonProxy.html?symbol='+sSymbol; setTimeout("CheckForNotation()",iNotationLookupRefreshRate+500); } } function CheckForNotation(){ var cont = frames['IDMS_lookupframe'].document.getElementById('notation').innerHTML; if(cont==aParameters['ID_NOTATION']){ document.getElementById('ID_BENCH2').value=''; killLoading(); }else if(cont=='No Req' || cont==aParameters['ID_BENCH']){ setTimeout("CheckForNotation()",iNotationLookupRefreshRate); } else { ReturnLookedUpNotation(cont); } } function ReturnLookedUpNotation(notation){ //frames['IDMS_lookupframe'].location.href = '/global/partners/idms/symbolComparisonProxy.html?blank=1'; if(notation!='Symbol Not Found'){ if(changingSymbol){ NewChart('ID_NOTATION',notation); changingSymbol=false; } else { NewChart('ID_BENCH2',notation); } } else { alert('The symbol you entered could not be found.'); NewChart('ID_BENCH2',''); } } function setUnsetIndicators(sGroup,sNewSetting,bUnsetAll){ if(sGroup=='AVG1' || sGroup=='AVG2'){ var iGroupID = sGroup.substring(3); // document.getElementById('chartSelector_ma10_'+iGroupID).src=MA10_us.src; // document.getElementById('chartSelector_ma20_'+iGroupID).src=MA20_us.src; // document.getElementById('chartSelector_ma50_'+iGroupID).src=MA50_us.src; // document.getElementById('chartSelector_ma100_'+iGroupID).src=MA100_us.src; // document.getElementById('chartSelector_ma200_'+iGroupID).src=MA200_us.src; if(bUnsetAll!=true){ // document.getElementById('chartSelector_ma'+sNewSetting+'_'+iGroupID).src= eval("MA"+sNewSetting+"_s.src"); } } if(sGroup=='TYPE'){ document.getElementById('chartSelector_line').src=type_line_us.src; document.getElementById('chartSelector_mountain').src=type_mountain_us.src; document.getElementById('chartSelector_ohlc').src=type_ohlc_us.src document.getElementById('chartSelector_candle').src=type_candle_us.src; document.getElementById('chartSelector_'+sNewSetting).src = eval("type_"+sNewSetting+"_s.src"); } if(sGroup=='IND_MAIN' && sNewSetting=='VOLUME'){ // if(document.getElementById('chartSelector_volume').src==volume_us.src){ // document.getElementById('chartSelector_volume').src=volume_s.src; // } else { // document.getElementById('chartSelector_volume').src=volume_us.src; // } } } function ReWriteResolutions(sTimePeriod){ var aNewResolutions = aResolutionMatrix[sTimePeriod]; var rResolutionSelect = document.getElementById('RESOLUTION'); rResolutionSelect.options.length = 0; for(var a=0;a rResolutionSelect.options[a] = new Option(aResolutions[aNewResolutions[a]],aNewResolutions[a]); } aParameters['RESOLUTION'] = rResolutionSelect.options[0].value; } function NewChart(sField,mValue){ sChartURL = 'http://www.hoovers.idmanagedsolutions.com/charts/advanced/advanced.chart?'; startLoading(); setUnsetIndicators(sField,mValue); if(sField.substring(0,3)=='AVG'){ for(var f in aParameters){ if(f==sField){ if(aParameters[f]==mValue){ mValue=''; setUnsetIndicators(sField,'',true); } } } } else if(sField=='IND_MAIN' && mValue=='VOLUME'){ if(aParameters[sField]=='VOLUME'){ mValue=''; } } else if(sField=='TIME_SPAN'){ ReWriteResolutions(mValue); } aParameters[sField]=mValue; if(sField!='ID_BENCH2' || (sField=='ID_BENCH2' && mValue=='')){ document.getElementById(sField).value=mValue; } for (var p in aParameters){ sChartURL+='&'+p+'='+aParameters[p]; } var sFirstIncrement; var sTimeIncrement; if(aParameters['TIME_SPAN']=='1D'){ document.getElementById('XAxisNote').innerHTML = 'Vertical lines represent the first minute of the hour indicated.'; } else if(aParameters['TIME_SPAN']=='5D'){ document.getElementById('XAxisNote').innerHTML = 'Vertical lines represent the beginning of the day indicated.'; } else if(aParameters['TIME_SPAN']=='1M'){ if( aParameters['RESOLUTION']=='D'){ document.getElementById('XAxisNote').innerHTML = 'Vertical lines represent the first day of the week indicated.'; } else if( aParameters['RESOLUTION']=='W'){ document.getElementById('XAxisNote').innerHTML = 'Vertical lines represent the day indicated, the last day of each week.'; } } else if(aParameters['TIME_SPAN']=='6M' || aParameters['TIME_SPAN']=='1Y'){ document.getElementById('XAxisNote').innerHTML = 'Vertical lines represent the first day of the month indicated.'; } else if(aParameters['TIME_SPAN']=='5Y' || aParameters['TIME_SPAN']=='10Y'){ document.getElementById('XAxisNote').innerHTML = 'Vertical lines represent the first day of the year indicated.'; } if(aParameters['ID_BENCH2'] != undefined && aParameters['ID_BENCH2'] !=''){ document.getElementById('ComparisonNote').style.display=''; //document.getElementById('ComparisonNote').innerHTML = ''; } else{ document.getElementById('ComparisonNote').style.display='none'; //document.getElementById('ComparisonNote').innerHTML = ''; } rNewChartResource = new Image(); rNewChartResource.src=sChartURL; rNewChartResource.onLoad = setTimeout("goChart()",600); } function ApplyIndicatorSettings(iIndicator,sSelectedIndicator){ if(sSelectedIndicator==undefined){ sSelectedIndicator = aParameters['IND_'+iIndicator]; } var ind_params=""; if(sSelectedIndicator!=''){ if(aIndicators[sSelectedIndicator].p1name!="na"){ ind_params = document.getElementById("ind"+iIndicator+"_p1val").value; } if(aIndicators[sSelectedIndicator].p2name!="na"){ ind_params+=';'+document.getElementById("ind"+iIndicator+"_p2val").value; } if(aIndicators[sSelectedIndicator].p3name!="na"){ ind_params+=';'+document.getElementById("ind"+iIndicator+"_p3val").value; } } aParameters['INDPARAMS_'+iIndicator] = ind_params; document.getElementById('INDPARAMS_'+iIndicator).value=ind_params; NewChart('IND_'+iIndicator,sSelectedIndicator); if((aParameters['INDPARAMS_1']!='' && aParameters['INDPARAMS_1']!=undefined) || (aParameters['INDPARAMS_2']!='' && aParameters['INDPARAMS_2']!=undefined)){ if(allowCustomIndicatorParams) document.getElementById('IDMS_IndicatorSetupSpaces').style.display=''; } } function ClearIndicatorSetup(iIndicator){ document.getElementById('ind'+iIndicator+'_p1_name').innerHTML=''; document.getElementById('ind'+iIndicator+'_p1_value').innerHTML=''; document.getElementById('ind'+iIndicator+'_p2_name').innerHTML=''; document.getElementById('ind'+iIndicator+'_p2_value').innerHTML=''; document.getElementById('ind'+iIndicator+'_p3_name').innerHTML=''; document.getElementById('ind'+iIndicator+'_p3_value').innerHTML=''; document.getElementById('IDMS_ChartIndicator'+iIndicator+'Setup').style.display = 'none'; document.getElementById('IDMS_IndicatorSetupSpaces').style.display='none'; } function ActivatedIndicator(iIndicator,sSelectedIndicator,specificValues){ ClearIndicatorSetup(iIndicator); if(sSelectedIndicator!=''){ if(allowCustomIndicatorParams) document.getElementById('IDMS_IndicatorSetupSpaces').style.display=''; document.getElementById('ind'+iIndicator+'_description').innerHTML=''+aIndicators[sSelectedIndicator].name+'
'+aIndicators[sSelectedIndicator].Description; if(specificValues!=undefined){ aValuesSplit = specificValues.split(';'); } if(aIndicators[sSelectedIndicator].p1name!="na"){ document.getElementById('ind'+iIndicator+'_p1_name').innerHTML=aIndicators[sSelectedIndicator].p1name; var input1 = document.createElement("input"); input1.id="ind"+iIndicator+"_p1val"; if(specificValues!=undefined){ input1.value=aValuesSplit[0] } else { input1.value=aIndicators[sSelectedIndicator].p1; } input1.size=5; document.getElementById('ind'+iIndicator+'_p1_value').appendChild(input1); } if(aIndicators[sSelectedIndicator].p2name!="na"){ document.getElementById('ind'+iIndicator+'_p2_name').innerHTML=aIndicators[sSelectedIndicator].p2name; var input2 = document.createElement("input"); input2.id="ind"+iIndicator+"_p2val"; if(specificValues!=undefined){ input2.value=aValuesSplit[1] } else { input2.value=aIndicators[sSelectedIndicator].p2; } input2.size=5; document.getElementById('ind'+iIndicator+'_p2_value').appendChild(input2); } if(aIndicators[sSelectedIndicator].p3name!="na"){ document.getElementById('ind'+iIndicator+'_p3_name').innerHTML=aIndicators[sSelectedIndicator].p3name; var input3 = document.createElement("input"); input3.id="ind"+iIndicator+"_p3val"; if(specificValues!=undefined){ input3.value=aValuesSplit[2]; } else { input3.value=aIndicators[sSelectedIndicator].p3; } input3.size=5; document.getElementById('ind'+iIndicator+'_p3_value').appendChild(input3); } if(allowCustomIndicatorParams) document.getElementById('IDMS_ChartIndicator'+iIndicator+'Setup').style.display = ''; } ApplyIndicatorSettings(iIndicator,sSelectedIndicator); } function goChart(){ document.getElementById('theChart').src = rNewChartResource.src; setTimeout("killLoading()",1250); } function activateFreeTextBenchmarkWithEnter(e){ var keynum; if(window.event){ keynum = e.keyCode; }else if(e.which){ keynum = e.which; }else { return false; } if(keynum == 13){ LookupSymbolNotation(document.IDMS_AdvancedChartForm.ID_BENCH2.value); }else { return false; } } document.writeln(' '); document.writeln(''); document.writeln('
'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln('
'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln('
Compare Symbol: Benchmark:'); document.writeln('
'); document.writeln('
'); document.writeln('
'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln('
'); document.writeln('
'); document.writeln('
'); document.writeln('
'); document.writeln('
'); document.writeln('
Vertical lines represent the first day of the month indicated.
'); document.writeln(' '); document.writeln('
'); document.writeln(' Time:'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' Frequency:'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' Chart Style:'); document.writeln(' '); document.writeln('  '); document.writeln('  '); document.writeln('  '); document.writeln('  '); document.writeln(' '); document.writeln('
'); document.writeln('
'); document.writeln(' Moving Averages:'); document.writeln(' '); document.writeln('   1st: '); document.writeln('    2nd: '); document.writeln(' '); document.writeln(' Show Volume Chart:'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln('
'); document.writeln('
'); document.writeln(' Indicators:'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln('
'); document.writeln('
'); document.writeln('
'); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln(' '); document.writeln('
'); document.writeln('');