[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EL Funtion Help



PureBytes Links

Trading Reference Links

<x-html><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.71.1712.3"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#000080 size=4></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=4></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=4>Hello,</FONT></DIV>
<DIV><FONT color=#000080 size=4>I am trying to create an EL function and would 
appreciate any help/tips/insight into accomplishing the following:</FONT></DIV>
<DIV><FONT color=#000080 size=4></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#000080 size=4>A user function that will look back a user 
specified number of bars, and output the greatest number of&nbsp; bars that 
shared a same price.&nbsp; </FONT></DIV>
<DIV><FONT color=#000080 size=4></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=4>Thanks, </FONT></DIV>
<DIV><FONT color=#000080 size=4></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=4>Chris Lober</FONT></DIV>
<DIV><FONT color=#000080 size=4></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>
</x-html>From ???@??? Sat Dec 13 13:24:49 1997
Received: from smtp1.nwnexus.com (smtp1.nwnexus.com [198.137.231.16])
	by mail1.halcyon.com (8.8.7/8.8.7) with ESMTP id MAA19147
	for <neal@xxxxxxxxxxxxxxxx>; Sat, 13 Dec 1997 12:57:49 -0800 (PST)
Received: from mx2.eskimo.com (mx2.eskimo.com [204.122.16.49])
	by smtp1.nwnexus.com (8.8.7/8.8.7) with ESMTP id MAA24933
	for <neal@xxxxxxxxxxx>; Sat, 13 Dec 1997 12:57:49 -0800
Received: (from smartlst@xxxxxxxxx)
	by mx2.eskimo.com (8.8.8/8.8.8) id MAA27345;
	Sat, 13 Dec 1997 12:56:07 -0800 (PST)
Resent-Date: Sat, 13 Dec 1997 12:56:07 -0800 (PST)
Message-Id: <199712132055.PAA10756@xxxxxxxxxxxxxx>
Comments: Authenticated sender is <polaris3@xxxxxxxxxxxxxxxxxxxxxxxx>
From: "Bob Young" <polaris3@xxxxxxxxxxxxxxx>
To: Omega-list@xxxxxxxxxx
Date: Sat, 13 Dec 1997 15:55:56 -0500
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: Greetings list, need ELA help
Reply-to: polaris3@xxxxxxxxxxxxxxx
Priority: normal
In-reply-to: <aa398798.3492e25e@xxxxxxx>
X-mailer: Pegasus Mail for Windows (v2.75 beta 4 )
Resent-Message-ID: <"b4Vr1.0.1h6.YPlaq"@mx2>
Resent-From: omega-list@xxxxxxxxxx
X-Mailing-List: <omega-list@xxxxxxxxxx> archive/latest/12346
X-Loop: omega-list@xxxxxxxxxx
Precedence: list
Resent-Sender: omega-list-request@xxxxxxxxxx
Status:  O

> Dale W Burreson wrote.......

> I thought this would be easy to code, but I am stuck on it for some reason:
> 
> I am trying to write a paint bar with the following condition:  5 out of the
> Last 10 closes were > then the open of that same bar.

var: li(0), count(0);
count = 0;
for li = 0 to 9 begin
   if c[li] > o[li] then count = count +1; 
end;
if count >= 5 then begin
   {paint your bars.......}

Bob Young