SPARK-1639: tweaks

This commit is contained in:
Michael Harding committed 2018-08-29 13:57:06 -04:00
1 parent 353a33a391
commit 88ae39fa52
1 file changed
+26 -20
@@ -401,7 +401,6 @@
<GroupBox.Header>
<StackPanel Orientation="Horizontal">
<TextBlock FontWeight="Bold" Margin="0,0,4,0">Trigger Condition</TextBlock>
<c:HelpButton ToolTip="The trigger will create a trade when the market crosses the selected price. The Price Type sets the side of the market to watch." />
</StackPanel>
</GroupBox.Header>
<Grid>
@@ -411,20 +410,23 @@
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="1" VerticalAlignment="Center">Price Type</TextBlock>
<ComboBox
Grid.Row="1"
Grid.Column="2"
ItemsSource="{Binding trigger_price_types}"
ItemTemplate="{StaticResource EnumDescriptionTemplate}"
SelectedItem="{Binding trigger_price_type}"
/>
<StackPanel
Orientation="Horizontal"
Grid.Row="1"
Grid.Column="2">
<ComboBox
ItemsSource="{Binding trigger_price_types}"
ItemTemplate="{StaticResource EnumDescriptionTemplate}"
SelectedItem="{Binding trigger_price_type}"
/>
<c:HelpButton Margin="4,0,0,0" ToolTip="This is the side of the market that is observed for the trigger condition. When this market touches (or penetrates the trigger price), the child order is sent to the market." />
</StackPanel>
</Grid>
</GroupBox>
<GroupBox Grid.Row="2">
<GroupBox.Header>
<StackPanel Orientation="Horizontal">
<TextBlock FontWeight="Bold" Margin="0,0,4,0">Trigger Action</TextBlock>
<c:HelpButton ToolTip="Set the type for the child order and the price" />
</StackPanel>
</GroupBox.Header>
<Grid>
@@ -441,19 +443,23 @@
<TextBlock Grid.Row="0">
Child
</TextBlock>
<uag:OrderDetailsPopupControl
Grid.Row="0"
Grid.Column="2"
IsOpen="{Binding child_order.editable_properties_open, FallbackValue=False}"
ItemsSource="{Binding child_order_types}"
SelectedItem="{Binding child_order}"
HasEditableProperties="{Binding child_order.has_editable_properties, FallbackValue=False}"
/>
<StackPanel
Orientation="Horizontal"
Grid.Row="0"
Grid.Column="2">
<uag:OrderDetailsPopupControl
IsOpen="{Binding child_order.editable_properties_open, FallbackValue=False}"
ItemsSource="{Binding child_order_types}"
SelectedItem="{Binding child_order}"
HasEditableProperties="{Binding child_order.has_editable_properties, FallbackValue=False}"
/>
<c:HelpButton Margin="4,0,0,0" ToolTip="This is the type of the child order algo" />
</StackPanel>
<GroupBox Grid.Row="2" Grid.ColumnSpan="3">
<GroupBox.Header>
<StackPanel Orientation="Horizontal">
<TextBlock FontWeight="SemiBold" Margin="0,0,4,0">Price</TextBlock>
<c:HelpButton ToolTip="The trigger can occur either at a specified (Fixed) price or when the market is within a specified number of ticks (Offset)" />
<c:HelpButton ToolTip="The child order, resulting from the trigger condition being met, can be sent either at a specified price specified price (Fixed) price or payup/less ticks from the Trigger Price" />
</StackPanel>
</GroupBox.Header>
<Grid>
@@ -490,7 +496,7 @@
VerticalContentAlignment="Center"
IsChecked="{Binding use_fixed_price, Converter={StaticResource NotConverter}, Mode=TwoWay}"
>
Offset
Payup
</RadioButton>
<Grid Grid.Row="2" Grid.Column="2">
<Grid.ColumnDefinitions>
@@ -523,7 +529,7 @@
<GroupBox.Header>
<StackPanel Orientation="Horizontal">
<TextBlock FontWeight="Bold" Margin="0,0,4,0">Trigger Exit</TextBlock>
<c:HelpButton ToolTip="The trigger order can be canceled after a specified amount of time (Timeout) or conditionally based on the price. If Price Conditional is set, the child order will be created when the market crosses the trigger price but if the market crosses again in the opposite direction the order will be canceled." />
<c:HelpButton ToolTip="The trigger order can be canceled after a specified amount of time (Timeout) or conditionally (Price Conditional) if the trigger condition ceases to hold." />
</StackPanel>
</GroupBox.Header>
<Grid>