

 <mf-xml>
	<block ID="12546605720" Active="1" Name="Система Multi-Link Doubles для ставок ЗА" Repeat="0.00" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>12546605720</BlockID>
				<Active>5</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94994445504260233</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>инициализация счетчика add_up</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>-1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>add_up</Price>
					<Amount>0</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>1</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>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>sba</Price>
					<Amount>IF(test_mode=1, test_funds, total_funds)-ba</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>
					<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/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12546605720</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94994445504260236</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>увеличение счетчика</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>-1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>counter</Price>
					<Amount>IF(OR(counter&gt;=cycle, AND(counter=cycle-1, add_up &lt; 0.01)), 1, counter + 1)</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>0</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>0</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>1</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="0" Body="20" Param="53" CondIndex="18" Value2="" Value1="" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="0" Body="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94994445504260236" SecondParam="" Overall="1" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12546605720</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94994445504260237</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>устанавливаем стартовый банк</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>-1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>starting_bank</Price>
					<Amount>IF(test_mode=1, test_funds, total_funds)-sba</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>1</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="0" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="counter" Overall="0" RereadFile="0" Order="1"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12546605720</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94994445504260238</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>увеличиваем add_up</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>-1</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>add_up</Price>
					<Amount>IF(counter=1, 0, add_up + ((cycle-counter+1)*starting_bank*(hist_1_backp-1)*(1-commission)/100)/(cycle-counter+1))</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>0</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>0</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>1</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>
							<tblck AndOr="0" Order="1">
								<blcks>
									<tblck AndOr="1" Order="2">
										<blcks/>
										<conds>
											<condition AndOr="0" Body="20" Param="53" CondIndex="18" Value2="" Value1="" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
											<condition AndOr="0" Body="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94994445504260238" SecondParam="" Overall="1" RereadFile="0" Order="2"/>
										</conds>
									</tblck>
								</blcks>
								<conds>
									<condition AndOr="1" Body="24" Param="62" CondIndex="3" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
								</conds>
							</tblck>
							<tblck AndOr="0" Order="2">
								<blcks/>
								<conds>
									<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="1" TriggerID="0" SecondParam="counter" Overall="0" RereadFile="0" Order="1"/>
								</conds>
							</tblck>
						</blcks>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12546605720</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94994445504260239</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>ставим ЗА на выбранную лошадь</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>0</Action>
					<Persistence>0</Persistence>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>back_price</Price>
					<Amount>(cycle-counter)*starting_bank/100 + add_up</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>
							<tblck AndOr="1" Order="2">
								<blcks/>
								<conds>
									<condition AndOr="0" Body="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94994445504260239" SecondParam="" Overall="1" RereadFile="0" Order="1"/>
									<condition AndOr="0" Body="20" Param="53" CondIndex="18" Value2="" Value1="" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="1" Param="0" CondIndex="6" Value2="max_price" Value1="1.01" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="8" Param="63" CondIndex="4" Value2="" Value1="mins_before_off" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<constants>
		<const name="ba" value="100" descr="стартовый размер банка" saveValue="0"/>
		<const name="cycle" value="6" descr="длина цикла" saveValue="0"/>
		<const name="counter" value="0" descr="счетчик шагов в цикле" saveValue="0"/>
		<const name="max_price" value="3.0" descr="максимальный коэффициент ЗА у лошади" saveValue="0"/>
		<const name="mins_before_off" value="Initial value" descr="время до начала скачки, когда делать ставку, в минутах" saveValue="0"/>
	</constants>
	<annotation/>
</mf-xml>