<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="it">
	<id>http://traderpedia.it/wiki/index.php?action=history&amp;feed=atom&amp;title=TS_Key_Reversal_Pattern</id>
	<title>TS Key Reversal Pattern - Cronologia</title>
	<link rel="self" type="application/atom+xml" href="http://traderpedia.it/wiki/index.php?action=history&amp;feed=atom&amp;title=TS_Key_Reversal_Pattern"/>
	<link rel="alternate" type="text/html" href="http://traderpedia.it/wiki/index.php?title=TS_Key_Reversal_Pattern&amp;action=history"/>
	<updated>2026-05-05T04:03:26Z</updated>
	<subtitle>Cronologia della pagina su questo sito</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://traderpedia.it/wiki/index.php?title=TS_Key_Reversal_Pattern&amp;diff=1837&amp;oldid=prev</id>
		<title>imported&gt;Stefano Fanton: /* Vedi anche: */</title>
		<link rel="alternate" type="text/html" href="http://traderpedia.it/wiki/index.php?title=TS_Key_Reversal_Pattern&amp;diff=1837&amp;oldid=prev"/>
		<updated>2012-03-22T07:48:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Vedi anche:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nuova pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''''Trading System &amp;quot;Key Reversal Pattern&amp;quot;''''' &lt;br /&gt;
&lt;br /&gt;
Codice in EasyLanguage per una strategia basata sul key reversal pattern.&lt;br /&gt;
&lt;br /&gt;
Formula per Tradestation™: &lt;br /&gt;
&lt;br /&gt;
INIZIO FORMULA &lt;br /&gt;
&lt;br /&gt;
Type : Strategy, Name : Key Reversal Pattern &amp;lt;br&amp;gt;Input: StopLossAmount( 250 ) ;&lt;br /&gt;
&lt;br /&gt;
variable: KRPattern( false ) ;&lt;br /&gt;
&lt;br /&gt;
KRPattern = Low &amp;amp;lt; Low[1]&amp;lt;br&amp;gt;and Close &amp;amp;gt; Close[1]&amp;lt;br&amp;gt;and Close &amp;amp;lt; High ;&lt;br /&gt;
&lt;br /&gt;
{ You are counting how many times the pattern recurs. &amp;lt;br&amp;gt;INCREMENT THE COUNT ONE BAR AFTER THE KR IS CONFIRMED. } &lt;br /&gt;
&lt;br /&gt;
if KRPattern[1] then&amp;lt;br&amp;gt;begin&amp;lt;br&amp;gt;Value1 = Value1 + 1 ;&lt;br /&gt;
&lt;br /&gt;
{ If there is a key reversal up pattern, &amp;lt;br&amp;gt;how many times is the following high greater or equal to the last high? } &lt;br /&gt;
&lt;br /&gt;
if High &amp;amp;gt;= High[1] then&amp;lt;br&amp;gt;Value2 = Value2 + 1 ;&amp;lt;br&amp;gt;end ;&amp;lt;br&amp;gt;{ Now send the results to a text file } &lt;br /&gt;
&lt;br /&gt;
if LastBarOnChart then&amp;lt;br&amp;gt;begin&amp;lt;br&amp;gt;Print( File( &amp;quot;C:\Patt.txt&amp;quot; ), GetSymbolName,&amp;lt;br&amp;gt;&amp;quot; &amp;quot;, ELDateToString( CurrentDate), &amp;quot; Time: &amp;quot;,&amp;lt;br&amp;gt;CurrentTime:4:0 ) ;&amp;lt;br&amp;gt;Print( File( &amp;quot;C:\Patt.txt&amp;quot; ),&amp;lt;br&amp;gt;&amp;quot;Key Reversal Up Pattern&amp;quot; ) ;&amp;lt;br&amp;gt;if Value1 &amp;amp;lt;&amp;amp;gt; 0 then&amp;lt;br&amp;gt;begin&amp;lt;br&amp;gt;Print( File( &amp;quot;C:\Patt.txt&amp;quot; ),&amp;lt;br&amp;gt;&amp;quot;Pattern &amp;quot;, Value1:4:0 ) ;&amp;lt;br&amp;gt;Print( File( &amp;quot;C:\Patt.txt&amp;quot; ), &amp;quot;Total bars &amp;quot;,&amp;lt;br&amp;gt;BarNumber:4:0, &amp;quot; Observation on total bars &amp;quot;,&amp;lt;br&amp;gt;Value1 / BarNumber * 100, &amp;quot;%&amp;quot; ) ;&amp;lt;br&amp;gt;Print( File( &amp;quot;C:\Patt.txt&amp;quot; ),&amp;lt;br&amp;gt;&amp;quot;Next high is greater or equal to prev high &amp;quot;,&amp;lt;br&amp;gt;Value2:4:0, Value2 / Value1 * 100, &amp;quot;%&amp;quot; ) ;&amp;lt;br&amp;gt;end ;&amp;lt;br&amp;gt;end ;&lt;br /&gt;
&lt;br /&gt;
{ If you want to see trading signals include the code below } &lt;br /&gt;
&lt;br /&gt;
if KRPattern then&amp;lt;br&amp;gt;begin&amp;lt;br&amp;gt;Buy this bar on Close ;&amp;lt;br&amp;gt;Sell ( &amp;quot;Target&amp;quot; ) next bar at High limit ;&amp;lt;br&amp;gt;end ;&amp;lt;br&amp;gt;SetStopPosition ;&amp;lt;br&amp;gt;SetStopLoss( StopLossAmount ) ;&amp;lt;br&amp;gt;if BarsSinceEntry = 1 then&amp;lt;br&amp;gt;Sell ( &amp;quot;EOD&amp;quot; ) this bar on Close ;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;FINE FORMULA &lt;br /&gt;
&lt;br /&gt;
== Vedi anche:  ==&lt;br /&gt;
&lt;br /&gt;
*[[Indice sequenziale Trading System|Indice sequenziale Trading System]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Formule_Trading_System]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Stefano Fanton</name></author>
	</entry>
</feed>