Hi Malcom, thanks.

I'm not a star in coding, but how would your code prevent Sell signals?
I have tried this:

Conditie1 = ....
Conditie2 = ....
intrade = Flip(Conditie1,TimeNum()==180000) OR (Conditie2,TimeNum()==180000);

Buy = intrade AND Conditie1;
Short = intrade AND Conditie2;

But that doesn't work, because intrade is 1 on a buy and a sell signal.


--- In [email protected], malcolm Crouch <malcolm.crouc...@...> wrote:
>
> 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 <chaos...@...> 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