<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/2678" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-10-04T15:01:12-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/2678</id>

		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2002-10-04T15:01:12-04:00</updated>

		<published>2002-10-04T15:01:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11708#p11708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11708#p11708"/>
		<title type="html"><![CDATA[Please look at this tcl-script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11708#p11708"><![CDATA[
Yep, I just got the error too, so it is. Unfortunately, this thread is going to spit that out of every reply now (I think). It happens <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Fri Oct 04, 2002 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2002-10-04T15:00:14-04:00</updated>

		<published>2002-10-04T15:00:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11707#p11707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11707#p11707"/>
		<title type="html"><![CDATA[Please look at this tcl-script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11707#p11707"><![CDATA[
darko, I think it's related to the old error discussed here:<br><br><a href="http://forum.egghelp.org/viewtopic.php?p=8690&amp;highlight=#8690" class="postlink">http://forum.egghelp.org/viewtopic.php? ... ight=#8690</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Fri Oct 04, 2002 3:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-10-03T16:12:32-04:00</updated>

		<published>2002-10-03T16:12:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11681#p11681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11681#p11681"/>
		<title type="html"><![CDATA[Please look at this tcl-script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11681#p11681"><![CDATA[
@darko<br><br>Could you please explain how this regexp lines must look like?<br>(please paste the whole script again with your changes)<br><br>THANKS<br>jagg<p>Statistics: Posted by Guest — Thu Oct 03, 2002 4:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-26T12:09:37-04:00</updated>

		<published>2002-09-26T12:09:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11411#p11411</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11411#p11411"/>
		<title type="html"><![CDATA[Please look at this tcl-script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11411#p11411"><![CDATA[
Umm, offtopic, but someone check why my reply to this msg shows twice, while i tought it wouldn't show even once... There was some error: General error - couldn't find template email-notify :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Thu Sep 26, 2002 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-26T12:06:53-04:00</updated>

		<published>2002-09-26T12:06:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11410#p11410</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11410#p11410"/>
		<title type="html"><![CDATA[Please look at this tcl-script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11410#p11410"><![CDATA[
I would suggest using regexp to find which lines are the ones containing info you seek and then proceede with the original script. Shouldn't be a problem really, cause the lines themselves are most probably are templates filled with data.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Thu Sep 26, 2002 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-26T12:06:33-04:00</updated>

		<published>2002-09-26T12:06:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11409#p11409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11409#p11409"/>
		<title type="html"><![CDATA[Please look at this tcl-script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11409#p11409"><![CDATA[
I would suggest using regexp to find which lines are the ones containing info you seek and then proceede with the original script. Shouldn't be a problem really, cause the lines themselves are most probably are templates filled with data.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Thu Sep 26, 2002 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-25T16:01:02-04:00</updated>

		<published>2002-09-25T16:01:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11376#p11376</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11376#p11376"/>
		<title type="html"><![CDATA[Please look at this tcl-script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11376#p11376"><![CDATA[
Hi,<br><br>here is the code i have made:<div class="codebox"><p>Code: </p><pre><code>proc pub:pivot {nick host hand chan arg} {if {[llength $arg]==0} {putserv "PRIVMSG $channel :\0035 Ein Symbol musst Du schon eingeben :-)\003"} else {set stock [string toupper [lindex $arg 0]]set tok [http::geturl http://quotes.barchart.com/quote.asp?sym=$stock&amp;code=BHTDR]set data [http::data $tok]set high [lindex [split $data \n] 127]set low [lindex [split $data \n] 128]set close [lindex [split $data \n] 129]set pivot [expr {([string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $high 7]] + [string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $low 7]] + [string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $close 7]]) / 3}]set r1 [expr {(2 * $pivot) - [string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $low 7]]}]set r2 [expr {$pivot + ([string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $high 7]] - [string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $low 7]])}]set s1 [expr {(2 * $pivot) - [string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $high 7]]}]set s2 [expr {$pivot - ([string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $high 7]] - [string map {{color="#000000"&gt;} {} {&lt;/FONT&gt;&lt;/TD&gt;} {}} [lindex $low 7]])}]putserv "PRIVMSG $chan :\0030,14 Pivots for $stock -&gt; \0038,14[format %.2f $r2] \0035,14(R2) \0038,14[format %.2f $r1] \0035,14(R1) \0038,14[format %.2f $pivot] \0035,14(Pivot) \0038,14[format %.2f $s1] \0035,14(S1) \0038,14[format %.2f $s2] \0035,14(S2) \003"}}</code></pre></div>This script reads different lines from e.g. <a href="http://quotes.barchart.com/quote.asp?sym=ESZ2&amp;code=BHTDR" class="postlink">http://quotes.barchart.com/quote.asp?sy ... code=BHTDR</a> and calculates pivot points.<br><br>Until now I look for the line nr. in the source to fetch the high, low and the close stockquote from yesterday (see the picture)<br><br><strong class="text-strong">BUT</strong><br><br>this won't work for the most of the time because the line nr. in the source code change VERY OFFEN  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> <br><br>How could I fetch the needed stockquotes (high, low and the close from yesterday) in a better way (so that it doesnt care what line nr the needed stockquotes have)?<br><br>THANKS<br>jagg<br><br><span style="text-decoration:underline">I need these stockquotes</span><br><img src="http://www.tsvmn-fussball.de/Bilder/pivot.gif" class="postimage" alt="Image"><br><br>P.S.: The formula for calculate the pivot points can be see e.g. here <br><a href="http://www.technical-investor.de/content.asp?P=wsn/artikel.asp&amp;WAID=1516&amp;wid=1817&amp;selfid=1902&amp;hl=pivot" class="postlink">http://www.technical-investor.de/conten ... 2&amp;hl=pivot</a><p>Statistics: Posted by Guest — Wed Sep 25, 2002 4:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
