I would set a flag or a count ...


If (lots of buy conditions are met )
the bFlag += 1

if

bFlag = 1

then

buy

Else

dont buy


Regards


Malcolm

On Mon, Aug 3, 2009 at 10:26 PM, chaoss45 <[email protected]> wrote:

>
>
> Hello all,
>
> I'm trying to write code for a breakout system.
> Right now i have my system working (demo) but i'm having trouble to remove
> all excessive signals.
> I want to take the first Buy or Sell signal of the day, and all other
> signals for the day removed.
> For example: if the first signal is a buy signal, all other buy *and* sell
> signals should be removed (or ignored) but i cannot do it.
> I tried Exrem and that is working fine only for removing the other buy *or
> * sell signals, but not for removing all the other buy *and* sell signals.
> I think it is something simple, but for some reason i do not see it.
> Could somebody help me with the code?
>  
>



-- 
Malcolm A.B Croucher

Reply via email to