3 <% if @selected_security %><em>on <%=@selected_security%></em><% end %>
6 <%= render :partial=>'portrait/smart_links', locals: { :item_to_portrait=>@selected_security, :shown_is=>:quoterecords } %>
9 <%= render :partial=>'asset/quote_form', locals: { :quote=>@quote, :securities=>@securities, :selected_security=>@selected_security.id } %>
12 <%= form_tag({:action=>'index'}, :method=>:get, :id=>'controller_filter') do %>
14 <%= select_tag 'id_security', options_from_collection_for_select(@securities, :id, :to_s_with_symbol, @selected_security.id), prompt: '-- Select Security --' %>
15 <%= button_tag 'show', :name=>'show', :value=>'this' %>
16 <%= button_tag '<= previous', :name=>'show', :value=>'previous' %>
17 <%= button_tag 'next =>', :name=>'show', :value=>'next' %>
21 <% if not @intraday_quotes.empty? and @quoterecords.empty? or not (@quoterecords.empty? ? false : @quoterecords.first.Quote.time_last.between?(smr_browse_date.beginning_of_day, smr_browse_date.end_of_day)) %>
23 <em>intraday quotes in contrast to previous records</em></h2>
24 <table id='quoterecord_observations'>
25 <% @intraday_quotes.each do |q| %>
28 <b><%=q.last%></b> at <%=q.time_last.strftime('%H:%M')%>
29 <%if q.volume%>, <%= smr_humanize(q.volume, :shortword=>true) %> shares traded<%end%>
32 <% # build new Quoterecord as suggestion
33 msg, newqr = @quoterecords.inspect_quote(q)
35 newqr.column = @quoterecords.get_last_recorded_column
37 <% if not msg.empty? %>
38 <span><%= msg %></span>
40 <%= render :partial=>'form', locals: { :quoterecord=>newqr, :skip_fieldset=>true } %>
47 <% unless @quoterecords.empty? %>
48 <h2>Previous Records</h2>
51 <%= render :partial=>'form', locals: { :quoterecord=>@quoterecord } %>
54 <table id='quoterecords'>
56 <tr><th colspan="7"><%= smr_paginate @page, @total_pages, quoterecords_path %></th></tr>
59 <% Smr::Quoterecords.get_columns.each do |c| %>
60 <th><%= Smr::Quoterecords.translate_column(c) %></th>
65 <% Smr::Quoterecords.get_columns.each do |c| %>
66 <th><%= @quoterecords.get_pivot_point(c) %></th>
71 <% @quoterecords.each do |qr| %>
74 <%=link_to '+', qr if qr.time_created > 90.days.ago %>
75 <%=smr_humanize(qr.Quote.time_last)%>
76 <% if not qr.comment.empty? %><span class="comment_text"><%=qr.comment%></span><% end %>
78 <% Smr::Quoterecords.get_columns.each do |c| %>
79 <td class="<%= make_css_class(qr, c) %>">
80 <%if qr.is_column?(c) %>
82 <%if qr.Quote.volume%><span><%=smr_humanize(qr.Quote.volume, :shortword=>true)%> shares traded</span><%end%>
92 <h2>Sensitivity Settings</h2>
93 <%= form_for @sensitivity, :url=>{controller: :quoterecord_threshold, action: :create}, :method=>:POST do |f| %>
94 <fieldset id='quoterecord_sensitivity'>
95 <legend>adjust when UP/DOWN or Pivot Point hits are triggered</legend>
96 <%= hidden_field_tag :id, @sensitivity.id %>
97 <%= f.hidden_field :id_security %>
98 <%= f.number_field :quote_sensitivity, :step=>0.01, :min=>0.01 %> <%= f.label :quote_sensitivity, 'UP/DOWN hit sensitivity' %><br/>
99 <%= f.number_field :hit_sensitivity, :step=>0.01, :min=>0.01 %> <%= f.label :hit_sensitivity, 'Pivot Point hit sensitivity' %><br/>
100 <%= f.submit 'save' %>