

 <mf-xml>
	<block ID="95827952955885453" Active="1" Name="initialising variables" Repeat="0.0" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>95827952955885453</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>95827985909094539</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</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>last_gm</Price>
					<Amount>-1</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>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>last_srv</Price>
					<Amount>-1</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>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>current_bet</Price>
					<Amount>bet_size</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/>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<block ID="95827952955885447" Active="2" Name="Ставка на подающего в теннисе и уравнивание прибыли" Repeat="5" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>95827952955885447</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>95827952955885461</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>закрыть блок и повторить</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>18</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>lay_price</Price>
					<Amount>default_laya</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>95827952955885447</TriggerID>
				</ActionSet>
				<ActionSet>
					<Action>11</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>1</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>
							<tblck AndOr="1" Order="2">
								<blcks/>
								<conds>
									<condition AndOr="0" Body="6" Param="70" CondIndex="3" Value2="" Value1="0" TriggerID="95827952955885451" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
									<condition AndOr="0" Body="6" Param="70" CondIndex="3" Value2="" Value1="0" TriggerID="95827952955885450" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
									<condition AndOr="0" Body="6" Param="70" CondIndex="3" Value2="" Value1="0" TriggerID="95827985909094573" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
								</conds>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="6" Param="70" CondIndex="3" Value2="" Value1="0" TriggerID="95827952955885449" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>95827952955885447</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>95827952955885449</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>current_bet</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>last_gm</Price>
					<Amount>tennis_current_game</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>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>last_srv</Price>
					<Amount>tennis_current_server</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>
				<ActionSet>
					<Action>48</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>Ставим ЗА на &sqo;&quot;sel_name&quot;&sqc;, текущий гейм: &sqo;tennis_current_game&sqc;</Price>
					<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>
							<tblck AndOr="1" Order="2">
								<blcks>
									<tblck AndOr="0" Order="1">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="-1" TriggerID="0" SecondParam="last_gm" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="15" TriggerID="0" SecondParam="tennis_player1_points_won + tennis_player2_points_won" Overall="0" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
									<tblck AndOr="0" Order="2">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="5" Value2="" Value1="0" TriggerID="0" SecondParam="last_gm" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="6" Value2="15" Value1="0" TriggerID="0" SecondParam="tennis_player1_points_won + tennis_player2_points_won" Overall="0" RereadFile="0" Order="2"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="1" Value2="" Value1="last_srv" TriggerID="0" SecondParam="tennis_current_server" Overall="0" RereadFile="0" Order="3"/>
										</conds>
									</tblck>
								</blcks>
								<conds/>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="sel_index" TriggerID="0" SecondParam="tennis_current_server" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="0" CondIndex="6" Value2="max_price" Value1="min_price" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
							<condition AndOr="1" Body="8" Param="49" CondIndex="5" Value2="" Value1="min_vlm" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="4"/>
							<condition AndOr="1" Body="1" Param="0" CondIndex="5" Value2="" Value1="r_ticks(lay_price, -max_gap)" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="5"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>95827952955885447</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>95827952955885451</ID>
				<SelectionType>6</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</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>current_bet</Price>
					<Amount>current_bet*multiplier</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>
							<tblck AndOr="1" Order="2">
								<blcks>
									<tblck AndOr="0" Order="1">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="3" Value2="" Value1="1" TriggerID="0" SecondParam="last_gm" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
								</blcks>
								<conds>
									<condition AndOr="0" Body="1" Param="61" CondIndex="3" Value2="" Value1="last_gm" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
							<tblck AndOr="1" Order="3">
								<blcks>
									<tblck AndOr="0" Order="1">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="tennis_player_sets_won" TriggerID="0" SecondParam="tennis_p_player_sets_won" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="3" Value2="" Value1="tennis_p_player1_sets_won + tennis_p_player2_sets_won" TriggerID="0" SecondParam="tennis_player1_sets_won + tennis_player2_sets_won" Overall="0" RereadFile="0" Order="3"/>
										</conds>
									</tblck>
								</blcks>
								<conds>
									<condition AndOr="0" Body="1" Param="61" CondIndex="0" Value2="" Value1="tennis_player_games_won" TriggerID="0" SecondParam="tennis_p_player_games_won" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="6" Param="71" CondIndex="3" Value2="" Value1="0" TriggerID="95827952955885449" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>95827952955885447</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>95827952955885450</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>1</MarketStatus>
				<Name>уравнивание прибыли в новом гейме</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>11</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>lay_price</Price>
					<Amount>1</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>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>current_bet</Price>
					<Amount>bet_size</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>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>new_gm_time</Price>
					<Amount>now_time</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>
				<ActionSet>
					<Action>48</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>Уравниваем прибыль на &sqo;&quot;sel_name&quot;&sqc;, текущий гейм: &sqo;tennis_current_game&sqc;</Price>
					<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>
							<tblck AndOr="1" Order="2">
								<blcks>
									<tblck AndOr="0" Order="1">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="3" Value2="" Value1="1" TriggerID="0" SecondParam="last_gm" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
									<tblck AndOr="0" Order="3">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="6" TriggerID="0" SecondParam="tennis_player1_games_won" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="6" TriggerID="0" SecondParam="tennis_player2_games_won" Overall="0" RereadFile="0" Order="2"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="1" Value2="" Value1="last_srv" TriggerID="0" SecondParam="tennis_current_server" Overall="0" RereadFile="0" Order="3"/>
										</conds>
									</tblck>
								</blcks>
								<conds>
									<condition AndOr="0" Body="1" Param="61" CondIndex="3" Value2="" Value1="last_gm" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
							<tblck AndOr="1" Order="4">
								<blcks>
									<tblck AndOr="0" Order="1">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="2" Value2="" Value1="tennis_player_sets_won" TriggerID="0" SecondParam="tennis_p_player_sets_won" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
									<tblck AndOr="0" Order="3">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="2" Value2="" Value1="tennis_player_points_won" TriggerID="0" SecondParam="tennis_p_player_points_won" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="12" TriggerID="0" SecondParam="tennis_player1_games_won + tennis_player2_games_won" Overall="0" RereadFile="0" Order="2"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="0" TriggerID="0" SecondParam="tennis_player1_games_won - tennis_player2_games_won" Overall="0" RereadFile="0" Order="3"/>
										</conds>
									</tblck>
								</blcks>
								<conds>
									<condition AndOr="0" Body="1" Param="61" CondIndex="2" Value2="" Value1="tennis_player_games_won" TriggerID="0" SecondParam="tennis_p_player_games_won" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="6" Param="71" CondIndex="3" Value2="" Value1="0" TriggerID="95827952955885449" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="6" Param="71" CondIndex="0" Value2="" Value1="0" TriggerID="95827985909094573" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>95827952955885447</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>95827985909094573</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>1</MarketStatus>
				<Name>уравнивание убытка, если не удалось уравнять прибыль</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>13</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>lay_price</Price>
					<Amount>-1</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>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>current_bet</Price>
					<Amount>bet_size</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>
				<ActionSet>
					<Action>48</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>Уравниваем убыток на &sqo;&quot;sel_name&quot;&sqc;, текущий гейм: &sqo;tennis_current_game&sqc;</Price>
					<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>
							<tblck AndOr="1" Order="2">
								<blcks>
									<tblck AndOr="0" Order="1">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="3" Value2="" Value1="1" TriggerID="0" SecondParam="last_gm" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
									<tblck AndOr="0" Order="3">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="6" TriggerID="0" SecondParam="tennis_player1_games_won" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="6" TriggerID="0" SecondParam="tennis_player2_games_won" Overall="0" RereadFile="0" Order="2"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="1" Value2="" Value1="last_srv" TriggerID="0" SecondParam="tennis_current_server" Overall="0" RereadFile="0" Order="3"/>
										</conds>
									</tblck>
								</blcks>
								<conds>
									<condition AndOr="0" Body="1" Param="61" CondIndex="3" Value2="" Value1="last_gm" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
							<tblck AndOr="1" Order="4">
								<blcks>
									<tblck AndOr="0" Order="1">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="2" Value2="" Value1="tennis_player_sets_won" TriggerID="0" SecondParam="tennis_p_player_sets_won" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="tennis_current_game" Overall="0" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
									<tblck AndOr="0" Order="3">
										<blcks/>
										<conds>
											<condition AndOr="1" Body="1" Param="61" CondIndex="2" Value2="" Value1="tennis_player_points_won" TriggerID="0" SecondParam="tennis_p_player_points_won" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="12" TriggerID="0" SecondParam="tennis_player1_games_won + tennis_player2_games_won" Overall="0" RereadFile="0" Order="2"/>
											<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="0" TriggerID="0" SecondParam="tennis_player1_games_won - tennis_player2_games_won" Overall="0" RereadFile="0" Order="3"/>
										</conds>
									</tblck>
								</blcks>
								<conds>
									<condition AndOr="0" Body="1" Param="61" CondIndex="2" Value2="" Value1="tennis_player_games_won" TriggerID="0" SecondParam="tennis_p_player_games_won" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="6" Param="71" CondIndex="3" Value2="" Value1="0" TriggerID="95827952955885449" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="6" Param="71" CondIndex="0" Value2="" Value1="0" TriggerID="95827952955885450" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="3" Value2="" Value1="10" TriggerID="0" SecondParam="(now_time-new_gm_time)/mf_second" Overall="0" RereadFile="0" Order="5"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<constants>
		<const name="bet_size" value="5" descr="Размер начальной ставки ЗА" saveValue="0"/>
		<const name="multiplier" value="2.0" descr="Множитель ставки после проигрыша игроком своей подачи" saveValue="0"/>
		<const name="min_price" value="1.1" descr="Минимальный коэффициент ставки ЗА" saveValue="0"/>
		<const name="max_price" value="20.0" descr="Максимальный коэффициент ставки ЗА" saveValue="0"/>
		<const name="min_vlm" value="1000" descr="Минимальный объем денег в паре на рынке" saveValue="0"/>
		<const name="max_gap" value="3" descr="Максимальный разыв (в тиках) между коэффициентами ЗА и ПРОТИВ" saveValue="0"/>
	</constants>
	<annotation/>
</mf-xml>