title: gnuplot candlestick red and green fill
body: <p>Candlestick plots on the financial sites, at least the ones I have seen, fill the candlestick green if the close is higher then the open, and red if the close is lower then the open.</p>
  
  <p>If I set the fill style all candlesticks are filled with the fill color, is there a way in gnuplot 4.6 to use the color scheme as I described above?</p>
  
  <p>A sample script is:</p>
  
  <pre><code>set xdata time
  set timefmt"%Y-%m-%d %H:%M:%S"
  set xrange ["2014-01-01":"2014-01-02"]
  set yrange [*:*]
  set datafile separator ","
  plot '201401_EURUSD_Hourly.csv' using 1:2:4:3:5 notitle with candlesticks
  </code></pre>
  
  <p>with some data points</p>
  
  <pre><code>2014-01-01 17:00:00,1.376150,1.376550,1.374020,1.375990
  2014-01-01 18:00:00,1.376100,1.377340,1.375980,1.376520 
  2014-01-01 19:00:00,1.376440,1.376870,1.375780,1.375860 
  2014-01-01 20:00:00,1.375850,1.376470,1.375000,1.376280 
  2014-01-01 21:00:00,1.376270,1.376720,1.375970,1.376530 
  2014-01-01 22:00:00,1.376550,1.377440,1.376270,1.376530 
  2014-01-01 23:00:00,1.376540,1.376540,1.374390,1.374520 
  2014-01-02 00:00:00,1.374500,1.375790,1.374380,1.375660 
  2014-01-02 01:00:00,1.375630,1.375740,1.374610,1.375000 
  2014-01-02 02:00:00,1.374980,1.375270,1.372480,1.373100
  </code></pre>