Sha256: 7d11f46d347745c2543e749874561599ad98335bc5bc6b3c65928d144ca04c64

Contents?: true

Size: 1.78 KB

Versions: 17

Compression:

Stored size: 1.78 KB

Contents

.strategies--form
  = form_for strategy do |f|
    .actions
      = f.submit

    .row
      .col-md-6
        .field
          %label Kind
          = f.select :kind, options_for_select( Iro::Strategy::KINDS, selected: strategy.kind )
        .field
          %label long or short?
          = f.select :long_or_short, options_for_select([nil, Iro::Strategy::LONG, Iro::Strategy::SHORT], selected: strategy.long_or_short)
        .field
          %label stock
          = f.select :stock_id, options_for_select(@stocks_list, selected: strategy.stock_id), class: 'select2'

      .col-md-6
        .field
          %label slug
          = f.text_field :slug
    %hr


    .field
      %label Threshold Buffer dollars above water
      = f.number_field :threshold_buffer_above_water, placeholder: "0.49", step: 0.01
    .field
      = f.label :threshold_dte
      = f.number_field :threshold_dte, placeholder: "1"
    -# .field
    -#   = f.label :next_max_outer_delta
    -#   = f.number_field :next_max_outer_delta, placeholder: "0.25", step: 0.01
    .field
      = f.label :threshold_delta
      = f.number_field :threshold_delta, placeholder: "0.14", step: 0.001
    .field
      = f.label :threshold_netp
      = f.number_field :threshold_netp, placeholder: "0.69", step: 0.001

    %hr

    .field
      = f.label :next_inner_delta
      = f.number_field :next_inner_delta, placeholder: "0.25", step: 0.001
    .field
      = f.label :next_inner_strike
      = f.number_field :next_inner_strike, placeholder: "20.0", step: 0.01
    .field
      = f.label :next_spread_amount
      = f.number_field :next_spread_amount, placeholder: "20", step: 0.1
    .field
      %label next buffer dollars above water
      = f.number_field :next_buffer_above_water, placeholder: "80", step: 0.01

    .actions
      = f.submit


Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.43 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.42 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.41 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.40 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.39 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.38 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.37 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.36 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.35 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.34 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.33 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.32 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.31 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.30 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.29 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.28 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.27 app/views/iro/strategies/_form.haml