

 <?mf-xml version="1.0"?>
	<block ID="12663279490" Active="1" Name="Race distance" Repeat="0.00" RepeatTimes="0" Protected="0">
		<Triggers>
			<trigger>
				<BlockID>12663279490</BlockID>
				<Action>32</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>RaceDistance</Price>
				<Amount>0</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Init race distance</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>12663279490</BlockID>
				<Action>32</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>RaceDistance</Price>
				<Amount>IF(FIND("700m","market_name")&gt;0, 700, IF(FIND("800m","market_name")&gt;0, 800, IF(FIND("900m","market_name")&gt;0, 900, IF(FIND("1000m","market_name")&gt;0, 1000, IF(FIND("1100m","market_name")&gt;0, 1100, IF(FIND("1200m","market_name")&gt;0, 1200, IF(FIND("1300m","market_name")&gt;0, 1300, IF(FIND("1400m","market_name")&gt;0, 1400, IF(FIND("1500m","market_name")&gt;0, 1500, IF(FIND("1600m","market_name")&gt;0, 1600, IF(FIND("1700m","market_name")&gt;0, 1700, IF(FIND("1800m","market_name")&gt;0, 1800, IF(FIND("1900m","market_name")&gt;0, 1900, IF(FIND("2000m","market_name")&gt;0, 2000, IF(FIND("2100m","market_name")&gt;0, 2100, IF(FIND("2200m","market_name")&gt;0, 2200, IF(FIND("2300m","market_name")&gt;0, 2300, IF(FIND("2400m","market_name")&gt;0, 2400, IF(FIND("2500m","market_name")&gt;0, 2500, IF(FIND("2600m","market_name")&gt;0, 2600, IF(FIND("2700m","market_name")&gt;0, 2700, IF(FIND("2800m","market_name")&gt;0, 2800, IF(FIND("2900m","market_name")&gt;0, 2900, IF(FIND("3000m","market_name")&gt;0, 3000, 0))))))))))))))))))))))))</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Set AUS, NZL race distance</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>
							<tblck AndOr="1">
								<blcks/>
								<conds>
									<condition AndOr="0" Body="8" Param="0" Condo="2" Value2="" Value1="&quot;(AUS)&quot;" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
									<condition AndOr="0" Body="8" Param="0" Condo="2" Value2="" Value1="&quot;(NZL)&quot;" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
								</conds>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="8" Param="0" Condo="3" Value2="" Value1="&quot;(Place)&quot;" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="8" Param="0" Condo="3" Value2="" Value1="&quot;(AvB)&quot;" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12663279490</BlockID>
				<Action>32</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>RaceDistance</Price>
				<Amount>201.168*(8*IF(FIND("1m","market_name")&gt;0, 1, IF(FIND("2m","market_name")&gt;0, 2, IF(FIND("3m","market_name")&gt;0, 3, IF(FIND("4m","market_name")&gt;0, 4, IF(FIND("5m","market_name")&gt;0, 5, IF(FIND("6m","market_name")&gt;0, 6, IF(FIND("7m","market_name")&gt;0, 7, IF(FIND("8m","market_name")&gt;0, 8, IF(FIND("9m","market_name")&gt;0, 9, 0)))))))))+IF(FIND("1f","market_name")&gt;0, 1, IF(FIND("2f","market_name")&gt;0, 2, IF(FIND("3f","market_name")&gt;0, 3, IF(FIND("4f","market_name")&gt;0, 4, IF(FIND("5f","market_name")&gt;0, 5, IF(FIND("6f","market_name")&gt;0, 6, IF(FIND("7f","market_name")&gt;0, 7, IF(FIND("8f","market_name")&gt;0, 8, 0)))))))))</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Set UK, IRA, US race distance</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="1" Body="8" Param="0" Condo="3" Value2="" Value1="&quot;(AUS)&quot;" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="8" Param="0" Condo="3" Value2="" Value1="&quot;(NZL)&quot;" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="8" Param="0" Condo="3" Value2="" Value1="&quot;(Place)&quot;" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="8" Param="0" Condo="3" Value2="" Value1="&quot;(AvB)&quot;" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12663279490</BlockID>
				<Action>32</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>RaceTime</Price>
				<Amount>RaceDistance/(18.345*2.718282^(-0.00007*RaceDistance))</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Set Race Time</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>1.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds>
							<condition AndOr="0" Body="23" Param="-1" Condo="0" Value2="" Value1="" TriggerName="" Time="0.0000" Formula="RaceDistance" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<block ID="12785177264" Active="1" Name="Time To end" Repeat="0.00" RepeatTimes="0" Protected="0">
		<Triggers>
			<trigger>
				<BlockID>12785177264</BlockID>
				<Action>32</Action>
				<Active>3</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>TimeToEnd</Price>
				<Amount>(event_off-now_time)/0.00001157+RaceTime</Amount>
				<MarketStatus>1</MarketStatus>
				<Name>Update time to end</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>1.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds>
							<condition AndOr="0" Body="23" Param="-1" Condo="0" Value2="" Value1="" TriggerName="" Time="0.0000" Formula="RaceTime" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<block ID="12786794176" Active="1" Name="Betting - can be edited" Repeat="0.00" RepeatTimes="0" Protected="0">
		<Triggers>
			<trigger>
				<BlockID>12786794176</BlockID>
				<Action>0</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>1</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>0</Persistence>
				<Price>best</Price>
				<Amount>default_backa</Amount>
				<MarketStatus>1</MarketStatus>
				<Name>sample trigger</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="2" Value2="" Value1="RaceTime/2" TriggerName="" Time="0.0000" Formula="TimeToEnd" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
 