

 <?mf-xml version="1.0"?>
	<block ID="12514554240" Active="1" Name="Датчинг с учетом максимального риска" Repeat="0.00" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>12514554240</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94572827088408587</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>Ставки, am_to_lose</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>0</Action>
					<Persistence>1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>lay_price</Price>
					<Amount>(am_to_lose/(match_l_book/100.0))/lay_price</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="1" CondIndex="2" Value2="" Value1="max_price" TriggerID="0" SecondParam="" Overall="0" Order="1"/>
							<condition AndOr="1" Body="8" Param="51" CondIndex="6" Value2="max_book" Value1="min_book" TriggerID="0" SecondParam="" Overall="0" Order="2"/>
							<condition AndOr="1" Body="19" Param="6" CondIndex="0" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" Order="3"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<block ID="94572827088408602" Active="1" Name="Датчинг с целью выиграть фиксированную сумму" Repeat="0.0" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>94572827088408602</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94572827088408589</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>Ставки, am_to_win</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>0</Action>
					<Persistence>1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>lay_price</Price>
					<Amount>(am_to_win/((1-commission)*(1.0 - match_l_book/100.0)))/lay_price</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="1" CondIndex="2" Value2="" Value1="max_price" TriggerID="0" SecondParam="" Overall="0" Order="1"/>
							<condition AndOr="1" Body="8" Param="51" CondIndex="6" Value2="max_book" Value1="min_book" TriggerID="0" SecondParam="" Overall="0" Order="2"/>
							<condition AndOr="1" Body="19" Param="6" CondIndex="0" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" Order="3"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<block ID="94572827088408603" Active="1" Name="Стоп-Лосс (по желанию)" Repeat="0.0" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>94572827088408603</BlockID>
				<Active>2</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94572827088408588</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>1</MarketStatus>
				<Name>Сделать непарные ставки парными через 30 сек после начала</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>9</Action>
					<Persistence>-1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<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="8" CondIndex="3" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="0" CondIndex="2" Value2="" Value1="r_ticks(bu_backp, -sl_ticks)" TriggerID="0" SecondParam="" Overall="0" Order="2"/>
							<condition AndOr="1" Body="8" Param="64" CondIndex="3" Value2="" Value1="0.5" TriggerID="0" SecondParam="" Overall="0" Order="3"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<constants>
		<const name="am_to_win" value="2" descr="Желаемый размер выигрыша" saveValue="0"/>
		<const name="am_to_lose" value="30" descr="Максимальный размер риска" saveValue="0"/>
		<const name="min_book" value="95" descr="Минимальный процент пари" saveValue="0"/>
		<const name="max_book" value="100" descr="Максимальный процент пари" saveValue="0"/>
		<const name="sl_ticks" value="5" descr="Количество шагов коэффициента для Стоп-Лосса" saveValue="0"/>
		<const name="max_price" value="500" descr="Максимальный коэффициент исхода" saveValue="0"/>
	</constants>
	<annotation/>
 