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

Re: [amibroker] delaying the buy



PureBytes Links

Trading Reference Links

Hi Graham,

Friday, October 28, 2005, 10:39:42 AM, you wrote:

G> ref(buysig,2) will look 2 days into the future adn entry would be
G> before the signal occurs?
G> ref(buysig,-2) will delay the signal by 2 days
G> you can also just use settradedelays to delay entry, although the
G> arrows will still show on the signal day

Just shows you how non-programmers think.  ^_^  If I want to know a
value of 2 days ago, it's a negative number, right?  I thought if I
wanted to do something at some point in the future, that would be a
positive number.  Obviously, it works when I go with your thinking,
instead of mine.

Thanks,

Yuki

G> --
G> Cheers
G> Graham
G> AB-Write >< Professional AFL Writing Service
G> Yes, I write AFL code to your requirements
G> http://e-wire.net.au/~eb_kavan/ab_write.htm

G> On 10/28/05, Yuki Taga <yukitaga@xxxxxxxxxxxxx> wrote:
>> I can't believe I can't make this work, but there you go.
>>
>> AFAIK, ref(anything,2) would look 2 days after anything.
>>
>> So, if I have defined a BuySignal, and I set my Buy statement to
>>
>> Buy = ref(BuySignal,2);
>>
>> Why does my trade list show the trades are executed on the day of the
>> BuySignal, instead of two days later?
>>
>> Such a simple problem, I'm sure, but my brain is locked I guess.
>>
>> Yuki
>>



G> Please note that this group is for discussion between users only.

G> To get support from AmiBroker please send an e-mail directly to 
G> SUPPORT {at} amibroker.com

G> For other support material please check also:
G> http://www.amibroker.com/support.html





------------------------ 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/