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

Re: [amibroker] Optimization by Standard Error of Equity Line



PureBytes Links

Trading Reference Links

This may work
Value = highestsince(Buy,1.1*C);

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

-----Original Message-----
From: doedau [mailto:don.edwards@xxxxxxxxxxxxxx] 
Sent: Sunday, May 09, 2004 5:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] I cant get this to work

Hi,
Could you help please, I ought to be able to code this but cant make 
it work.

1. set an initial value = 1.1*Close
2. hold that value constant until Close>value
3. then reset value (or some other variable) to new higher 1.1*C
4. hold that new value constant until again Close> new value
5. keep repeating steps 3 and 4 

Its something like a trailing stop but above the close (I dont want 
to use applystop() even if it would do the job, as this is only part 
of the code I am developing).

Many thanks in advance, Regards Don.




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



 



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/