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

[amibroker] Re: Back up of Custom Indicators



PureBytes Links

Trading Reference Links

Try adding this using the Cross function

Settradedelays(0,0,0,0);
Buy = ref(Buycond,-1) and  cross( ref(c,-1) - 1, L);
Buyprice = ref(c,-1) - 1;

Amend this to suit your needs

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

-----Original Message-----
From: chassis_73 [mailto:tessaglia@xxxxxxxxxxx] 
Sent: Wednesday, May 05, 2004 7:32 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: BuyPrice problem

Thanks,well I mean 18.50 is the official price of close.While 18.99 
is the real-time price I'd like to enter on the stock according my TS.
that is :
Monday  O 20.39 C 20.00 H 20.39 L 20.00
Tuesday O 20.02 C 18.70 H 20.02 L 18.50
So z = L - Ref(C,-1); 
Buy = z < 1.00.

I know formula(L) is not correct,cause it's 18.50,but I'd like when 
the stock On Tuesday opens at 20.02 and then reaches 18.99(i.e. 20.00-
18.99= 1.01)my Ts has a signal to buy.
I don't know how to do that.
Could you help me,please?


Best Regards


--- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset" 
<s.carrasset@xxxx> wrote:
> Not clear,
> you wrote
> ref(c,-1)=20;
> then Low=18.99;
> and Low=18.50; // it results Buyprice at 18.50 $,the Low of the
> day.
> 
>   




Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/