SyntheticEditor2 - switching payless\up order

This commit is contained in:
John Colvin committed 2017-09-27 16:49:04 -04:00
1 parent 43aaa355db
commit 3360ca0302
2 files changed
+5 -5

No files matched your search

@@ -1,7 +1,6 @@
using bts.api;
using mbts.ui.controls;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
@@ -45,7 +44,8 @@ namespace mbts.ui.spark
#endregion
#region ParameterRows
public static readonly DependencyProperty ParameterRowsProperty = DependencyProperty.Register("ParameterRows", typeof(IEnumerable<IHaveSectionPath>), typeof(SyntheticEditor2), new PropertyMetadata(Enumerable.Empty<IHaveSectionPath>(), OnParameterRowsChanged));
public static readonly DependencyProperty ParameterRowsProperty = DependencyProperty.Register("ParameterRows", typeof(IEnumerable<IHaveSectionPath>), typeof(SyntheticEditor2),
new PropertyMetadata(Enumerable.Empty<IHaveSectionPath>(), OnParameterRowsChanged));
private static void OnParameterRowsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) {
var rows = e.NewValue as IEnumerable<IHaveSectionPath>;
if (rows != null) {
@@ -35,12 +35,12 @@ namespace mbts.spark
new QuoteInsideMarketDistanceWithTravelLimitModel(),
new LeanRatioModel(),
new MaxTicksInsideMarketModel(),
payup.is_ratio_model,
payup.threshold_model,
payup.is_ratio_model,
payless.is_ratio_model,
payless.threshold_model,
payless.ticks_model,
payup.is_ratio_model,
payup.threshold_model,
payup.ticks_model,
new SendHedgeAsMarketOrderModel(),
new PostHedgePriceBasedCrossTicks(),
new PostHedgePriceBasedCrossMarketTicks(),