PureBytes Links
Trading Reference Links
|
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 amibroker@xxxxxxxxxxxxxxx, malcolm Crouch <malcolm.croucher@xxx> 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 <chaoss45@xxx> 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
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|