

 <mf-xml>
	<block ID="12702290820" Active="1" Name="Торговля на лошади, у которой улучшились шансы перед началом скачки" Repeat="0.00" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>12702290820</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<ID>94862362270777441</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>2</MarketStatus>
				<Name>Ставка ЗА</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>0</Action>
					<Persistence>0</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>best</Price>
					<Amount>ba</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>0</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>0</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>0</UserVariable>
					<UseOptions>0</UseOptions>
					<TrailingSL>0</TrailingSL>
					<CancelOptions>
						<OptNoBet>0</OptNoBet>
						<OptPersistence>0</OptPersistence>
						<OptPersistenceValue>0</OptPersistenceValue>
						<OptAmount1>0.01</OptAmount1>
						<OptAmount2>10000000</OptAmount2>
						<OptPrice1>1.01</OptPrice1>
						<OptPrice2>1000</OptPrice2>
					</CancelOptions>
					<TriggerID>0</TriggerID>
				</ActionSet>
				<conditions>
					<tblck AndOr="0" Order="0">
						<blcks/>
						<conds>
							<condition AndOr="1" Body="1" Param="0" CondIndex="2" Value2="" Value1="max_price+pdif_dm" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="13" CondIndex="2" Value2="" Value1="0" TriggerID="0" SecondParam="dm" Overall="0" RereadFile="0" Order="2"/>
							<condition AndOr="1" Body="1" Param="13" CondIndex="11" Value2="" Value1="" TriggerID="0" SecondParam="dm" Overall="0" RereadFile="0" Order="3"/>
							<condition AndOr="1" Body="8" Param="63" CondIndex="4" Value2="" Value1="pbt" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="4"/>
							<condition AndOr="1" Body="8" Param="48" CondIndex="2" Value2="" Value1="sn" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="5"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="6" Value2="md2*209" Value1="md1*207.5" TriggerID="0" SecondParam="market_length" Overall="0" RereadFile="0" Order="6"/>
							<condition AndOr="1" Body="1" Param="0" CondIndex="0" Value2="" Value1="r_ticks(lay_price,-1)" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="7"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12702290820</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<ID>94862362270777442</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>0</MarketStatus>
				<Name>Немедленное уравнивание, тип выигрыша - процент</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>21</Action>
					<Persistence>1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>gup</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>0</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>0</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>0</UserVariable>
					<UseOptions>0</UseOptions>
					<TrailingSL>0</TrailingSL>
					<CancelOptions>
						<OptNoBet>0</OptNoBet>
						<OptPersistence>0</OptPersistence>
						<OptPersistenceValue>0</OptPersistenceValue>
						<OptAmount1>0.01</OptAmount1>
						<OptAmount2>10000000</OptAmount2>
						<OptPrice1>1.01</OptPrice1>
						<OptPrice2>1000</OptPrice2>
					</CancelOptions>
					<TriggerID>0</TriggerID>
				</ActionSet>
				<conditions>
					<tblck AndOr="0" Order="0">
						<blcks/>
						<conds>
							<condition AndOr="1" Body="1" Param="6" CondIndex="3" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="p" TriggerID="0" SecondParam="gu" Overall="0" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12702290820</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<ID>94862362270777464</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>0</MarketStatus>
				<Name>Немедленное уравнивание, тип выигрыша - шаг коэффициента</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>21</Action>
					<Persistence>1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>gut</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>0</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>1</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>0</UserVariable>
					<UseOptions>0</UseOptions>
					<TrailingSL>0</TrailingSL>
					<CancelOptions>
						<OptNoBet>0</OptNoBet>
						<OptPersistence>0</OptPersistence>
						<OptPersistenceValue>0</OptPersistenceValue>
						<OptAmount1>0.01</OptAmount1>
						<OptAmount2>10000000</OptAmount2>
						<OptPrice1>1.01</OptPrice1>
						<OptPrice2>1000</OptPrice2>
					</CancelOptions>
					<TriggerID>0</TriggerID>
				</ActionSet>
				<conditions>
					<tblck AndOr="0" Order="0">
						<blcks/>
						<conds>
							<condition AndOr="1" Body="1" Param="6" CondIndex="3" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="t" TriggerID="0" SecondParam="gu" Overall="0" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<constants>
		<const name="ba" value="2" descr="Размер ставки" saveValue="0"/>
		<const name="max_price" value="4.5" descr="Максимальный коэффициент у лошади" saveValue="0"/>
		<const name="gu" value="p" descr="Тип выигрыша уравниванием   p=процент   t=количество шагов" saveValue="0"/>
		<const name="gup" value="10" descr="Размер процента выигрыша (по отношению к начальной ставке) (при gu = p)" saveValue="0"/>
		<const name="gut" value="2" descr="Количество шагов коэффициента для выигрыша  (при gu = t)" saveValue="0"/>
		<const name="sn" value="12" descr="Максимальное количество лошадей на скачке" saveValue="0"/>
		<const name="pbt" value="3" descr="Количество минут до начала, когда делать ставку" saveValue="0"/>
		<const name="md1" value="7" descr="Минимальная дистанция скачки в фурлонгах: 8=1 миля" saveValue="0"/>
		<const name="md2" value="24" descr="Максимальная дистанция скачки в фурлонгах: 8=1 миля" saveValue="0"/>
		<const name="dm" value="4" descr="Кол-во минут до старта, когда нужно проверить падение коэф." saveValue="0"/>
	</constants>
	<annotation/>
</mf-xml>