

 <?mf-xml version="1.0"?>
	<block ID="12713442130" Active="1" Name="Laying by Kelly staking plan" Repeat="0.00" RepeatTimes="0" Protected="0">
		<Triggers>
			<trigger>
				<BlockID>12713442130</BlockID>
				<Action>32</Action>
				<Active>5</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>10</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>divisor</Price>
				<Amount>10</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>setting divisor</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>1</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12713442130</BlockID>
				<Action>32</Action>
				<Active>5</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>10</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>avg_odds</Price>
				<Amount>3.75</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>setting average odds</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>1</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12713442130</BlockID>
				<Action>32</Action>
				<Active>5</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>10</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>s_rate</Price>
				<Amount>85</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>setting strike rate</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>1</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12713442130</BlockID>
				<Action>32</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>12</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>base</Price>
				<Amount>IF(test_mode=1, test_funds, total_funds)</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>setting the base for the bet</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>0</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12713442130</BlockID>
				<Action>32</Action>
				<Active>0</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>10</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>mkt_num</Price>
				<Amount>IF(hist_1_layp&gt;1.0, 1, 0) + IF(hist_2_layp&gt;1.0, 1, 0) + IF(hist_3_layp&gt;1.0, 1, 0) + IF(hist_4_layp&gt;1.0, 1, 0) + IF(hist_5_layp&gt;1.0, 1, 0) + IF(hist_6_layp&gt;1.0, 1, 0) + IF(hist_7_layp&gt;1.0, 1, 0) + IF(hist_8_layp&gt;1.0, 1, 0) + IF(hist_9_layp&gt;1.0, 1, 0) + IF(hist_10_layp&gt;1.0, 1, 0)</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>optional setting history depth</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>0</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12713442130</BlockID>
				<Action>32</Action>
				<Active>0</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>12</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>avg_odds</Price>
				<Amount>(IF(hist_1_layp&gt;1.0, hist_1_layp, 0) + IF(hist_2_layp&gt;1.0, hist_2_layp, 0) + IF(hist_3_layp&gt;1.0, hist_3_layp, 0) + IF(hist_4_layp&gt;1.0, hist_4_layp, 0) + IF(hist_5_layp&gt;1.0, hist_5_layp, 0) + IF(hist_6_layp&gt;1.0, hist_6_layp, 0) + IF(hist_7_layp&gt;1.0, hist_7_layp, 0) + IF(hist_8_layp&gt;1.0, hist_8_layp, 0) + IF(hist_9_layp&gt;1.0, hist_9_layp, 0) + IF(hist_10_layp&gt;1.0, hist_10_layp, 0))/mkt_num</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>optional setting avg odds</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>0</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds>
							<condition AndOr="0" Body="7" Param="-1" Condo="3" Value2="" Value1="0" TriggerName="" Time="0.0000" Formula="mkt_num" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12713442130</BlockID>
				<Action>32</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>10</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>expectation</Price>
				<Amount>(s_rate/100)*(1-commission) - (1 - s_rate/100)*(avg_odds-1)</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>calculating probability of win</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>0</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12713442130</BlockID>
				<Action>1</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>10</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>0</Persistence>
				<Price>lay_price</Price>
				<Amount>(((expectation * (lay_price - 1))/divisor)*base)/(lay_price-1)</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>laying on second favourite</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName/>
				<AdjustAmounts>0</AdjustAmounts>
				<WinLose>0</WinLose>
				<UseOptions>0</UseOptions>
				<OptNoBet>0</OptNoBet>
				<OptPersistence>0</OptPersistence>
				<OptPersistenceValue>0</OptPersistenceValue>
				<OptAmount1>0.01</OptAmount1>
				<OptAmount2>10000000</OptAmount2>
				<OptPrice1>1.01</OptPrice1>
				<OptPrice2>1000</OptPrice2>
				<Repeat>0.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
 