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

Re: [amibroker] basic question about code in AA window



PureBytes Links

Trading Reference Links

may not be the case but do you use exrem for the buy?


On Sun, 17 Oct 2004 05:17:04 -0000, jwilsonp2a <jimnwilson@xxxxxxxxx> wrote:
> 
> 
> Hi,
> 
> Back to using AMI after a long delay... very rusty...
> 
> Can someone explain this behaviour:
> 
> PART OF AFL CODE >>>
> 
> Buy=trade_setup; testbuy=Buy;
> 
> SellSTOP=ValueWhen(Buy,(Ref(Low,-1)*0.90),N=1);
> 
> RESULTS OF AN EXPLORE >>>
> 
> Symbol  Date/Time       Buy  testbuy    Sell    SellSTOP
> QQQ     5/24/1999       0       0       0       39.21
> QQQ     5/25/1999       1       1       0       40.95
> QQQ     5/26/1999       0       1       0       39.70
> QQQ     5/27/1999       0       0       0       39.70
> 
> What I don't understand is how, given that testbuy=Buy, that they
> can be different on 5/26. What prompted this was that I noticed my
> SellSTOP changing while in a trade, and the only way that could
> happen is if I got another Buy while already in a trade. How do I
> lock in the SellSTOP price for good at the initial Buy, and hold it
> until the sell? This is driving me nuts!!!
> 
> Thanks for the help, Jim
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/