<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>BullCharts : Squaring price and Time</title>
  <link>http://www.bullcharts.com.au/forum/</link>
  <description>This is an XML content feed of; BullCharts : Gann in BullCharts : Squaring price and Time</description>
  <copyright>Copyright (c) 2006-2009 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 03:10:58 +0000</pubDate>
  <lastBuildDate>Sat, 11 Oct 2014 12:58:38 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.bullcharts.com.au/forum/RSS_post_feed.asp?TID=973</WebWizForums:feedURL>
  <image>
   <title>BullCharts</title>
   <url>http://www.bullcharts.com.au/forum/http://www.bullcharts.com.au/images/bull_logo.gif</url>
   <link>http://www.bullcharts.com.au/forum/</link>
  </image>
  <item>
   <title>Squaring price and Time :     TDate:=InputDate(&amp;#034;Date...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3420#3420</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=1044" rel="nofollow">cmacdon</a><br /><strong>Subject:</strong> 973<br /><strong>Posted:</strong> 11&nbsp;Oct&nbsp;2014 at 12:58pm<br /><br />&#091;author=Dr Charles MacDonald&#093;<br />&#091;citation="Bullcharts Forum, Gann subset and Bullscript discussions Price and Time Squaring "&#093;<br /><br />&#091;Target=Price;&#093;<br />TDate:=InputDate("Date of trend", date(2014,3,24));<br />HD:=BarsSince(OnOrSkipped(TDate));<br /><br />{------Note this is for intraday applications-------}<br />tme:=input("1=daily,6=hourly,24=15mins 36=10, 72=5, 180=2 minutes", 1, 1, 180);<br /><br />z1:=If(HD,1,0);<br />DwnswingCount:=If (z1,+prev(z1),0);<br />DwnSwing:=barssince(z1=0);<br /><br /><br />{In this case i want the indicator to have a manually input bottom---}<br />{Bot:=valuewhen(1,HD=1,L);}<br /><br />Bot:=input("Input the Low on start day", 35.25, .0001, 10000);<br /><br />pdinp:=input("Average Day to calc gradient", 100, 1, 72000);<br /><br />{tme added for intraday conversion}<br />pd:=pdinp;<br /><br />a:= input("Historical Gradient Vib =&gt; 1 X 1", 0.079, 0.00001, 10000);<br /><br />{---Conversion needed if applying daily angles on an intraday chart---}<br />b:= a/tme;<br /><br />{--------This adds single text calc of the daily spread as a %-------}<br />Gradient := b;<br /><br />{--------Some peripheral calculations need later on--------}<br />{Count since start of Move}<br />MoveSwing:=barssince(HD=0);<br /><br />{Adjacent}<br />Days:=(DwnSwing-1);<br /><br />{----------------------Now Project the Top and Bottom for a Basic Square--------------------------}<br />&#091;name=O/8; linestyle=Horzline; Width=2; color=Black; visible=yes&#093;<br />bottom:=If ({HD and }Dwnswing &lt;=pd+1,Bot,undefined);<br />bottom;<br /><br />&#091;linestyle=Text; fontsize=6; textalign=Below,center;color=Black;&#093;<br />if(barssince(Z1=0)and Dwnswing &lt;=pd+1, int(Dwnswing-1) + " ", undefined);<br />bottom;<br /><br />&#091;name=8/8; linestyle=Horzline; Width=2; color=Black; visible=yes&#093;<br />Top:=If (HD and Dwnswing &lt;=pd+1,(Bot-b) +(pd+1)*b,undefined);<br />Top;<br /><br />{------add Gann Percentage levels within the square----------------------}<br />&#091;name=1/8; linestyle=Horzline; Width=1; color=Orange; visible=yes&#093;<br />oneeight:=If(HD and Dwnswing &lt;=pd+1,Bottom + (Top-Bottom)*1/8,undefined);<br />oneeight;<br />&#091;name=2/8;color=Black;Width=2;&#093;;<br />twoeight:=If(HD and Dwnswing &lt;=pd+1, Bottom + (Top-Bottom)*2/8,undefined);<br />twoeight;<br />&#091;name=3/8; Width=1; color=Sea Green&#093;;<br />threeeight:=If(HD and Dwnswing &lt;=pd+1, Bottom + (Top-Bottom)*3/8,undefined);<br />threeeight;<br />&#091;name=4/8;color=Black;Width=2;&#093;;<br />foureight:=If(HD and Dwnswing &lt;=pd+1, Bottom + (Top-Bottom)*4/8,undefined);<br />foureight;<br />&#091;name=5/8; Width=1; color=Sea Green&#093;;<br />fiveeight:=If(HD and Dwnswing &lt;=pd+1, Bottom + (Top-Bottom)*5/8,undefined);<br />fiveeight;<br />&#091;name=6/8; color=Black;Width=2;&#093;;<br />sixeight:=If(HD and Dwnswing &lt;=pd+1, Bottom + (Top-Bottom)*6/8,undefined);<br />sixeight;<br />&#091;name=7/8;  Width=1; color=Orange;&#093;<br />seveneight:=If(HD and Dwnswing &lt;=pd+1, Bottom + (Top-Bottom)*7/8,undefined);<br />seveneight;<br />&#091;name=8/8;  color=Black;Width=2;&#093;;<br />eighteight:=If(HD and Dwnswing &lt;=pd+1,Top,undefined);<br />eighteight;<br />&#091;name=8/8; Width=1; color=Blue;&#093;<br />onethird:=If(HD and Dwnswing &lt;=pd+1, Bottom + (Top-Bottom)*1/3,undefined);<br />onethird;<br />Twothird:=If(HD and Dwnswing &lt;=pd+1, Bottom + (Top-Bottom)*2/3,undefined);<br />Twothird;<br /><br />{Draw verticle Line as time elapses within the Square}<br />&#091;name=Start line; Linestyle=Fill Bars; Width=2; color=Black;&#093;<br />if(HD and Dwnswing=1,Top,undefined);<br />if(HD and Dwnswing=1,Bot,undefined);<br /><br />&#091;name=Quarter Time;&#093;<br />If (Dwnswing= round(((pd)/4)+1,0),Top,undefined);<br />If (Dwnswing= round(((pd)/4)+1,0),Bot,undefined);<br /><br />&#091;name=Half Time;&#093;<br />If (Dwnswing= round(((pd)/2)+1,0),Top,undefined);<br />If (Dwnswing= round(((pd)/2)+1,0),Bot,undefined);<br /><br />&#091;name=Three Quarter Time;&#093;<br />If (Dwnswing= round(((pd)*3/4),0)+1,Top,undefined);<br />If (Dwnswing= round(((pd)*3/4),0)+1,Bot,undefined);<br /><br />&#091;name=Price and time sb Square;&#093;<br />If (Dwnswing= round(((pd)),0)+1,Top,undefined);<br />If (Dwnswing= round(((pd)),0)+1,Bot,undefined);<br /><br />Tp1:=If (Dwnswing= round(((pd)/4)+1,0),1,undefined);<br />Tp2:=If (Dwnswing= round(((pd)/2)+1,0),1,undefined);<br />Tp3:=If (Dwnswing= round(((pd)*3/4),0)+1,1,undefined);<br />Tp4:=If (Dwnswing= round(((pd)),0)+1,1,undefined);<br /><br />{---Add Gann text applied to 1/8 and 1/3 Percentages Grid levels---Note Murrey Math also uses the 1/8 levels----}<br />&#091;linestyle=Text; textalign=Above,Left; color=Blue;&#093;<br />if(HD and Dwnswing &lt;=1 and Bottom, Round(Bottom,2) + " )% ", undefined);Bottom;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Orange;&#093;<br />if(HD and Dwnswing &lt;=1 and oneeight, Round(oneeight,2) + " 12.5% ", undefined);oneeight;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Magenta; &#093;<br />if(HD and Dwnswing &lt;=1 and twoeight, Round(twoeight,2) + " 25% ", undefined);twoeight;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Black; &#093;<br />if(HD and Dwnswing &lt;=1 and threeeight, Round(threeeight,2) + " 33.3% ",undefined);onethird;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Sea Green; &#093;<br />if(HD and Dwnswing &lt;=1 and threeeight, Round(threeeight,2) + " 37.5% ",undefined);threeeight;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Blue; &#093;<br />if(HD and Dwnswing &lt;=1 and foureight, Round(foureight,2) + " 50% ",undefined); foureight;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Sea Green; &#093;<br />if(HD and Dwnswing &lt;=1 and fiveeight, Round(fiveeight,2) + " 62.5% ", undefined);fiveeight;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Black; &#093;<br />if(HD and Dwnswing &lt;=1 and threeeight, Round(threeeight,2) + " 66.6% ",undefined);twothird;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Magenta; &#093;<br />if(HD and Dwnswing &lt;=1 and sixeight, Round(sixeight,2) + " 75% ", undefined);sixeight;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Orange; &#093;<br />if(HD and Dwnswing &lt;=1 and seveneight, Round(seveneight,2) + " 87.5% ",undefined);seveneight;<br /><br />&#091;linestyle=Text; textalign=Above,Left; color=Blue; &#093;<br />if(HD and Dwnswing &lt;=1 and eighteight, Round(eighteight,2) + " 100% ",undefined);eighteight;<br /><br />]]>
   </description>
   <pubDate>Sat, 11 Oct 2014 12:58:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3420#3420</guid>
  </item> 
  <item>
   <title>Squaring price and Time :  </title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3419#3419</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=1044" rel="nofollow">cmacdon</a><br /><strong>Subject:</strong> 973<br /><strong>Posted:</strong> 11&nbsp;Oct&nbsp;2014 at 12:54pm<br /><br /><img src="uploads/1044/TandPSquaring4.png" border="0" />]]>
   </description>
   <pubDate>Sat, 11 Oct 2014 12:54:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3419#3419</guid>
  </item> 
  <item>
   <title>Squaring price and Time :  </title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3418#3418</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=1044" rel="nofollow">cmacdon</a><br /><strong>Subject:</strong> 973<br /><strong>Posted:</strong> 11&nbsp;Oct&nbsp;2014 at 12:53pm<br /><br /><img src="uploads/1044/TandPSquaring3.png" border="0" />]]>
   </description>
   <pubDate>Sat, 11 Oct 2014 12:53:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3418#3418</guid>
  </item> 
  <item>
   <title>Squaring price and Time :  </title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3417#3417</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=1044" rel="nofollow">cmacdon</a><br /><strong>Subject:</strong> 973<br /><strong>Posted:</strong> 11&nbsp;Oct&nbsp;2014 at 12:52pm<br /><br /><img src="uploads/1044/TandPSquaring2.png" border="0" />]]>
   </description>
   <pubDate>Sat, 11 Oct 2014 12:52:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3417#3417</guid>
  </item> 
  <item>
   <title>Squaring price and Time : Gann had methods to Square price...</title>
   <link>http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3416#3416</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.bullcharts.com.au/forum/member_profile.asp?PF=1044" rel="nofollow">cmacdon</a><br /><strong>Subject:</strong> 973<br /><strong>Posted:</strong> 11&nbsp;Oct&nbsp;2014 at 12:51pm<br /><br />Gann had methods to Square price and time from Tops, Bottoms Zero points and Ranges.<br /><br />Set out below will be 4 charts showing some issue in writing Bullscript to get Gann Square indicator to work for these options.  Lastly I will post code similar to the previous indicator but can be applied to produce Squares for any of the above methods.<br /><br />Some pitfalls in apply the indicator and distinguishing between a calendar day and a trading day calculation are shown.<br /><br />The examples below are for the DJIA around the time of the 1929 Crash discussed briefly in Gann's 1935 Course "The Basis of my Trading Method".<br /><br /><img src="uploads/1044/TandPSquaring1.png" border="0" /><span style="font-size:10px"><br /><br />Edited by cmacdon - 12&nbsp;Oct&nbsp;2014 at 3:43am</span>]]>
   </description>
   <pubDate>Sat, 11 Oct 2014 12:51:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.bullcharts.com.au/forum/forum_posts.asp?TID=973&amp;PID=3416#3416</guid>
  </item> 
 </channel>
</rss>