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

Re: [amibroker] Closing position after N-Bars



PureBytes Links

Trading Reference Links

Cover = Ref(Close, 1); is not a condition that is required for a trade signal



On 12/4/05, intermilan04 <intermilan04@xxxxxxxxx> wrote:
> Hi all,
>
> I developed a system where I short at the open and cover at the close
> on the same day.
> While it works pretty well as it is, I want to see what happens if I
> cover next day's close (instead of today's).
>
> In order to do that, I've tried
>
> 1. SetTradeDelays(0, 0, 0, 1);
> 2. Cover = Ref(Close, 1);
>
> and so forth but for some reason I always cover at today's close.
>
> I even tried things like
> SetTradeDelays(0, 0, 0, 5);
> just to see if it's having any effect, and it isn't.
> Also tried is Cover = Ref(Close, 5);
> but still covers at today's close.
>
> Is ApplyStop with N-Bar option the only way to have Amibroker cover in
> the future?
>
> Regards,
>
> intermilan04
>
>
>
>
>
>
>
>
> 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 --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/