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

Re: Coding Question



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><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<META content='"MSHTML 4.72.2106.6"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 size=2>The question is instead of entering the lengthy 
buy signal code (12 lines - kinda grew on me :-)) in the &quot;barssince&quot; 
function, is there a recognizable Metastock function that defines the most 
recent &quot;buysignal&quot; ?&nbsp;</FONT></DIV>
<DIV><FONT color=#000000 size=2>What I want to do is a close long (in the system 
tester) if the is a close crossover of my threshold occurs only after the first 
day since the buy signal, i.e. exclude the any signal on the buysignal day and 
buysignal day plus one. I will use the &quot;barssince&quot; to count the days 
from the buy signal. </FONT></DIV>
<DIV><FONT color=#000000 size=2>Or if there is an alternative way to make this 
happen, I'll listen.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Thanks for the try</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Pete Bock</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
    <DIV><FONT face=Arial size=2><B>-----Original Message-----</B><BR><B>From: 
    </B>Glen Wallace &lt;<A 
    href="mailto:gcwallace@xxxxxxxx";>gcwallace@xxxxxxxx</A>&gt;<BR><B>To: </B><A 
    href="mailto:metastock@xxxxxxxxxxxxx";>metastock@xxxxxxxxxxxxx</A> &lt;<A 
    href="mailto:metastock@xxxxxxxxxxxxx";>metastock@xxxxxxxxxxxxx</A>&gt;<BR><B>Date: 
    </B>Wednesday, March 10, 1999 4:38 PM<BR><B>Subject: </B>Re: Coding 
    Question<BR><BR></DIV></FONT>
    <DIV><FONT size=2>Pete:</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT color=#000000 size=2>I'm not sure I understand your question, but 
    perhaps:</FONT></DIV>
    <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
    <DIV>BarsSince(BuySignal)</DIV>
    <DIV>BarsSince(SellSignal)<BR></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT color=#000000 size=2>Where BuySignal and SellSignal are the 
    functions or variables that resulted in the signal [eg. Cross(Close, 
    Mov(Close,20,E))].</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT color=#000000 size=2>Let me know if I misunderstood.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
        <DIV><FONT face=Arial size=2><B>-----Original 
        Message-----</B><BR><B>From: </B>PeteB &lt;<A 
        href="mailto:Pete.B@xxxxxxxx";>Pete.B@xxxxxxxx</A>&gt;<BR><B>To: 
        </B>Metatock List &lt;<A 
        href="mailto:Metastock@xxxxxxxxxxxxx";>Metastock@xxxxxxxxxxxxx</A>&gt;<BR><B>Date: 
        </B>March 10, 1999 12:20<BR><B>Subject: </B>Coding 
        Question<BR><BR></DIV></FONT>
        <DIV><FONT color=#000000 size=2>The question is simple but it has me 
        stumped. How can I determine, i.e. code,&nbsp; the Bars Since (barsince) 
        from a buy or sell signal in a system test application? In other words, 
        what is the DATA ARRAY function for these signals?</FONT></DIV>
        <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
        <DIV><FONT color=#000000 size=2>Thanks in advance,</FONT></DIV>
        <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
        <DIV><FONT color=#000000 size=2>Pete 
Bock</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
</x-html>From ???@??? Wed Mar 10 18:43:17 1999
Received: from listserv.equis.com (204.246.137.2)
	by mail02.rapidsite.net (RS ver 1.0.2) with SMTP id 7850
	for <neal@xxxxxxxxxxxxx>; Wed, 10 Mar 1999 21:35:21 -0500 (EST)
Received: (from majordom@xxxxxxxxx)
	by listserv.equis.com (8.8.7/8.8.7) id JAA11792
	for metastock-outgoing; Thu, 11 Mar 1999 09:45:20 -0700
X-Authentication-Warning: listserv.equis.com: majordom set sender to owner-metastock@xxxxxxxxxxxxx using -f
Received: from freeze.metastock.com (freeze.metastock.com [204.246.137.5])
	by listserv.equis.com (8.8.7/8.8.7) with ESMTP id JAA11788
	for <metastock@xxxxxxxxxxxxxxxxxx>; Thu, 11 Mar 1999 09:45:16 -0700
Received: from onondaga.gate.net (root@xxxxxxxxxxxxxxxxx [198.206.134.31])
	by freeze.metastock.com (8.8.5/8.8.5) with ESMTP id SAA00253
	for <metastock@xxxxxxxxxxxxx>; Wed, 10 Mar 1999 18:43:15 -0700 (MST)
Received: from fletchmo (tstpa1-24.gate.net [207.36.8.24]) by onondaga.gate.net (8.8.6/8.6.12) with SMTP id UAA21272 for <metastock@xxxxxxxxxxxxx>; Wed, 10 Mar 1999 20:25:45 -0500
Message-ID: <000901be6b5e$e9f6b530$180824cf@xxxxxxxx>
From: "fletch" <fletchmo@xxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Subject: Re: Using "Trader" Status for Income Taxes
Date: Wed, 10 Mar 1999 20:31:38 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.0810.800
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Sender: owner-metastock@xxxxxxxxxxxxx
Precedence: bulk
Reply-To: metastock@xxxxxxxxxxxxx
X-Loop-Detect: 1
X-UIDL: 7e00146a9618ef48f5c96a3caf88803a.06



----- Original Message ----- 
From: Chuck Wemlinger <yeti@xxxxxxxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Wednesday, March 10, 1999 7:05 PM
Subject: Re: Using "Trader" Status for Income Taxes


>