Charting

  • Выберите валютную пару
  • Выберите таймфрейм
  • AUDCAD
    AUDCHF
    AUDJPY
    AUDNZD
    AUDUSD
    AUS200
    BKTRUB
    CAC40
    CADCHF
    CADJPY
    CHFJPY
    DAX30
    EURAUD
    EURCAD
    EURCHF
    EURGBP
    EURJPY
    EURNZD
    EURRUB
    EURUSD
    GBPAUD
    GBPCAD
    GBPCHF
    GBPJPY
    GBPNZD
    GBPUSD
    HKO43
    ITA40
    JPN225
    NZDCAD
    NZDCHF
    NZDJPY
    NZDUSD
    SGDJPY
    SPA35
    SUI30
    SWE30
    USA100
    USA30
    USA500
    USDCAD
    USDCHF
    USDDKK
    USDJPY
    USDNOK
    USDRUB
    USDSEK
    USDSGD
    XAGEUR
    XAGUSD
    XAUEUR
    XAUUSD
  • M1
    M5
    M15
    M30
    H1
    H4
    D1
    W1
    MN

// <![CDATA[
Date.prototype.toLocaleFormat = function (format) {
var f = {y: this.getYear() + 1900, m: this.getMonth() + 1, d: this.getDate(), H: this.getHours(), M: this.getMinutes(), S: this.getSeconds()}
for (k in f)
format = format.replace('%' + k, f[k] < 10 ? "0" + f[k] : f[k]);
return format;
};

var idTimeout = 0;

google.load('visualization', '1', {packages: ['corechart']});
google.load("visualization", "1.0", {packages:["imagechart"]});
function drawVisualization() {
jQuery('#id_select_symbol').change(function () {
jQuery('#ui-quotes-chart').html('‘);
drawVisualization();
});
jQuery(‘#id_select_period’).change(function () {
jQuery(‘#ui-quotes-chart’).html(‘‘);
drawVisualization();
});
var input, dat, date, symbol, range, data, options, chart;
var x_temp = [], y_temp = [], x = [], y = [];
var month = {60: “M1”, 300: “M5”, 900: “M15”, 1800: “M30”, 3600: “H1”, 14400: “H4”, 86400: “D1”, 604800: “W1”, 2592000: “MN”};
dat = [];
symbol = document.getElementById(‘id_select_symbol’).value;
range = document.getElementById(‘id_select_period’).value;
jQuery.getJSON(“https://api.aforextrading.com/api/quote/candles.jsonp?callback=?”, {symbol: symbol, range: range}, function (content) {
for (index in content.candles) {
var value = content.candles[index];
if (index == 0) {
$.merge(dat, [
[null, value.close, value.close, value.close, value.close]
])
}

date = new Date(Date.parse(value.created_at));

date = new Date(date.getTime() – 4*60*60*1000);

$.merge(y_temp, [value.lower]);
$.merge(y_temp, [value.open]);
$.merge(y_temp, [value.close]);
$.merge(y_temp, [value.upper]);

$.merge(x_temp, [date.getTime()]);

if (index % 10 == 0) {
$.merge(dat, [
[date.toLocaleFormat(‘%y-%m-%d %H:%M:%S’), value.lower, value.open, value.close, value.upper]
])
} else {
$.merge(dat, [
[null, value.lower, value.open, value.close, value.upper]
])
}
if (index == content.candles.length – 1) {
$.merge(dat, [
[null, value.close, value.close, value.close, value.close]
])
}
}
x_temp.sort();
var x_n = 4;
var x_min = x_temp[0];
var x_max = x_temp[x_temp.length – 1];
var x_delta = (x_max – x_min) / x_n;

for (var i = 0; i <= x_n; i++) {
//var date = new Date(x_min.setSeconds(x_delta * i));
var date = new Date(x_min + (x_delta * i));
$.merge(x, [date.toLocaleFormat('%y-%m-%d %H:%M:%S')]);
}

y_temp.sort();
var y_n = 4;
var y_min = y_temp[0];
var y_max = y_temp[y_temp.length – 1];
var y_delta = (y_max – y_min) / y_n;

for (var i = 0; i

// <![CDATA[
function updateTable() {
jQuery.getJSON("https://api.aforextrading.com/api/quote/quotes.jsonp?callback=?", function (data) {
var dataArr = data.quotes;

if (dataArr == null) {
window.setTimeout('updateTable()', 500);
return false;
}

jQuery('#ui-quotes-load').css({display: 'none'});
jQuery('#kotirovki-table').css({display: 'block'});

var option;

for (option in dataArr) {
var symbol = option;
var move = dataArr[option].move;
var bid = dataArr[option].bid;

jQuery('.' + symbol.toLowerCase()).html(symbol + ' ‘ + bid + ‘‘);
}

window.setTimeout(‘updateTable()’, 5000);
});
}
updateTable();
// ]]>

Time Frame – is a time period  on a chart, it used to display online price movements intervals.

Time Frames:

Larger time frames are used to analyze long-term trends over a extended periods of time. Weekly charts can show historic price movement up to five years back and monthly chart – for twenty years. Using different type of time frames, we can analyze wide range of market movements in regards to long-term income  perspective.

AForex strongly recommend to perform a logical analysis of charts using different time frames with “top down” approach: starting with monthly and weekly charts to determine long-term and medium-term market trends, and then move on to daily and hourly charts with the search of optimal points of opening, managing and closing of trading positions.

More FAQ