anychart.onDocumentReady(function () {
var chart = anychart.cartesian();
var series = chart.ohlc([
{x: Date.UTC(2017, 2, 25), open: 511.53, high: 514.98, low: 505.79, close: 506.40},
{x: Date.UTC(2017, 2, 26), open: 507.84, high: 513.30, low: 507.23, close: 512.88},
{x: Date.UTC(2017, 2, 27), open: 512.36, high: 515.40, low: 510.58, close: 511.40},
{x: Date.UTC(2017, 2, 28), open: 515.02, high: 516.50, low: 511.47, close: 515.25}
series.selectFallingStroke(function () {
return "5 " + this.sourceColor;
chart.title("Set select falling stroke parameter as a function");
chart.container("container");