<?xml version="1.0" encoding="shift_jis"?>
<omegachart-extension version="1.0">
	<info title="RSIと一目均衡表(買い)" id="rsiandichimoku_buy_050925" author="ペコ丸" expires="never" />
	<auto-trading name="rsiandichimoku_buy1">
		<title>RSIと一目均衡表転換線(買い)</title>
		<description>RSIと一目均衡表転換線(買い)</description>
		<header>RSIと一目均衡表転換線(買い)、{0}利益確定/{1}損切り</header>
		<type>long</type>
		<signal>
			<![CDATA[
				sump(diff(close(15))) / suma(diff(close(15))) <= 0.3 and
				tenkan() <= open() and
				tenkan() <= close()
			]]>
		</signal>
		<entry type="tomorrow-open"/>
		<exit>
			<![CDATA[
				limitorder(entry() * (1 + ({0} / 100)))
			]]>
		</exit>
		<losscut>
			<![CDATA[
				limitorder(entry() * (1 - ({1} / 100)))
			]]>
		</losscut>
		<param index="0" unit="%" default="5"/>
		<param index="1" unit="%" default="10"/>
	</auto-trading>
	<auto-trading name="rsiandichimoku_buy2">
		<title>RSIと一目均衡表基準線(買い)</title>
		<description>RSIと一目均衡表基準線(買い)</description>
		<header>RSIと一目均衡表基準線(買い)、{0}利益確定/{1}損切り</header>
		<type>long</type>
		<signal>
			<![CDATA[
				sump(diff(close(15))) / suma(diff(close(15))) <= 0.3 and
				kijun() <= open() and
				kijun() <= close()
			]]>
		</signal>
		<entry type="tomorrow-open"/>
		<exit>
			<![CDATA[
				limitorder(entry() * (1 + ({0} / 100)))
			]]>
		</exit>
		<losscut>
			<![CDATA[
				limitorder(entry() * (1 - ({1} / 100)))
			]]>
		</losscut>
		<param index="0" unit="%" default="5"/>
		<param index="1" unit="%" default="10"/>
	</auto-trading>
	<auto-trading name="rsiandichimoku_buy3">
		<title>RSIと一目均衡表雲(買い)</title>
		<description>RSIと一目均衡表雲(買い)</description>
		<header>RSIと一目均衡表雲(買い)、{0}利益確定/{1}損切り</header>
		<type>long</type>
		<signal>
			<![CDATA[
				sump(diff(close(15))) / suma(diff(close(15))) <= 0.3 and
				max(senkouA(),senkouB()) <= open() and
				max(senkouA(),senkouB()) <= close()
			]]>
		</signal>
		<entry type="tomorrow-open"/>
		<exit>
			<![CDATA[
				limitorder(entry() * (1 + ({0} / 100)))
			]]>
		</exit>
		<losscut>
			<![CDATA[
				limitorder(entry() * (1 - ({1} / 100)))
			]]>
		</losscut>
		<param index="0" unit="%" default="5"/>
		<param index="1" unit="%" default="10"/>
	</auto-trading>
	<auto-trading name="rsiandichimoku_buy4">
		<title>RSIと一目均衡表三役好転中(買い)</title>
		<description>RSIと一目均衡表三役好転中(買い)</description>
		<header>RSIと一目均衡表三役好転中(買い)、{0}利益確定/{1}損切り</header>
		<type>long</type>
		<signal>
			<![CDATA[
				sump(diff(close(15))) / suma(diff(close(15))) <= 0.3 and
				open() >= tenkan() and
				close() >= tenkan() and
				tenkan() > kijun() and
				kijun() > max(senkouA(),senkouB())
			]]>
		</signal>
		<entry type="tomorrow-open"/>
		<exit>
			<![CDATA[
				limitorder(entry() * (1 + ({0} / 100)))
			]]>
		</exit>
		<losscut>
			<![CDATA[
				limitorder(entry() * (1 - ({1} / 100)))
			]]>
		</losscut>
		<param index="0" unit="%" default="5"/>
		<param index="1" unit="%" default="10"/>
	</auto-trading>
<!-- 以下のライブラリは、コレクターさんのライブラリを借用しました。 -->
  <library name="tenkan">
    <expression>(max(high(9))+min(low(9)))/2</expression>
  </library>
  <library name="kijun">
    <expression>(max(high(26))+min(low(26)))/2</expression>
  </library>
  <library name="senkouA">
    <expression>(value_at(25,tenkan())+value_at(25,kijun()))/2</expression>
  </library>
  <library name="senkouB">
    <expression>(value_at(25,max(high(52)))+value_at(25,min(low(52))))/2</expression>
  </library>
</omegachart-extension>
