PureBytes Links
Trading Reference Links
|
That may very well be the case, that another buy for that security
was generated. However, I think that I should eliminate those buys
from being generated. I will try and put in something in my code to
ensure that I don't generate another buy signal - if I am already in
a trade on that security.
--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> This might be a reason
> you could have a second buy signal after the trade was started,
which
> will reset the bar counter to zero. Include this line in your code
> after the buy statement
> buy = exremspan(buy,14);
> this will ensure no additional buy signals have an affect within
that period
>
> On 8/10/05, jacklweinberg <weinberg@xxxx> wrote:
> > Could someone who understands ApplyStops answer this question?
> > In my trade list results, I have some trades exiting at 15 bars,
with
> > the "Trade" column showing "Long(n-bar)". This is because I have
in my
> > code:
> > ApplyStop( stopTypeNBar, stopModeBars, ExitDays, True );
> > (ExitDays=14).
> > However, the next line in the trade list shows in the "Trade"
column
> > as "Long", and exiting at 21 bars.
> > Why didn't the ApplyStop work in that case?
> > P.S. My "settings" window shows everything as "disabled", and I
have
> > the following statement in my code: SetTradeDelays( 1, 1, 1, 1 );
> >
> >
> >
> >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://e-wire.net.au/~eb_kavan/ab_write.htm
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hivqhuc/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1123704984/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com">Make a difference. Find and fund world-changing projects at GlobalGiving</a>.</font>
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> 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/
|