

 <?mf-xml version="1.0"?>
	<block ID="12603627110" Active="1" Name="Trailing Green-Up. Setting up variables." Repeat="0.00" RepeatTimes="0" Protected="0">
		<Triggers>
			<trigger>
				<BlockID>12603627110</BlockID>
				<Action>32</Action>
				<Active>5</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>price_growth</Price>
				<Amount>2</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>setting min. price growth in ticks</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>12603627110</BlockID>
				<Action>32</Action>
				<Active>5</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>spread</Price>
				<Amount>4</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>setting spread value</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>
		</Triggers>
	</block>
	<block ID="12607953625" Active="2" Name="Trailing Green-Up. The routine." Repeat="4.00" RepeatTimes="0" Protected="0">
		<Triggers>
			<trigger>
				<BlockID>12607953625</BlockID>
				<Action>32</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>1</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>maxbp</Price>
				<Amount>0</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Reset maxbp</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>12607953625</BlockID>
				<Action>1</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>6</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>1</Persistence>
				<Price>best</Price>
				<Amount>default_laya - IF(profit_loss &lt; 0, profit_loss, 0)</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Initial 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>
							<condition AndOr="1" Body="0" Param="28" Condo="6" Value1="1" Value2="3" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="7" Param="-1" Condo="5" Value1="price_growth" Value2="" TriggerName="" Time="0.0000" Formula="tdif_1" Overall="0"/>
							<condition AndOr="1" Body="7" Param="-1" Condo="10" Value1="" Value2="" TriggerName="" Time="0.0000" Formula="tdif_1" Overall="0"/>
							<condition AndOr="1" Body="0" Param="0" Condo="0" Value1="r_ticks(lay_price, -1)" Value2="" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12607953625</BlockID>
				<Action>32</Action>
				<Active>3</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>6</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>maxbp</Price>
				<Amount>back_price</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Save the maximum</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>1.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds>
							<condition AndOr="1" Body="0" Param="16" Condo="4" Value1="" Value2="" TriggerName="Initial bet" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="0" Param="0" Condo="6" Value1="maxbp+0.01" Value2="1000" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12607953625</BlockID>
				<Action>0</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>6</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>1</Persistence>
				<Price>best</Price>
				<Amount>bm_layp*bm_laya/back_price</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Safe 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>1.00</Repeat>
				<conditions>
					<tblck AndOr="0">
						<blcks/>
						<conds>
							<condition AndOr="1" Body="0" Param="16" Condo="4" Value1="0" Value2="" TriggerName="Initial bet" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="0" Param="0" Condo="2" Value1="r_ticks(maxbp, -spread)" Value2="" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12607953625</BlockID>
				<Action>18</Action>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<Selection>4</Selection>
				<HandicapID>0</HandicapID>
				<Persistence>-1</Persistence>
				<Price>best</Price>
				<Amount>100</Amount>
				<MarketStatus>0</MarketStatus>
				<Name>Do again</Name>
				<RepeatTimes>0</RepeatTimes>
				<TriggerName>Trailing Green-Up. The routine.</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="0" Param="16" Condo="6" Value1="market_mlnum" Value2="" TriggerName="Safe bet" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="8" Param="10" Condo="0" Value1="market_mlnum" Value2="" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
							<condition AndOr="1" Body="0" Param="33" Condo="0" Value1="bm_laynum" Value2="" TriggerName="" Time="0.0000" Formula="" Overall="0"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
 