

 <mf-xml>
	<block ID="12479852880" Active="1" Name="Relative Strength Index" Repeat="0.00" RepeatTimes="0" Protected="0" Enabled="1">
		<Triggers>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>5</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>96259418295592794</ID>
				<SelectionType>6</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>initialising variables</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>stop_loss</Price>
					<Amount>max_loss*IF(test_mode=1, test_funds, total_funds)/100</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>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>stop_profit</Price>
					<Amount>target_profit*IF(test_mode=1, test_funds, total_funds)/100</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>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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>-1</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>current_loss</Price>
					<Amount>0</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>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>bet_cntr</Price>
					<Amount>0</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>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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="1" Order="0">
						<blcks/>
						<conds/>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>2</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498027</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>2</MarketStatus>
				<Name>Stop loss time before off</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>13</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>-1</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>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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>11</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>-1</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>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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="5">
								<blcks/>
								<conds>
									<condition AndOr="0" Body="6" Param="71" CondIndex="3" Value2="" Value1="0" TriggerID="94436027307498031" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
									<condition AndOr="0" Body="6" Param="71" CondIndex="3" Value2="" Value1="0" TriggerID="94436027307498032" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
								</conds>
							</tblck>
						</blcks>
						<conds>
							<condition AndOr="1" Body="1" Param="0" CondIndex="6" Value2="500" Value1="1.01" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94436027307498028" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
							<condition AndOr="1" Body="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94436027307498029" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
							<condition AndOr="1" Body="8" Param="63" CondIndex="2" Value2="" Value1="0.25" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="4"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>2</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498028</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>2</MarketStatus>
				<Name>green up</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>11</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>greenup_perc</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>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94436027307498029" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="8" Param="63" CondIndex="3" Value2="" Value1="0.25" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>2</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498029</ID>
				<SelectionType>4</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>2</MarketStatus>
				<Name>stop loss</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>13</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price/>
					<Amount>sl_perc</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>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94436027307498028" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="8" Param="63" CondIndex="3" Value2="" Value1="0.25" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>96259418295592905</ID>
				<SelectionType>6</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>6</MarketStatus>
				<Name>at the end of the event</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.0</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>bet_cntr</Price>
					<Amount>0</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>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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="1" Order="0">
						<blcks/>
						<conds>
							<condition AndOr="0" Body="6" Param="70" CondIndex="3" Value2="" Value1="0" TriggerID="94436027307498031" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="0" Body="6" Param="70" CondIndex="3" Value2="" Value1="0" TriggerID="94436027307498032" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498030</ID>
				<SelectionType>6</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>6</MarketStatus>
				<Name>Modifying current_loss</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>-1</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>current_loss</Price>
					<Amount>IF(current_loss - market_settled_pl &gt; 0.05, current_loss - market_settled_pl, 0)</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>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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="24" Param="69" CondIndex="20" Value2="" Value1="" TriggerID="0" SecondParam="RSI" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="8" Param="76" CondIndex="1" Value2="" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>3</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498033</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>calculating the fraction of RSI</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>15.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>-1</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>RS_divisor1</Price>
					<Amount>IF(pdif_1&lt;0,-1*pdif_1,0)+IF(pdif_2-pdif_1&lt;0,pdif_1-pdif_2,0)+ IF(pdif_3-pdif_2&lt;0,pdif_2-pdif_3,0)+ IF(pdif_4-pdif_3&lt;0,pdif_3-pdif_4,0)+ IF(pdif_5-pdif_4&lt;0,pdif_4-pdif_5,0)+ IF(pdif_6-pdif_5&lt;0,pdif_5-pdif_6,0)+ IF(pdif_7-pdif_6&lt;0,pdif_6-pdif_7,0)</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>1</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>0</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>1</UserVariable>
					<UseOptions>0</UseOptions>
					<TrailingSL>0</TrailingSL>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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="8" Param="68" CondIndex="5" Value2="" Value1="1.0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>3</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498034</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>7</MarketStatus>
				<Name>calculating second RSI divisor</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>15.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>-1</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>RS_divisor2</Price>
					<Amount>1+(IF(pdif_1&gt;0,pdif_1,0)+IF(pdif_2-pdif_1&gt;0,pdif_2-pdif_1,0)+ IF(pdif_3-pdif_2&gt;0,pdif_3-pdif_2,0)+ IF(pdif_4-pdif_3&gt;0,pdif_4-pdif_3,0)+ IF(pdif_5-pdif_4&gt;0,pdif_5-pdif_4,0)+ IF(pdif_6-pdif_5&gt;0,pdif_6-pdif_5,0)+ IF(pdif_7-pdif_6&gt;0,pdif_7-pdif_6,0))/RS_divisor1</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>1</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>0</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>1</UserVariable>
					<UseOptions>0</UseOptions>
					<TrailingSL>0</TrailingSL>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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="6" Param="70" CondIndex="3" Value2="" Value1="0" TriggerID="94436027307498033" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="3" Value2="" Value1="0" TriggerID="0" SecondParam="RS_divisor1" Overall="0" RereadFile="0" Order="2"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>3</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498035</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>2</MarketStatus>
				<Name>Calculating RSI</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>15.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>32</Action>
					<Persistence>-1</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>RSI</Price>
					<Amount>100-100*1/RS_divisor2</Amount>
					<AdjustAmounts>0</AdjustAmounts>
					<WinLoseOption>1</WinLoseOption>
					<RemVariable>1</RemVariable>
					<GreenupType>0</GreenupType>
					<RemBets>0</RemBets>
					<UserVariable>1</UserVariable>
					<UseOptions>0</UseOptions>
					<TrailingSL>0</TrailingSL>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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="24" Param="69" CondIndex="20" Value2="" Value1="" TriggerID="0" SecondParam="RS_divisor1, RS_divisor2" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="1" Value2="" Value1="0" TriggerID="0" SecondParam="RS_divisor1" Overall="0" RereadFile="0" Order="2"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="1" Value2="" Value1="0" TriggerID="0" SecondParam="RS_divisor2" Overall="0" RereadFile="0" Order="3"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498031</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>2</MarketStatus>
				<Name>Back high RSI</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>0</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>r_ticks(back_price,-offset_tcks)</Price>
					<Amount>bet_size*IF(test_mode=1, test_funds, total_funds)/100 + current_loss/((1-commission)*(back_price-1))</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>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>bet_cntr</Price>
					<Amount>1</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>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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="6" Param="71" CondIndex="3" Value2="" Value1="0" TriggerID="94436027307498035" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="3" Value2="" Value1="min_back_rs" TriggerID="0" SecondParam="RSI" Overall="0" RereadFile="0" Order="2"/>
							<condition AndOr="1" Body="1" Param="24" CondIndex="2" Value2="" Value1="max_wom" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
							<condition AndOr="1" Body="8" Param="63" CondIndex="2" Value2="5" Value1="5" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="4"/>
							<condition AndOr="1" Body="8" Param="50" CondIndex="6" Value2="110" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="5"/>
							<condition AndOr="1" Body="8" Param="49" CondIndex="3" Value2="" Value1="min_vlm" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="6"/>
							<condition AndOr="1" Body="1" Param="0" CondIndex="5" Value2="" Value1="r_ticks(lay_price,-3)" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="7"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="total_funds" TriggerID="0" SecondParam="balance" Overall="0" RereadFile="0" Order="8"/>
							<condition AndOr="1" Body="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94436027307498032" SecondParam="" Overall="0" RereadFile="0" Order="9"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="0" TriggerID="0" SecondParam="bet_cntr" Overall="0" RereadFile="0" Order="10"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
			<trigger>
				<BlockID>12479852880</BlockID>
				<Active>1</Active>
				<CondMet>0</CondMet>
				<Market>0</Market>
				<ID>94436027307498032</ID>
				<SelectionType>1</SelectionType>
				<HandicapID>0</HandicapID>
				<MarketStatus>2</MarketStatus>
				<Name>Lay low RSI</Name>
				<RepeatTimes>0</RepeatTimes>
				<Repeat>0.00</Repeat>
				<Enabled>1</Enabled>
				<Logged>1</Logged>
				<ActionSet>
					<Action>1</Action>
					<Persistence>0</Persistence>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>r_ticks(lay_price,offset_tcks)</Price>
					<Amount>bet_size*IF(test_mode=1, test_funds, total_funds)/100+current_loss/(1-commission)</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>
					<GreenupLastPrice>1</GreenupLastPrice>
					<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>
					<Expires/>
					<AmountChange>0</AmountChange>
					<SettleType>2</SettleType>
					<Price>bet_cntr</Price>
					<Amount>1</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>
					<GreenupLastPrice>0</GreenupLastPrice>
					<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="6" Param="71" CondIndex="3" Value2="" Value1="0" TriggerID="94436027307498035" SecondParam="" Overall="0" RereadFile="0" Order="1"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="2" Value2="" Value1="max_lay_rs" TriggerID="0" SecondParam="RSI" Overall="0" RereadFile="0" Order="2"/>
							<condition AndOr="1" Body="1" Param="24" CondIndex="3" Value2="" Value1="min_wom" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="3"/>
							<condition AndOr="1" Body="8" Param="63" CondIndex="2" Value2="5" Value1="5" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="4"/>
							<condition AndOr="1" Body="8" Param="50" CondIndex="6" Value2="110" Value1="0" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="5"/>
							<condition AndOr="1" Body="8" Param="49" CondIndex="3" Value2="" Value1="min_vlm" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="6"/>
							<condition AndOr="1" Body="1" Param="0" CondIndex="5" Value2="" Value1="r_ticks(lay_price,-3)" TriggerID="0" SecondParam="" Overall="0" RereadFile="0" Order="7"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="total_funds" TriggerID="0" SecondParam="balance" Overall="0" RereadFile="0" Order="8"/>
							<condition AndOr="1" Body="6" Param="70" CondIndex="0" Value2="" Value1="0" TriggerID="94436027307498031" SecondParam="" Overall="0" RereadFile="0" Order="9"/>
							<condition AndOr="1" Body="1" Param="61" CondIndex="0" Value2="" Value1="0" TriggerID="0" SecondParam="bet_cntr" Overall="0" RereadFile="0" Order="10"/>
						</conds>
					</tblck>
				</conditions>
			</trigger>
		</Triggers>
	</block>
	<constants>
		<const name="max_loss" value="50" descr="Maximum loss value, % of the bank" saveValue="0"/>
		<const name="target_profit" value="5" descr="Target profit value, % of the bank" saveValue="0"/>
		<const name="min_vlm" value="5000" descr="Minimum market volume" saveValue="0"/>
		<const name="min_wom" value="0.1" descr="Minimum Weight of Money" saveValue="0"/>
		<const name="max_wom" value="0.8" descr="Maximum Weight of Money (for backing)" saveValue="0"/>
		<const name="offset_tcks" value="5" descr="Number of offset ticks for the bet price" saveValue="0"/>
		<const name="min_back_rs" value="80" descr="Min. RSI for backing" saveValue="0"/>
		<const name="max_lay_rs" value="20" descr="Max. RSI for laying" saveValue="0"/>
		<const name="bet_size" value="1" descr="Size of bet, % of the bank" saveValue="0"/>
		<const name="greenup_perc" value="3" descr="Profit percentage for green-up" saveValue="0"/>
		<const name="sl_perc" value="10" descr="Profit percentage for stop-loss" saveValue="0"/>
	</constants>
	<annotation/>
</mf-xml>