

 <mf-xml>
	<block ID="95655363246265488" Active="1" Name="Вычисление длины забега на основе статистики" Repeat="0.0" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>95655363246265488</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<ID>95655363246265489</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;3m6f&quot;, &quot;market_name&quot;) &gt; 0, 480, IF(FIND(&quot;3m5f&quot;, &quot;market_name&quot;) &gt; 0, 452, IF(FIND(&quot;3m4f&quot;, &quot;market_name&quot;) &gt; 0, 445, IF(FIND(&quot;3m3f&quot;, &quot;market_name&quot;) &gt; 0, 425, IF(FIND(&quot;3m2f&quot;, &quot;market_name&quot;) &gt; 0, 409, IF(FIND(&quot;3m1f&quot;, &quot;market_name&quot;) &gt; 0, 398, IF(FIND(&quot;2m7f&quot;, &quot;market_name&quot;) &gt; 0, 363, IF(FIND(&quot;2m6f&quot;, &quot;market_name&quot;) &gt; 0, 341, IF(FIND(&quot;2m5f&quot;, &quot;market_name&quot;) &gt; 0, 328, IF(FIND(&quot;2m4f&quot;, &quot;market_name&quot;) &gt; 0, 311, IF(FIND(&quot;2m3f&quot;, &quot;market_name&quot;) &gt; 0, 297, IF(FIND(&quot;2m2f&quot;, &quot;market_name&quot;) &gt; 0, 275, IF(FIND(&quot;2m1f&quot;, &quot;market_name&quot;) &gt; 0, 256, IF(FIND(&quot;1m7f&quot;, &quot;market_name&quot;) &gt; 0, 236, IF(FIND(&quot;1m6f&quot;, &quot;market_name&quot;) &gt; 0, 187, IF(FIND(&quot;1m5f&quot;, &quot;market_name&quot;) &gt; 0, 176, IF(FIND(&quot;1m4f&quot;, &quot;market_name&quot;) &gt; 0, 158, IF(FIND(&quot;1m3f&quot;, &quot;market_name&quot;) &gt; 0, 146, IF(FIND(&quot;1m2f&quot;, &quot;market_name&quot;) &gt; 0, 130, IF(FIND(&quot;1m1f&quot;, &quot;market_name&quot;)&gt; 0, 112, IF(FIND(&quot;8f&quot;, &quot;market_name&quot;) &gt; 0, 92, IF(FIND(&quot;7f&quot;, &quot;market_name&quot;) &gt; 0, 86, IF(FIND(&quot;6f&quot;, &quot;market_name&quot;) &gt; 0, 74, IF(FIND(&quot;5f&quot;, &quot;market_name&quot;) &gt; 0, 61, IF(FIND(&quot;4m&quot;, &quot;market_name&quot;) &gt; 0, 536, IF(FIND(&quot;4f&quot;, &quot;market_name&quot;) &gt; 0, 61, IF(FIND(&quot;3m&quot;, &quot;market_name&quot;) &gt;0, 378, IF(FIND(&quot;2m&quot;, &quot;market_name&quot;) &gt; 0, 239, IF(FIND(&quot;2f&quot;, &quot;market_name&quot;) &gt; 0, 22, IF(FIND(&quot;1m&quot;, &quot;market_name&quot;) &gt; 0, 103, IF(FIND(&quot;1f&quot;, &quot;market_name&quot;) &gt; 0, 18, 0)))))))))))))))))))))))))))))))</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>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/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>95655363246265488</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<ID>95655363246265502</ID>
				<SelectionType>11</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>1</MarketStatus>
				<Name>Ставим ПРОТИВ</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>1</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>best</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>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="8" Param="64" CondIndex="5" Value2="" Value1="(raceTime-seconds_to_end)/60" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<constants>
		<const name="seconds_to_end" value="20" descr="За какое количество секунд до забега нужно действовать" saveValue="0"/>
		<const name="bet_size" value="4" descr="Размер ставки" saveValue="0"/>
	</constants>
	<annotation/>
</mf-xml>