

 <mf-xml>
	<block ID="11986966390" Active="1" Name="Уравнивание прибыли на Ничьей" Repeat="0.00" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>11986966390</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>6</Market>
				<ID>95002108836592041</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>1</Action>
					<Persistence>0</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>lay_price</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>100000</OptAmount2>
						<OptPrice1>1.01</OptPrice1>
						<OptPrice2>1000</OptPrice2>
					</CancelOptions>
					<TriggerID>0</TriggerID>
				</ActionSet>
				<conditions>
					<tblck AndOr="0" Order="0">
						<blcks>
							<tblck AndOr="1" Order="9">
								<blcks>
									<tblck AndOr="0" Order="1">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="6" Value2="max_fav_price" Value1="min_fav_price" TriggerID="0" SecondParam="s_1_back_price" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="s_1_sel_order" Overall="0" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
									<tblck AndOr="0" Order="2">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="6" Value2="max_fav_price" Value1="min_fav_price" TriggerID="0" SecondParam="s_2_back_price" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="s_2_sel_order" Overall="0" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
								</blcks>
								<conds/>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="1" Param="1" CondIndex="6" Value2="mlp" Value1="1.01" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="37" CondIndex="0" Value2="" Value1="draw_index" TriggerID="0" SecondParam="FIND(&quot;Draw&quot;, &quot;sel_name&quot;)" Overall="0" RereadFile="0" Order="2"/>
							<condition AndOr="1" Body="8" Param="49" CondIndex="5" Value2="" Value1="mv" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
							<condition AndOr="1" Body="8" Param="63" CondIndex="4" Value2="" Value1="tlb" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="4"/>
							<condition AndOr="1" Body="1" Param="0" CondIndex="5" Value2="" Value1="r_ticks(lay_price,-mtd)" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="5"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="market_turn_inplay" Overall="0" RereadFile="0" Order="6"/>
							<condition AndOr="1" Body="1" Param="7" CondIndex="0" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="7"/>
							<condition AndOr="1" Body="1" Param="9" CondIndex="0" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="8"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>11986966390</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>6</Market>
				<ID>95002108836592042</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>1</MarketStatus>
				<Name>уравнивание прибыли</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>11</Action>
					<Persistence>0</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>gpp</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>100000</OptAmount2>
						<OptPrice1>1.01</OptPrice1>
						<OptPrice2>1000</OptPrice2>
					</CancelOptions>
					<TriggerID>0</TriggerID>
				</ActionSet>
				<conditions>
					<tblck AndOr="0" Order="0">
						<blcks/>
						<conds>
							<condition AndOr="0" Body="1" Param="7" CondIndex="3" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>11986966390</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>6</Market>
				<ID>95002108836592043</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>1</MarketStatus>
				<Name>уравнивание убытка</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>13</Action>
					<Persistence>0</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>dpp</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>100000</OptAmount2>
						<OptPrice1>1.01</OptPrice1>
						<OptPrice2>1000</OptPrice2>
					</CancelOptions>
					<TriggerID>0</TriggerID>
				</ActionSet>
				<conditions>
					<tblck AndOr="0" Order="0">
						<blcks>
							<tblck AndOr="1" Order="3">
								<blcks/>
								<conds>
									<condition AndOr="0" Body="1" Param="0" CondIndex="2" Value2="" Value1="dlb" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
									<condition AndOr="0" Body="8" Param="64" CondIndex="3" Value2="" Value1="dlt" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="1" Param="7" CondIndex="3" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="95002108836592042" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<constants>
		<const name="ba" value="2" descr="Размер первой ставки" saveValue="0"/>
		<const name="mlp" value="10" descr="Макс. коэф. ПРОТИВ у Ничьей" saveValue="0"/>
		<const name="mtd" value="5" descr="Максимальная разница в коэф-тах ЗА и ПРОТИВ, в шагах" saveValue="0"/>
		<const name="dpp" value="1" descr="Мин. процент для уравнивания убытка" saveValue="0"/>
		<const name="dlb" value="1.20" descr="Коэффициент, по достижении которого сработает уравнивание убытка" saveValue="0"/>
		<const name="dlt" value="100" descr="Распределить убыток не позднее этой минуты матча (добавить 15 для второго тайма)" saveValue="0"/>
		<const name="gpp" value="1" descr="Мин. процент прибыли для уравнивания прибыли" saveValue="0"/>
		<const name="tlb" value="0.5" descr="Время до начала матча, в минутах, когда делать первую ставку" saveValue="0"/>
		<const name="mv" value="1000" descr="Минимальный объем денег на рынке" saveValue="0"/>
		<const name="draw_index" value="3" descr="Порядковый номер Ничьей в рынке Ставки" saveValue="0"/>
		<const name="min_fav_price" value="1.05" descr="Мин. коэф. команды-фаворита" saveValue="0"/>
		<const name="max_fav_price" value="3.0" descr="Макс. коэф. команды-фаворита" saveValue="0"/>
	</constants>
	<annotation/>
</mf-xml>