

 <mf-xml>
	<block ID="96113539396365752" Active="1" Name="Ставки на возможных победителей скачки (в рынках Place)" Repeat="0.0" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>96113539396365752</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>2</Market>
				<ID>96113539396365753</ID>
				<SelectionType>6</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>0</MarketStatus>
				<Name>вычисляем приблизительную длительность скачки</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>raceTime</Price>
					<Amount>IF(FIND(&quot;2m4f&quot;, &quot;market_name&quot;) &gt; 0, 324, IF(FIND(&quot;3m1f&quot;, &quot;market_name&quot;) &gt; 0, 381, IF(FIND(&quot;2m1f&quot;, &quot;market_name&quot;) &gt; 0, 258, IF(FIND(&quot;2m3f&quot;, &quot;market_name&quot;) &gt; 0, 282, IF(FIND(&quot;2m6f&quot;, &quot;market_name&quot;) &gt; 0, 355, IF(FIND(&quot;2m2f&quot;, &quot;market_name&quot;) &gt; 0, 263, IF(FIND(&quot;1m6f&quot;, &quot;market_name&quot;) &gt; 0, 212, IF(FIND(&quot;1m3f&quot;, &quot;market_name&quot;) &gt; 0, 135, IF(FIND(&quot;2m5f&quot;, &quot;market_name&quot;) &gt; 0, 326, IF(FIND(&quot;2m7f&quot;, &quot;market_name&quot;) &gt; 0, 354, IF(FIND(&quot;1m4f&quot;, &quot;market_name&quot;) &gt; 0, 151, IF(FIND(&quot;1m2f&quot;, &quot;market_name&quot;) &gt; 0, 125, IF(FIND(&quot;1m5f&quot;, &quot;market_name&quot;) &gt; 0, 189, IF(FIND(&quot;1m1f&quot;, &quot;market_name&quot;) &gt; 0, 102, IF(FIND(&quot;3m3f&quot;, &quot;market_name&quot;) &gt; 0, 419, IF(FIND(&quot;3m7f&quot;, &quot;market_name&quot;) &gt; 0, 389, IF(FIND(&quot;3m4f&quot;, &quot;market_name&quot;) &gt; 0, 467, IF(FIND(&quot;3m2f&quot;, &quot;market_name&quot;) &gt; 0, 393, IF(FIND(&quot;3m5f&quot;, &quot;market_name&quot;) &gt; 0, 476, IF(FIND(&quot;3m6f&quot;, &quot;market_name&quot;) &gt; 0, 450, IF(FIND(&quot;4m1f&quot;, &quot;market_name&quot;) &gt; 0, 523, IF(FIND(&quot;4m3f&quot;, &quot;market_name&quot;) &gt; 0, 520, IF(FIND(&quot;1m7f&quot;, &quot;market_name&quot;) &gt; 0, 228, IF(FIND(&quot;1m4f&quot;, &quot;market_name&quot;) &gt; 0, 133, IF(FIND(&quot;4m2f&quot;, &quot;market_name&quot;) &gt; 0, 546, IF(FIND(&quot;5f&quot;, &quot;market_name&quot;) &gt; 0, 55, IF(FIND(&quot;6f&quot;, &quot;market_name&quot;) &gt; 0, 61, IF(FIND(&quot;7f&quot;, &quot;market_name&quot;) &gt; 0, 79, IF(FIND(&quot;4m&quot;, &quot;market_name&quot;) &gt; 0, 497, IF(FIND(&quot;3m&quot;, &quot;market_name&quot;) &gt; 0, 360, IF(FIND(&quot;2m&quot;, &quot;market_name&quot;) &gt; 0, 228, IF(FIND(&quot;1m&quot;, &quot;market_name&quot;) &gt; 0, 91, 0))))))))))))))))))))))))))))))))</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>0</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>1</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>3</UserVariable>
					<UseOptions>0</UseOptions>
					<TrailingSL>0</TrailingSL>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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="1" Order="0">
						<blcks/>
						<conds>
							<condition AndOr="1" Body="1" Param="61" CondIndex="5" Value2="" Value1="min_distance" TriggerID="0" SecondParam="market_length" Overall="0" RereadFile="0" Order="1"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>96113539396365752</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<ID>96113539396365754</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>1</MarketStatus>
				<Name>ставка ЗА на фаворита по прошествии 70% времени</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>0</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>back_price</Price>
					<Amount>bet_size</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>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>pyt</Price>
					<Amount>bet_size*back_price</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>0</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>1</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>1</UserVariable>
					<UseOptions>0</UseOptions>
					<TrailingSL>0</TrailingSL>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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="1" Order="0">
						<blcks/>
						<conds>
							<condition AndOr="1" Body="6" Param="84" CondIndex="3" Value2="" Value1="0" TriggerID="96113539396365753" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="8" Param="64" CondIndex="5" Value2="" Value1="raceTime*bet_time/6000" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
							<condition AndOr="1" Body="8" Param="52" CondIndex="6" Value2="max_places" Value1="2" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>96113539396365752</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<ID>96113539396365755</ID>
				<SelectionType>6</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>1</MarketStatus>
				<Name>ставка ЗА на любую другую лошадь, обогнавшую фаворита</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>0</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>back_price</Price>
					<Amount>bet_size</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>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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="1" Order="0">
						<blcks/>
						<conds>
							<condition AndOr="1" Body="6" Param="70" CondIndex="3" Value2="" Value1="0" TriggerID="96113539396365754" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="6" Param="71" CondIndex="0" Value2="" Value1="0" TriggerID="96113539396365754" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
							<condition AndOr="1" Body="1" Param="28" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<constants>
		<const name="max_places" value="4" descr="Максимальное количество мест в скачке" saveValue="0"/>
		<const name="bet_size" value="4" descr="Размер ставки" saveValue="0"/>
		<const name="bet_time" value="70" descr="Когда ставить (в процентах от приблизительной длительности)" saveValue="0"/>
		<const name="min_distance" value="1000" descr="Минимальная дистанция скачки (в метрах)" saveValue="0"/>
	</constants>
	<annotation/>
</mf-xml>