Sha256: 69d2c84624e229f43c0f7aa31b1f062c2f02cb11d4a957823f89610899d5a429

Contents?: true

Size: 1.31 KB

Versions: 3

Compression:

Stored size: 1.31 KB

Contents

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


    .field
      %label Kind
      = f.select :kind, options_for_select( Iro::Strategy::KINDS, selected: strategy.kind )
    .field
      %label slug
      = f.text_field :slug
    .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
      = f.label :buffer_above_water
      = f.number_field :buffer_above_water, placeholder: "0.49", step: 0.01
    .field
      = f.label :next_max_outer_delta
      = f.number_field :next_max_outer_delta, placeholder: "0.25", step: 0.01
    .field
      = f.label :next_max_inner_delta
      = f.number_field :next_max_inner_delta, placeholder: "0.25", step: 0.01
    .field
      = f.label :next_min_strike
      = f.number_field :next_min_strike, placeholder: "20.0", step: 0.01
    .field
      = f.label :threshold_delta
      = f.number_field :threshold_delta, placeholder: "0.14", step: 0.01
    .field
      = f.label :threshold_netp
      = f.number_field :threshold_netp, placeholder: "0.69", step: 0.01
    -# .field
    -#   = f.label :current_underlying_strike
    -#   = f.number_field :current_underlying_strike, placeholder: "16.66", step: 0.01

    .actions
      = f.submit


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.22 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.21 app/views/iro/strategies/_form.haml
iron_warbler-2.0.7.20 app/views/iro/strategies/_form.haml