anchor.diff:      {
         data: [
           <%=
  -          trades = Trade.
  -            with_currency(:lreur).
  -            where("created_at >= ?", DateTime.now.advance(:hours => -48)).
  -            all.
  -            map { |t| "[#{t.created_at.to_i}, #{t.ppc}]"}
  +          with_exclusive_scope do
  +            trades = Trade.
  +              with_currency(:lreur).
  +              where("created_at >= ?", DateTime.now.advance(:hours => -48)).
  +              all.
  +              map { |t| "[#{t.created_at.to_i}, #{t.ppc}]"}
  +          end
   
             trades << "[#{DateTime.now.to_i}, #{Trade.with_currency(:lreur).last.ppc}]" unless Trade.with_currency(:lreur).count.zero?
   
  
positive.code:     {
        data: [
          <%=
            trades = Trade.
              with_currency(:eur).
              where("created_at >= ?", DateTime.now.advance(:hours => -48)).
              all.
              map { |t| "[#{t.created_at.to_i}, #{t.ppc}]"}
  
            trades << "[#{DateTime.now.to_i}, #{Trade.with_currency(:eur).last.ppc}]" unless Trade.with_currency(:eur).count.zero?
  
  
negative.code:     {
        data: [
          <%=
            trades = []
            
            with_exclusive_scope do
              trades = Trade.
                with_currency(:lrusd).
                where("created_at >= ?", DateTime.now.advance(:hours => -48)).
                all.
                map { |t| "[#{t.created_at.to_i}, #{t.ppc}]"}
            end
  
            trades << "[#{DateTime.now.to_i}, #{Trade.with_currency(:lrusd).last.ppc}]" unless Trade.with_currency(:lrusd).count.zero?
  
  