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

Re: Question...



PureBytes Links

Trading Reference Links

Not sure if this is quite what you're looking for, but you could try
something along the lines of this:

if(longcond1 > 0 and longcond2 > 0), 1,
if(shortcond1 > 0 and shortcond2 >  0), -1,
0;

You can't do what you want using a binary signal, you need 3 states (unless
longcond1 being false means shortcond1 is true, etc). Hope this helps.

----- Original Message -----
From: "onno goedknegt" <o.goedknegt@xxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Monday, December 09, 2002 7:29 AM
Subject: Question...


> Hi,
>
> I am currently developing a new end of day trading system.
>
> This trading system needs two conditions to go long and two other
> conditions to go short.
>
> So if the two long-conditions are true, you receive a "buy" pulse.
> And if the two short-conditions are true, you receive a "sell" pulse.
>
> But instead of receiving pulses, I want like to make an indicator that
> tells me: long position and short position.
> In other words: I am looking for a way to change the pulses (signals)
> into a binary wave (position).
>
> Thanks in advance for your help!
>
> Onno
>
>